Yocto's scripts/contrib/improve_kernel_cve_report.py (OE-Core, since
Scarthgap) checks every kernel CVE of the Linux kernel CNA against the
files the kernel compiled (the build's debug-sources list) and writes
the cve-check report again: Ignored not-applicable-config for code the
configuration does not build, Ignored rejected for withdrawn CVEs,
Patched version-not-in-range outside the affected versions. Uploaded as
a build output, it goes through the cve-check reader (#854).
- rejected becomes not affected; Patched version-not-in-range becomes
not affected (vulnerable code not present) instead of fixed.
- guide/yocto: how to produce the report (no rebuild needed) and the
mapping rows.
- Fixture: a trimmed copy of the report over a real scarthgap kernel
(linux-yocto 6.6.151, core-image-minimal qemuarm64), two CVEs per
verdict; on the full image 2,230 of 22,001 kernel CVEs were not
applicable for the configuration.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>