summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core
diff options
context:
space:
mode:
authorLee Chee Yang <chee.yang.lee@intel.com>2020-03-31 15:26:03 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-04-01 11:44:23 +0100
commit7c37e5c7cd4507c5d9e05de6e0d78cfb7e37ae9e (patch)
tree2d10fd8bf76946b5f0add864b666ffeca0c4888c /meta/recipes-core
parent2d9a29a3cf87fb42c552067d2aa56d81cdaf99e4 (diff)
downloadpoky-7c37e5c7cd4507c5d9e05de6e0d78cfb7e37ae9e.tar.gz
cve-check: CPE version '-' as all version
CPE version could be '-' to mean no version info. Current cve_check treat it as not valid and does not report these CVE but some of these could be a valid vulnerabilities. Since non-valid CVE can be whitelisted, so treat '-' as all version and report all these CVE to capture possible vulnerabilities. Non-valid CVE to be whitelisted separately. [YOCTO #13617] (From OE-Core rev: c69ee3594079589d27c10db32bc288566ebde9ef) Signed-off-by: Lee Chee Yang <chee.yang.lee@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/recipes-core')
-rw-r--r--meta/recipes-core/meta/cve-update-db-native.bb2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/recipes-core/meta/cve-update-db-native.bb b/meta/recipes-core/meta/cve-update-db-native.bb
index 6afe09140b..497d957d65 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -135,7 +135,7 @@ def parse_node_and_insert(c, node, cveId):
135 product = cpe23[4] 135 product = cpe23[4]
136 version = cpe23[5] 136 version = cpe23[5]
137 137
138 if version != '*': 138 if version != '*' and version != '-':
139 # Version is defined, this is a '=' match 139 # Version is defined, this is a '=' match
140 yield [cveId, vendor, product, version, '=', '', ''] 140 yield [cveId, vendor, product, version, '=', '', '']
141 else: 141 else: