]> code.ossystems Code Review - openembedded-core.git/commit
cve-check: rewrite look to fix false negatives
authorRoss Burton <ross.burton@intel.com>
Mon, 18 Nov 2019 16:46:45 +0000 (16:46 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 21 Nov 2019 23:06:08 +0000 (23:06 +0000)
commitd61aff9e22704ad69df1f7ab0f8784f4e7cc0c69
tree319d89d0e9fa3a79ca31aea3759b9e2dd9b74720
parent6b73004668b3b71c9c38814b79fbb58c893ed434
cve-check: rewrite look to fix false negatives

A previous optimisation was premature and resulted in false-negatives in the report.

Rewrite the checking algorithm to first get the list of potential CVEs by
vendor:product, then iterate through every matching CPE for that CVE to
determine if the bounds match or not.  By doing this in two stages we can know
if we've checked every CPE, instead of accidentally breaking out of the scan too
early.

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/cve-check.bbclass