]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
cve-check: fix cvesInRecord
authorPeter Marko <peter.marko@siemens.com>
Sun, 24 Nov 2024 20:13:42 +0000 (21:13 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 28 Nov 2024 12:26:57 +0000 (12:26 +0000)
commitc5d499693672ec9619392011b765941cf94aa319
treedd0bc2e3db6f20c56558eaaf189f794c72f1fcb4
parent2996b11596afca288a6b7f409a5287063d331f3b
cve-check: fix cvesInRecord

Currently flag cvesInRecord is set to false if all CVEs are ignored or
patched. This is inconsistent as it shows false if a CVE was fixed via
patch and true if this CVE was fixed by upgrade. In both cases the CVE
is valid and was fixed.

As I understand this flag, it should say if any CVE exists for
particular component's product (regardless of how this CVE is handled)
and can be used to validate if a product is correctly set.

Note that skipping ignored CVEs may make sense in some cases, as ignored
may mean that NVD DB is wrong, but in many cases it is ignored for other
reasons. Further patch can be done to evaluate ignore subtype but that
would be against my understanding of this flag as described above.

Signed-off-by: Peter Marko <peter.marko@siemens.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass