]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core.git/commit
linux-yocto: add script to generate kernel CVE_CHECK_WHITELIST entries
authorRoss Burton <ross.burton@arm.com>
Fri, 25 Aug 2023 16:44:17 +0000 (17:44 +0100)
committerSteve Sakoman <steve@sakoman.com>
Thu, 31 Aug 2023 14:26:32 +0000 (04:26 -1000)
commit496c0b8fab5dd87102c3a63656debdb3aa214ae7
tree52da6596d56d397212bf6322a8823fe457f98964
parent37212694b9a610b1086ef574673dd24095585f4a
linux-yocto: add script to generate kernel CVE_CHECK_WHITELIST entries

Instead of manually looking up new CVEs and determining what point
releases the fixes are incorporated into, add a script to generate the
CVE_CHECK_WHITELIST data automatically.

First, note that this is very much an interim solution until the
cve-check class fetches data from www.linuxkernelcves.com directly.

The script should be passed the path to a local clone of the
linuxkernelcves repository[1] and the kernel version number. It will
then write to standard output the CVE_STATUS entries for every known
kernel CVE.

The script should be periodically reran as CVEs are backported and
kernels upgraded frequently.

[1] https://github.com/nluedtke/linux_kernel_cves

Note: for the Dunfell backport this is not a cherry-pick of the commit
in master as the variable names are different. This incorporates the
following commits:

linux/generate-cve-exclusions: add version check warning
linux/generate-cve-exclusions.py: fix comparison
linux-yocto: add script to generate kernel CVE_STATUS entries

Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/recipes-kernel/linux/generate-cve-exclusions.py [new file with mode: 0755]