Boottrace

Linux kernel CVEs: why your kernel has hundreds and how to tell which affect you

The kernel assigns a CVE to almost every fix and leaves it to you to decide which ones affect you. How to filter them with the stable branch, your configuration and kernel.org's vulns repository.

The CRA requires a product to be placed on the market without known exploitable vulnerabilities (Annex I) and that you handle new ones throughout the support period. In Linux firmware, most of the scanner’s list usually comes from a single component: the kernel. Hundreds of CVEs in the kernel alone are not unusual.

The previous article covered the general method for getting from the scanner’s list to what matters. This one is about the kernel: why it has so many CVEs, what the project itself publishes about each one, and how to use that to end up with the few you need to review by hand.

Why the kernel has so many CVEs

Since 13 February 2024, the Linux kernel has been its own CVE Numbering Authority (CNA): its own team assigns kernel CVEs. And its policy, according to its documentation, is to assign one to almost every fix:

  • CVEs are assigned automatically as part of the stable release process, once a fix exists.
  • The team starts from the premise that, given where the kernel sits in a system, almost any bug might be exploitable to compromise its security.
  • And it is clear about whose job the filtering is: “the applicability of any specific CVE is up to the user of Linux to determine”. Deciding whether a CVE affects you is up to you, not them.

The result shows in its public repository, vulns: about 4,300 CVEs published in 2024 (from February), about 5,700 in 2025 and more than 8,000 so far in 2026. Greg Kroah-Hartman, who maintains the stable branches, sums it up: the kernel went from issuing none to being the third-largest CNA by CVE count in 2024 and the largest in 2025.

For proportion: CISA’s KEV catalogue, the list of vulnerabilities actually being exploited, has 31 Linux kernel entries in total.

So the hundreds of CVEs in your kernel don’t mean your team did something wrong. They’re the project’s policy. What is your responsibility is being able to justify which ones affect you.

What the kernel publishes about each CVE

Every kernel CVE has a JSON file in the vulns repository (cve/published/<year>/CVE-….json) with three pieces of data you can filter on:

  • Affected versions, by git commit and by version number. For example, CVE-2025-21629 affects, among others, 6.1 from 6.1.116 up to (not including) 6.1.124, and 6.6 from 6.6.60 up to 6.6.70.
  • The files the fix touches (programFiles). In the same example, net/core/dev.c.
  • In some records, a CVSS score with an explanation of each metric. The kernel started adding them in 2026; as of 26 October, about 6,500 of the 18,000 published CVEs have one.

With that, you can apply the two filters that do most of the work.

Filter 1: the stable branch

If your kernel is an up-to-date kernel.org stable release, many CVEs are already fixed even though the scanner, which only sees “6.6”, doesn’t know it. Each CVE’s file says which release of each branch contains the fix; compare it with your exact version (uname -r on the device, or the recipe’s PV) and you know whether it affects you.

These are the long-term branches today, with the end of support published by kernel.org:

Branch Projected end of support
6.18 December 2028
6.12 December 2028
6.6 December 2027
6.1 December 2027
5.15 December 2026
5.10 December 2026

Three things to keep in mind:

  1. If your branch isn’t in the table, nobody publishes fixes for it. The kernel doesn’t assign CVEs to bugs that only exist in unsupported versions either. For 5.15 and 5.10, the end is two months away.
  2. The kernel recommends taking complete stable releases, not individual fixes: they are tested together, and sometimes a problem is only solved by the sum of several changes.
  3. If your kernel comes from the chip or module vendor’s BSP, it isn’t a kernel.org release. The vulns data is still useful if you know which stable release the BSP is based on and up to which one it has been updated. If you don’t, that’s the first question for your vendor.

Filter 2: your configuration

Many kernel CVEs sit in specific drivers and subsystems. If the file a CVE fixes isn’t built with your .config, the vulnerable code isn’t in your image. In VEX terms that’s vulnerable code not present, and it’s the justification that dismisses the most kernel CVEs.

To apply it you need the list of files actually compiled. Yocto already handles this, differently depending on the release:

  • Scarthgap (5.0): the improve_kernel_cve_report.py script (in scripts/contrib/ since 5.0.16) cross-references the CVE report with the vulns data and the kernel’s compiled files. To get them into the SBOM, in local.conf:

    SPDX_INCLUDE_COMPILED_SOURCES:pn-linux-yocto = "1"

    Then, with a local copy of the vulns repository:

    python3 openembedded-core/scripts/contrib/improve_kernel_cve_report.py \
        --spdx <SBOM of the kernel recipe> \
        --old-cve-report tmp/log/cve/cve-summary.json \
        --datadir ./vulns

    Replace linux-yocto with your kernel recipe’s name if you use the BSP’s.

  • Wrynose (6.0): the cve-check class is gone, replaced by Bootlin’s sbom-cve-check, enabled with OE_FRAGMENTS += "core/yocto/sbom-cve-check". Among other things, it filters out CVEs whose file isn’t compiled, “mostly useful to filter Linux kernel CVEs”.

If you don’t use Yocto, the idea is the same: the .o files in your kernel build directory tell you which source files were compiled, and you can match them against programFiles.

One caveat: the filter only works one way. If the file isn’t compiled, the CVE doesn’t affect you. If it is compiled, you still don’t know whether it affects you: you only know you need to keep looking.

What’s left: review by hand

After both filters the list is much shorter, and the questions from the previous article come back, applied to the kernel:

  • Can an attacker reach that code? The network stack, Bluetooth or USB can be reached from outside; a driver for hardware your board doesn’t have can’t. Neither can a filesystem you never mount.
  • Does it need local access? If nobody has a shell on your device and you don’t run third-party code, a local privilege escalation weighs less than a remote bug, though it doesn’t disappear.
  • Is it in KEV? If yes, it goes first, no discussion.

A work order

  1. Confirm your exact version and, if the kernel comes from the BSP, which stable release it’s based on. Without that, no filtering is possible.
  2. Enable the compiled-files list in the SBOM (Yocto) or extract it from your build.
  3. Cross-reference with vulns: first by fixed version, then by compiled files.
  4. Review what’s left by hand, starting with KEV entries and network-reachable code.
  5. Document every dismissal in your VEX with its justification. That’s the evidence the CRA expects in the technical documentation.
  6. Update to the latest stable release of your branch regularly, instead of applying individual fixes, and plan the branch change before its support ends.

If you’d rather we do it

The kernel is the part of the Quick Scan that saves the most work: we cross-reference your image with the vulns data, the stable branch and your kernel configuration, and within 48 business hours you get the kernel CVEs that actually apply and the justified dismissals. If you’d like to go through your case 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.

← All articles