summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeter Marko <peter.marko@siemens.com>2025-08-24 16:12:40 +0200
committerSteve Sakoman <steve@sakoman.com>2025-08-29 10:02:59 -0700
commit390a7748544413b9281fbbf645a45d5e44794374 (patch)
treea701d02d40d0ed35c7492ab1303cc1cd67c5f498
parentc0192e2543c0be2827e13728bfa32893da88cb2d (diff)
downloadpoky-390a7748544413b9281fbbf645a45d5e44794374.tar.gz
cve-update-db-native: fix fetcher for CVEs missing nodes
As of now, update of CVE DB from FKIE source (which is the defailt) fails with following error: File: '<build>/poky/meta/recipes-core/meta/cve-update-db-native.bb', lineno: 393, function: update_db_fkie 0389: [cveId, cveDesc, cvssv2, cvssv3, cvssv4, date, accessVector, vectorString]).close() 0390: 0391: for config in elt['configurations']: 0392: # This is suboptimal as it doesn't handle AND/OR and negate, but is better than nothing *** 0393: for node in config["nodes"]: 0394: parse_node_and_insert(conn, node, cveId, False) 0395: 0396:def update_db(d, conn, jsondata): 0397: if (d.getVar("NVD_DB_VERSION") == "FKIE"): Exception: KeyError: 'nodes' Entry for new CVE-2025-32915 is broken. (From OE-Core rev: 5bc27449381d2a53588dc7ad1fe2b78783d5c240) Signed-off-by: Peter Marko <peter.marko@siemens.com> Signed-off-by: Steve Sakoman <steve@sakoman.com>
-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 792252f510..320bd452f1 100644
--- a/meta/recipes-core/meta/cve-update-db-native.bb
+++ b/meta/recipes-core/meta/cve-update-db-native.bb
@@ -390,7 +390,7 @@ def update_db_fkie(conn, jsondata):
390 390
391 for config in elt['configurations']: 391 for config in elt['configurations']:
392 # This is suboptimal as it doesn't handle AND/OR and negate, but is better than nothing 392 # This is suboptimal as it doesn't handle AND/OR and negate, but is better than nothing
393 for node in config["nodes"]: 393 for node in config.get("nodes") or []:
394 parse_node_and_insert(conn, node, cveId, False) 394 parse_node_and_insert(conn, node, cveId, False)
395 395
396 396