Yocto 6.0 drops cve-check: what changes in your CVE scanning and how to migrate
In Wrynose the cve-check class is gone, replaced by sbom-cve-check, which scans the image's SPDX 3.0 SBOM. What you need to change, what stays the same (CVE_STATUS, patches tagged CVE:), what you gain on the kernel and where the limits are.
If you scan your Yocto firmware for CVEs with INHERIT += "cve-check", that line won’t survive the move to Yocto 6.0 (Wrynose): the class has been removed. It’s the LTS release supported until April 2030, so sooner or later it will affect you.
The good news is that what matters most doesn’t change: your CVE_STATUS dismissals and your security patches keep working. What changes is the tool that matches your image against the CVE databases.
What happened
In April 2026 the commit classes/cve-check: remove class was merged into openembedded-core. The reason, in the commit’s own words: support for sbom-cve-check has been merged, cve-check is now obsolete, and they don’t want to maintain it for the four-year lifecycle of Wrynose.
Along with the class, the do_cve_check task, the recipes that downloaded the NVD database (cve-update-nvd2-native and cve-update-db-native) and their CVE_CHECK_* variables are gone.
On the OpenEmbedded mailing list, two underlying problems were laid out: the NVD mirror cve-check relied on no longer carries the metadata it used to, and there was no way to repeat a scan a month later without running BitBake again.
What replaces it: sbom-cve-check
sbom-cve-check is a Bootlin tool that scans an SBOM instead of the recipes. In Wrynose it’s integrated as a class that runs after the image’s SPDX 3.0 SBOM has been generated.
You enable it with a configuration fragment:
bitbake-config-build enable-fragment core/yocto/sbom-cve-check
or, in your local.conf or distro configuration:
OE_FRAGMENTS += "core/yocto/sbom-cve-check"
It’s worth knowing what the fragment does, because your build inherits its decisions. This is its content on the wrynose branch:
INHERIT += "create-spdx"
IMAGE_CLASSES:append = " sbom-cve-check"
SRCREV:pn-sbom-cve-check-update-nvd-native = "${AUTOREV}"
SRCREV:pn-sbom-cve-check-update-cvelist-native = "${AUTOREV}"
SPDX_INCLUDE_VEX = "all"
SPDX_INCLUDE_COMPILED_SOURCES:pn-linux-yocto = "1"
Three things follow from it:
- It needs SPDX 3.0. In Wrynose that’s already the default: SPDX 2.2 support has been removed.
- It uses two databases: NVD (through the FKIE mirror) and the CVE Program’s CVE List (the
cvelistV5repository). BitBake’s fetcher downloads them, not the tool. - With the fragment, the databases update on every build (
AUTOREV), so the build needs network access. Without those two lines, the database version stays pinned in the recipe: reproducible, but it falls behind. Decide which one you want for release builds.
What it produces
Two files appear in the image deploy directory:
<image>.sbom-cve-check.yocto.json: the same JSON format cve-check produced. Scripts or dashboards that read it should keep working.<image>.sbom-cve-check.spdx.json: the SPDX 3.0 SBOM with the scan results annotated as VEX relationships.
The plain-text summary (.cve.txt) is no longer produced by default. If you use it, bring it back with:
SBOM_CVE_CHECK_EXPORT_VARS:append = " SBOM_CVE_CHECK_EXPORT_SUMMARY"
And if you used CVE_CHECK_SHOW_WARNINGS, it’s now SBOM_CVE_CHECK_SHOW_WARNINGS.
What gets better on the kernel
This is the biggest gain. The kernel is where most of a Linux firmware’s CVEs come from, and most don’t affect you because they’re in drivers your configuration doesn’t build (we covered it in the article on kernel CVEs).
With SPDX_INCLUDE_COMPILED_SOURCES, which the fragment enables for linux-yocto, the kernel’s SBOM records which source files were compiled. If the CVE says which files it affects and none of them are in your build, sbom-cve-check marks it as not applicable by configuration, with the VEX justification “vulnerable code not present”.
Two caveats:
- To know which files are compiled it needs debug information in the kernel (
CONFIG_DEBUG_INFOand related options, according to the tool’s documentation). Check your configuration. - If you use your vendor’s kernel instead of
linux-yocto, you’ll have to set that variable for your recipe: the fragment only does it forlinux-yocto.
That’s also why Wrynose dropped the long list of kernel CVE exclusions linux-yocto used to maintain. According to the commit, the result is the same and the SBOM is almost 20 MB smaller.
What doesn’t change
This is what matters most if you’d already done the triage work:
CVE_STATUSandCVE_STATUS_GROUPSwork as before, with the same reasons frommeta/conf/cve-check-map.conf. Your dismissals carry over into the SBOM as VEX statuses. We covered it in the article on VEX.- Patches with a
CVE:line in their header are still detected and mark the CVE as fixed. CVE_PRODUCTandCVE_VERSIONare still used, now to generate the SBOM’s CPE identifiers. One detail:+is no longer escaped, so it’swebkitgtk+rather thanwebkitgtk\+(for now both forms are accepted).
If your dismissals live in your recipes, you lose nothing by migrating. If they live in a spreadsheet, now is a good time to move them into CVE_STATUS.
The limits
sbom-cve-check scans what’s in the image’s SBOM. That leaves two things out, both discussed on the OpenEmbedded list:
- Native tools and statically linked code don’t show up as image packages. That’s what the
sbom-cve-check-recipeclass is for (it scans a recipe’s SBOM), along with theSBOM_CVE_CHECK_SCAN_SCOPEvariable (target,nativeorboth). - Firmware that isn’t part of the image, such as a bootloader flashed separately to QSPI, isn’t covered unless it’s in that SBOM. Check which components of your product fall outside it.
And two practical ones: with SPDX_INCLUDE_VEX = "all" the SBOM grows and the build gets slower, and in the first 6.0 release a tool failure could go unnoticed without stopping the build. That was fixed in later point releases: use the latest 6.0.x.
If you’re still on Scarthgap
Scarthgap (5.0) is LTS until April 2028 and keeps cve-check, so you don’t need to change anything today. But if your product will be supported beyond that date, and under the CRA the support period is set by the product’s lifetime, the move to Wrynose will happen while the product is on the market.
You can prepare now:
- Move every dismissal into
CVE_STATUSin your layers. That’s what carries over unchanged. - Try generating SPDX 3.0 on Scarthgap (it generates SPDX 2.2 by default; see the SBOM article).
- Compare results: Bootlin documents how to run sbom-cve-check outside the build with Scarthgap. It warns that it’s incompatible with having cve-check enabled at the same time, so try it in a separate build.
What to do this week
- Search your layers and CI scripts for
cve-check:INHERIT,CVE_CHECK_*variables and any script that reads the.cve.txtor the JSON. - Decide whether the CVE databases update on every build or stay pinned, and write the decision down.
- If your kernel isn’t
linux-yocto, enableSPDX_INCLUDE_COMPILED_SOURCESfor your recipe and check the debug information. - Keep the annotated SBOM of every released version, next to the results JSON. It’s the basis of your VEX and what you’ll need if a CVE starts being exploited.
If you’d like to see it on your image
The Quick Scan gives you your image’s SBOM and its prioritised CVEs within 48 business hours, with every dismissal and its verifiable reason, whether you build with Scarthgap or Wrynose. If you’d rather talk through your migration first, book 30 minutes.
Does your product have to comply with the CRA?
Start with a €1,900 Quick Scan or book 30 minutes to talk it through.