From patchwork Tue Dec 1 10:02:24 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106771 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7763.1796119356300472304 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=YIMOkaHD; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-1328017-20261201100232e20871a4a000020708-cxybib@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 20261201100232e20871a4a000020708 for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=2mysdFHUSB5HWoWC9L4gfZjcXVWZ28gDvQpcsfQhglM=; b=YIMOkaHD+xCYoYEwiKXdcLmAE2+4eSaPynXU6OPNabQE3l57CdoyJn3H0vxxGj7fmFEq8S lp7TnU0eXk9OV85huTWoGdD2x+Ijgky/daVrGaDq3qBbWoQpNVtwcQu8F5Cwqy3kc98YwjHJ iQtVWHZt8RDYTk0fvDkkI2cLQYeY9haiXg8eoZO8PqdkCN1rJ/WNWR8dzZffs2P6lexkMV4j UD3Z8v2mV3QUMIA2O3BWj142YClztmyYuz4foZhRi1pQIvWfX4vsODKElIgZWfSZymMqK0IG Zoh7YajpQG/uUS6RLz0rziHNLwcWHbmUPkcE6mV6ysKv8PdPZJPlYtuw==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 1/8] cve-check: decode product and vendor in CVE_STATUS Date: Tue, 1 Dec 2026 11:02:24 +0100 Message-Id: <20261201100231.3119168-2-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:41 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251703 From: Peter Tatrai CVE_STATUS entries from global includes such as cve-extra-exclusions.inc are visible to every recipe. Master added an optional "detail: cpe:vendor:product: description" syntax so that such entries can name the product they apply to. This is a partial backport of master commit abca80a716e92fc18d3085aba1a15f4bac72379c. The parser is picked unchanged, but under the name decode_cve_status_scoped(), and decode_cve_status() keeps returning the (status, detail, description) tuple it returns on scarthgap. Changing its return type, as master did, would break existing callers in other layers on a stable branch. The master hunks in cve-check.bbclass and spdx30_tasks.py only convert callers to the new return type and are therefore not needed. The parser as merged in master truncates descriptions containing ":" and references an undefined variable in its warnings. The following patches backport the master fixes for that. AI-Generated: GitHub Copilot CLI, Claude Opus 5.5 Signed-off-by: Peter Tatrai --- meta/lib/oe/cve_check.py | 46 +++++++++++++++++++++++++++++++++------- 1 file changed, 38 insertions(+), 8 deletions(-) diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 7c09b78..c915ab8 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -225,24 +225,54 @@ def convert_cve_version(version): return version + update -def decode_cve_status(d, cve): +def decode_cve_status_scoped(d, cve): """ - Convert CVE_STATUS into status, detail and description. + Convert CVE_STATUS into status, vendor, product, detail and description. """ status = d.getVarFlag("CVE_STATUS", cve) if not status: - return ("", "", "") + return {} + + status_split = status.split(':', 5) + status_out = {} + status_out["detail"] = status_split[0] + product = "*" + vendor = "*" + description = "" + if len(status_split) >= 4 and status_split[1].strip() == "cpe": + # Both vendor and product are mandatory if cpe: present, the syntax is then: + # detail: cpe:vendor:product:description + vendor = status_split[2].strip() + product = status_split[3].strip() + description = status_split[4].strip() + elif len(status_split) >= 2 and status_split[1].strip() == "cpe": + # Malformed CPE + bb.warn('Invalid CPE information for CVE_STATUS[%s] = "%s", not setting CPE' % (detail, cve, status)) + else: + # Other case: no CPE, the syntax is then: + # detail: description + description = status_split[len(status_split)-1].strip() if (len(status_split) > 1) else "" - status_split = status.split(':', 1) - detail = status_split[0] - description = status_split[1].strip() if (len(status_split) > 1) else "" + status_out["vendor"] = vendor + status_out["product"] = product + status_out["description"] = description - status_mapping = d.getVarFlag("CVE_CHECK_STATUSMAP", detail) + status_mapping = d.getVarFlag("CVE_CHECK_STATUSMAP", status_out['detail']) if status_mapping is None: bb.warn('Invalid detail "%s" for CVE_STATUS[%s] = "%s", fallback to Unpatched' % (detail, cve, status)) status_mapping = "Unpatched" + status_out["mapping"] = status_mapping + + return status_out - return (status_mapping, detail, description) +def decode_cve_status(d, cve): + """ + Convert CVE_STATUS into status, detail and description. + """ + status = decode_cve_status_scoped(d, cve) + if not status: + return ("", "", "") + return (status["mapping"], status["detail"], status["description"]) def extend_cve_status(d): # do this only once in case multiple classes use this From patchwork Tue Dec 1 10:02:25 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106774 Received: from mta-64-226.siemens.flowmailer.net (mta-64-226.siemens.flowmailer.net [185.136.64.226]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7722.1796119356300784000 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=Y2o0XW9y; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.226, mailfrom: fm-1328017-202612011002328dad9c4aba0002072e-muvkno@rts-flowmailer.siemens.com) Received: by mta-64-226.siemens.flowmailer.net with ESMTPSA id 202612011002328dad9c4aba0002072e for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=MfUGGnRDSrfvqeM0D8zfYkN84vjpkDoTQZYpxP1w+YA=; b=Y2o0XW9yqQIIjN1aapGVQxZD2DABBQp74l73b+THyB0wABz/HpjYAVjCfAk/q3SfVQ6b70 J+uUgowT9r0ztdcRN31Ei+GEfbSCe9bQ6qB5HZYYasTozDmBq/JazTV9WGeBmBP5YAYBpKKI 5gsVn+IREJyt8u/w3gvAZX+e79Wuq+WrNSpb6Ss7S8l+wBv5SBxuij8wAPKbRakWo0Bfg6MQ GpGKPedFlKLuhRkpMWA+V/1VRAunEZgYURkvUv4+tq/DGdPgQvwk6e3yPJEE6m7DoMNHZkFr 7ET16V8dnYAcQsCZajlfohWx6wKvxPvfe0NODvRxudJFK4cTE0Jep8nA==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 2/8] cve-check: only apply CVE_STATUS to matching products Date: Tue, 1 Dec 2026 11:02:25 +0100 Message-Id: <20261201100231.3119168-3-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251706 From: Peter Tatrai Without product filtering, global CVE_STATUS entries are reported for every recipe. The scarthgap SPDX 3.0 backport [1] and the follow-up that exports all CVE_STATUS entries [2] also put those entries into the SPDX/VEX output of unrelated recipes. This is a partial backport of master commit 452e605b55ad61c08f4af7089a5a9c576ca28f7d. Only has_cve_product_match() is picked unchanged. The rest of that commit refactors cve-check.bbclass to pass per-CVE annotations around and changes get_patched_cves() to return a dict, which is not applicable to scarthgap. Master applies the match in its callers. Here it is applied once in decode_cve_status(), so all existing tuple users get it, including get_patched_cves(), cve-check, VEX and SPDX. Unlike master, entries without a cpe: scope still apply when CVE_PRODUCT is empty, so their existing behaviour does not change. An empty result from decode_cve_status() now usually means the entry is scoped to another product, which is not a problem. Drop the per-CVE "Skipping ... missing or unknown CVE status" warnings that exist only in scarthgap's VEX and SPDX code; they would fire for every scoped global entry in every recipe. Invalid status details and malformed cpe: scopes are still warned about by the parser. [1] https://git.openembedded.org/openembedded-core/commit/?id=9c9b9545049a [2] https://git.openembedded.org/openembedded-core/commit/?id=9a204670b1c0 AI-Generated: GitHub Copilot CLI, Claude Opus 5.5 Signed-off-by: Peter Tatrai --- meta/classes/vex.bbclass | 1 - meta/lib/oe/cve_check.py | 24 +++++++++++++++++++++++- meta/lib/oe/spdx30_tasks.py | 1 - 3 files changed, 23 insertions(+), 3 deletions(-) diff --git a/meta/classes/vex.bbclass b/meta/classes/vex.bbclass index 97213ea..3c44dbb 100644 --- a/meta/classes/vex.bbclass +++ b/meta/classes/vex.bbclass @@ -141,7 +141,6 @@ python do_generate_vex () { for cve_id in (d.getVarFlags("CVE_STATUS") or {}): mapping, detail, description = decode_cve_status(d, cve_id) if not mapping or not detail: - bb.warn(f"Skipping {cve_id} — missing or unknown CVE status") continue cve_data[cve_id] = { "abbrev-status": mapping, diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index c915ab8..6689d4a 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -267,13 +267,35 @@ def decode_cve_status_scoped(d, cve): def decode_cve_status(d, cve): """ - Convert CVE_STATUS into status, detail and description. + Convert CVE_STATUS into status, detail and description, ignoring + entries scoped to a product not in CVE_PRODUCT. """ status = decode_cve_status_scoped(d, cve) if not status: return ("", "", "") + # Unscoped entries keep applying when CVE_PRODUCT is empty. + unscoped = status["vendor"] == status["product"] == "*" + if not unscoped and not has_cve_product_match(status, d.getVar("CVE_PRODUCT") or ""): + return ("", "", "") return (status["mapping"], status["detail"], status["description"]) +def has_cve_product_match(detailed_status, products): + """ + Check product/vendor match between detailed_status from decode_cve_status and a string of + products (like from CVE_PRODUCT) + """ + for product in products.split(): + vendor = "*" + if ":" in product: + vendor, product = product.split(":", 1) + + if (vendor == detailed_status["vendor"] or detailed_status["vendor"] == "*") and \ + (product == detailed_status["product"] or detailed_status["product"] == "*"): + return True + + #if no match, return False + return False + def extend_cve_status(d): # do this only once in case multiple classes use this if d.getVar("CVE_STATUS_EXTENDED"): diff --git a/meta/lib/oe/spdx30_tasks.py b/meta/lib/oe/spdx30_tasks.py index 0e9c6fa..539901f 100644 --- a/meta/lib/oe/spdx30_tasks.py +++ b/meta/lib/oe/spdx30_tasks.py @@ -470,7 +470,6 @@ def _get_cves_info(d): for cve_id in (d.getVarFlags("CVE_STATUS") or {}): mapping, detail, description = oe.cve_check.decode_cve_status(d, cve_id) if not mapping or not detail: - bb.warn(f"Skipping {cve_id} — missing or unknown CVE status") continue yield cve_id, mapping, detail, description patched_cves.discard(cve_id) From patchwork Tue Dec 1 10:02:26 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106770 Received: from mta-64-225.siemens.flowmailer.net (mta-64-225.siemens.flowmailer.net [185.136.64.225]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7761.1796119356299704828 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=BewU0r7l; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.225, mailfrom: fm-1328017-20261201100233e039d8dc3d00020730-n2aqmc@rts-flowmailer.siemens.com) Received: by mta-64-225.siemens.flowmailer.net with ESMTPSA id 20261201100233e039d8dc3d00020730 for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=yrKHuYGvMgzJlZ5jVmrUAzpqesu+36oTz2TT/vyn8y8=; b=BewU0r7lMJcIHWxhDol532XTBI3Hxn3zkLUoFC3uGNHHJuCx8VLM+3fHo3oLHauEp1cAJq 6RxbjlU+gnA5BN4aRcC8zMXTokMIOV+spbU09cIi4fEcRQauxKJZzrsEeZZ+FHtPWIFc3/dp zHPyXAJtuUlS+N8xfvaonslHc+1oOpfBEErx8l1lROUYWN7SVVeWwlw0r6W3u6f9WZ38nZqk Os9sPlIKf7m3uN9LRtIhwVlN73pcxTQV5SkVXEu1s4mvl2Nsvta9WkBwqE48DfJp+zWQcON0 3oXvQ3Cc32PNbtEXoHK3NQ7EFt2pvgzanAgzMlmLKC6dyFXR9BZYi9gw==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 3/8] cve-check: do not skip cve status description after : Date: Tue, 1 Dec 2026 11:02:26 +0100 Message-Id: <20261201100231.3119168-4-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251702 From: Peter Marko Correct maxsplit parameter from 5 to 4 to not drop text if description contains ":". Example: >>> "detail: cpe:vendor:product:description:cont".split(':', 5) ['detail', ' cpe', 'vendor', 'product', 'description', 'xxx'] >>> "detail: cpe:vendor:product:description:cont".split(':', 4) ['detail', ' cpe', 'vendor', 'product', 'description:xxx'] Signed-off-by: Peter Marko Signed-off-by: Richard Purdie (cherry picked from commit 3c4d8ca41ac0b429af92bf0ea84f1dfd0cda9e1f) Signed-off-by: Peter Tatrai --- meta/lib/oe/cve_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 6689d4a..92811f4 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -233,7 +233,7 @@ def decode_cve_status_scoped(d, cve): if not status: return {} - status_split = status.split(':', 5) + status_split = status.split(':', 4) status_out = {} status_out["detail"] = status_split[0] product = "*" From patchwork Tue Dec 1 10:02:27 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106772 Received: from mta-64-228.siemens.flowmailer.net (mta-64-228.siemens.flowmailer.net [185.136.64.228]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7720.1796119356300580685 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=mgjStqxf; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.228, mailfrom: fm-1328017-2026120110023362376e4e4b000207da-nqdmo4@rts-flowmailer.siemens.com) Received: by mta-64-228.siemens.flowmailer.net with ESMTPSA id 2026120110023362376e4e4b000207da for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=isWDFKAvekClFObpjmeHBhpAom2bkEUkgNRO79ErD1g=; b=mgjStqxfdw3+wePXUaZ4wOSe+uqNLK4G0+f2AarLIPW/EaEBtP1SbfdDjPY7ytUAUE+S66 9zinx4H0XiGsPtwFsDynNMLXgUe+jc+JDLm6Tre+gtJYdeuE3tl9EJrQ/Nt4ajxWpAiSAmSc VaEpBHFnHGVBo/ACoodjeZCxU2nKAuJ01e9kkFMBjvRZ0Aoh15rfWhOR+LHepvWyfvhhZYY+ je7kEziyMoe+ruUqswwood6jAviLNQNt/Pas2SHRzf6csSBcy9gBWcvrBt0g47xrm4Wt8utQ nyIFURP7KXt4U50G6ibOhP5I/UCQEH8TV6VYCllgzphoLbjcf59FKcfQ==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 4/8] cve-check: fix malformed cve status description with : characters Date: Tue, 1 Dec 2026 11:02:27 +0100 Message-Id: <20261201100231.3119168-5-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251704 From: Peter Marko When CPE is not provided and character ":" is in cve status description, current code takes only last part of split function. This works only if there is no ":" in description, otherwise it drops the other split parts. Do a new split of the original string to take the whole description unchanged. This fixes following entries from world build of poky+meta-oe+meta-python: tiff-4.6.0-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2015-7313 CVE_STATUS: fixed-version: Tested with check from https://security-tracker.debian.org/tracker/CVE-2015-7313 and already 4.3.0 doesn't have the issue description: //security-tracker.debian.org/tracker/CVE-2015-7313 and already 4.3.0 doesn't have the issue corrected: Tested with check from https://security-tracker.debian.org/tracker/CVE-2015-7313 and already 4.3.0 doesn't have the issue gnupg-2.5.0-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2022-3219 CVE_STATUS: upstream-wontfix: Upstream doesn't seem to be keen on merging the proposed commit - https://dev.gnupg.org/T5993 description: //dev.gnupg.org/T5993 corrected: Upstream doesn't seem to be keen on merging the proposed commit - https://dev.gnupg.org/T5993 libyaml-0.2.5-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2024-35325 CVE_STATUS: upstream-wontfix: Upstream thinks this is a misuse (or wrong use) of the libyaml API - https://github.com/yaml/libyaml/issues/303 description: //github.com/yaml/libyaml/issues/303 corrected: Upstream thinks this is a misuse (or wrong use) of the libyaml API - https://github.com/yaml/libyaml/issues/303 libyaml-0.2.5-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2024-35326 CVE_STATUS: upstream-wontfix: Upstream thinks there is no working code that is exploitable - https://github.com/yaml/libyaml/issues/302 description: //github.com/yaml/libyaml/issues/302 corrected: Upstream thinks there is no working code that is exploitable - https://github.com/yaml/libyaml/issues/302 libyaml-0.2.5-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2024-35328 CVE_STATUS: upstream-wontfix: Upstream thinks there is no working code that is exploitable - https://github.com/yaml/libyaml/issues/302 description: //github.com/yaml/libyaml/issues/302 corrected: Upstream thinks there is no working code that is exploitable - https://github.com/yaml/libyaml/issues/302 cpio-2.15-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2023-7216 CVE_STATUS: disputed: intended behaviour, see https://lists.gnu.org/archive/html/bug-cpio/2024-03/msg00000.html description: //lists.gnu.org/archive/html/bug-cpio/2024-03/msg00000.html corrected: intended behaviour, see https://lists.gnu.org/archive/html/bug-cpio/2024-03/msg00000.html openssh-9.9p1-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2023-51767 CVE_STATUS: upstream-wontfix: It was demonstrated on modified sshd and does not exist in upstream openssh https://bugzilla.mindrot.org/show_bug.cgi?id=3656#c1. description: //bugzilla.mindrot.org/show_bug.cgi?id=3656#c1. corrected: It was demonstrated on modified sshd and does not exist in upstream openssh https://bugzilla.mindrot.org/show_bug.cgi?id=3656#c1. cups-2.4.10-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2021-25317 CVE_STATUS: not-applicable-config: This concerns /var/log/cups having lp ownership, our /var/log/cups is root:root, so this doesn't apply. description: root, so this doesn't apply. corrected: This concerns /var/log/cups having lp ownership, our /var/log/cups is root:root, so this doesn't apply. unzip-1_6.0-r0 do_cve_check: CVE_STATUS with 3 parts for CVE-2008-0888 CVE_STATUS: fixed-version: Patch from https://bugzilla.redhat.com/attachment.cgi?id=293893&action=diff applied to 6.0 source description: //bugzilla.redhat.com/attachment.cgi?id=293893&action=diff applied to 6.0 source corrected: Patch from https://bugzilla.redhat.com/attachment.cgi?id=293893&action=diff applied to 6.0 source syslog-ng-4.7.0-r0 do_cve_check: CVE_STATUS with 6 parts for CVE-2022-38725 CVE_STATUS: cpe-incorrect: cve-check wrongly matches cpe:2.3:a:oneidentity:syslog-ng:*:*:*:*:premium:*:*:* < 7.0.32 description: syslog-ng:*:*:*:*:premium:*:*:* < 7.0.32 corrected: cve-check wrongly matches cpe:2.3:a:oneidentity:syslog-ng:*:*:*:*:premium:*:*:* < 7.0.32 Signed-off-by: Peter Marko Signed-off-by: Richard Purdie (cherry picked from commit cc33dd9176726cb4b2d2f142ed1bc655da8e0a9f) Signed-off-by: Peter Tatrai --- meta/lib/oe/cve_check.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index 92811f4..af7745c 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -251,7 +251,7 @@ def decode_cve_status_scoped(d, cve): else: # Other case: no CPE, the syntax is then: # detail: description - description = status_split[len(status_split)-1].strip() if (len(status_split) > 1) else "" + description = status.split(':', 1)[1].strip() if (len(status_split) > 1) else "" status_out["vendor"] = vendor status_out["product"] = product From patchwork Tue Dec 1 10:02:28 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106769 Received: from mta-64-227.siemens.flowmailer.net (mta-64-227.siemens.flowmailer.net [185.136.64.227]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7762.1796119356299976083 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=cuVHQrwm; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.64.227, mailfrom: fm-1328017-20261201100233bb8b88c58e000207fc-a2vnsy@rts-flowmailer.siemens.com) Received: by mta-64-227.siemens.flowmailer.net with ESMTPSA id 20261201100233bb8b88c58e000207fc for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=8r6yx58bH9YuHMoiKQoZiJxHimEDG0+9yO9lUPodVBU=; b=cuVHQrwmzb9k5yQ8utXPrLraSDJ+0vpt6P4X9cdOALrBeNWynxD+toxGgHwsbK+8iNZBje wTUqJO+zIWPPEdJvWu0hUr6MELIfoOse2Ub6K2FNhy+lwnNl1zjuQM887t7uW9PNw1DN9/IW mqAoKndRsehST/Lv70AYpvCPELJ4xJZ3uFWnPond9DAYsH1le0jnlECQfGW+0cXTLYK8lfxw col4PqbtMFQn5HH+g4F+BSWjvly7O6daIy5bPyFPUcqizc4EVudT3tV5piuE+7U59KE6nh/3 W0ATreegSdtQGPmMNWA9b8bLjcxODbYctOQ1P9GfEgXtgL03PVaYKsDg==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 5/8] cve-check: Fix errors in log lines Date: Tue, 1 Dec 2026 11:02:28 +0100 Message-Id: <20261201100231.3119168-6-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251701 From: Colin McAllister Two warning lines in cve_check.py reference a variable that doesn't exist. These would cause a runtime error if the conditions they are hidden in were to be entered. The log lines have been updated to no longer reference an undefined variable. Signed-off-by: Colin McAllister Signed-off-by: Richard Purdie (cherry picked from commit c9d059e8a362b3c9d604f7ebe8fd1dd994f0af6b) Signed-off-by: Peter Tatrai --- meta/lib/oe/cve_check.py | 13 ++++++++++--- 1 file changed, 10 insertions(+), 3 deletions(-) diff --git a/meta/lib/oe/cve_check.py b/meta/lib/oe/cve_check.py index af7745c..decc4b4 100644 --- a/meta/lib/oe/cve_check.py +++ b/meta/lib/oe/cve_check.py @@ -247,7 +247,10 @@ def decode_cve_status_scoped(d, cve): description = status_split[4].strip() elif len(status_split) >= 2 and status_split[1].strip() == "cpe": # Malformed CPE - bb.warn('Invalid CPE information for CVE_STATUS[%s] = "%s", not setting CPE' % (detail, cve, status)) + bb.warn( + 'Invalid CPE information for CVE_STATUS[%s] = "%s", not setting CPE' + % (cve, status) + ) else: # Other case: no CPE, the syntax is then: # detail: description @@ -257,9 +260,13 @@ def decode_cve_status_scoped(d, cve): status_out["product"] = product status_out["description"] = description - status_mapping = d.getVarFlag("CVE_CHECK_STATUSMAP", status_out['detail']) + detail = status_out["detail"] + status_mapping = d.getVarFlag("CVE_CHECK_STATUSMAP", detail) if status_mapping is None: - bb.warn('Invalid detail "%s" for CVE_STATUS[%s] = "%s", fallback to Unpatched' % (detail, cve, status)) + bb.warn( + 'Invalid detail "%s" for CVE_STATUS[%s] = "%s", fallback to Unpatched' + % (detail, cve, status) + ) status_mapping = "Unpatched" status_out["mapping"] = status_mapping From patchwork Tue Dec 1 10:02:29 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106773 Received: from mta-65-227.siemens.flowmailer.net (mta-65-227.siemens.flowmailer.net [185.136.65.227]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7721.1796119356300639697 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=Qf5Mx/XP; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.227, mailfrom: fm-1328017-2026120110023337f49dcedd000207e7-vgp5ln@rts-flowmailer.siemens.com) Received: by mta-65-227.siemens.flowmailer.net with ESMTPSA id 2026120110023337f49dcedd000207e7 for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=8BT1UmIe4AHV1dHXPqPkb6pYh1I2/eYR31cMIF2eXbQ=; b=Qf5Mx/XPOBCwi6SMISBU1I2313nZLSjVux8J6Z9Fg5SUKcss6mSJmKTvr+wD6uPDWrAIqf 3EqfQAYoTG3FcBi/IE/gXduTWbhdvY1duMulb0NjN1Lsx8oLAHkUWzHuOqld6qv8JuTZDeQW YD/Vf/aAurmbyeA/nrcXhZ71bIUlSkIv+UIoWEurVhaVs4CFYLsTP9mKIvOyIIQJ+BrKEAlZ saNAQPWXzKjkYKwF8OMNlFYlQBnhXMTgk1TWnbacdUYVgCVxHkLeO0ptnBHz+Y5gQb/fquNh +Sv67F0quhLd4iATioZ3NlZfsyYtQz1rixSFU2HTer8zQSPR9oqCR7pw==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 6/8] selftest: add test_product_match Date: Tue, 1 Dec 2026 11:02:29 +0100 Message-Id: <20261201100231.3119168-7-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:50 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251705 From: Marta Rybczynska CVECheck.test_product_match tests has_cve_product_match() Signed-off-by: Marta Rybczynska Signed-off-by: Richard Purdie (cherry picked from commit 30ee6edc57ff7629a72606d1005f92d43a5d14f9) Signed-off-by: Peter Tatrai --- meta/lib/oeqa/selftest/cases/cve_check.py | 48 +++++++++++++++++++++++ 1 file changed, 48 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/cve_check.py b/meta/lib/oeqa/selftest/cases/cve_check.py index 60cecd1..277179d 100644 --- a/meta/lib/oeqa/selftest/cases/cve_check.py +++ b/meta/lib/oeqa/selftest/cases/cve_check.py @@ -72,6 +72,54 @@ class CVECheck(OESelftestTestCase): self.assertEqual(convert_cve_version("6.2_rc8"), "6.2-rc8") self.assertEqual(convert_cve_version("6.2_rc31"), "6.2-rc31") + def test_product_match(self): + from oe.cve_check import has_cve_product_match + + status = {} + status["detail"] = "ignored" + status["vendor"] = "*" + status["product"] = "*" + status["description"] = "" + status["mapping"] = "" + + self.assertEqual(has_cve_product_match(status, "some_vendor:some_product"), True) + self.assertEqual(has_cve_product_match(status, "*:*"), True) + self.assertEqual(has_cve_product_match(status, "some_product"), True) + self.assertEqual(has_cve_product_match(status, "glibc"), True) + self.assertEqual(has_cve_product_match(status, "glibca"), True) + self.assertEqual(has_cve_product_match(status, "aglibc"), True) + self.assertEqual(has_cve_product_match(status, "*"), True) + self.assertEqual(has_cve_product_match(status, "aglibc glibc test:test"), True) + + status["product"] = "glibc" + self.assertEqual(has_cve_product_match(status, "some_vendor:some_product"), False) + # The CPE in the recipe must be defined, no * accepted + self.assertEqual(has_cve_product_match(status, "*:*"), False) + self.assertEqual(has_cve_product_match(status, "*"), False) + self.assertEqual(has_cve_product_match(status, "some_product"), False) + self.assertEqual(has_cve_product_match(status, "glibc"), True) + self.assertEqual(has_cve_product_match(status, "glibca"), False) + self.assertEqual(has_cve_product_match(status, "aglibc"), False) + self.assertEqual(has_cve_product_match(status, "some_vendor:glibc"), True) + self.assertEqual(has_cve_product_match(status, "some_vendor:glibc test"), True) + self.assertEqual(has_cve_product_match(status, "test some_vendor:glibc"), True) + + status["vendor"] = "glibca" + status["product"] = "glibc" + self.assertEqual(has_cve_product_match(status, "some_vendor:some_product"), False) + # The CPE in the recipe must be defined, no * accepted + self.assertEqual(has_cve_product_match(status, "*:*"), False) + self.assertEqual(has_cve_product_match(status, "*"), False) + self.assertEqual(has_cve_product_match(status, "some_product"), False) + self.assertEqual(has_cve_product_match(status, "glibc"), False) + self.assertEqual(has_cve_product_match(status, "glibca"), False) + self.assertEqual(has_cve_product_match(status, "aglibc"), False) + self.assertEqual(has_cve_product_match(status, "some_vendor:glibc"), False) + self.assertEqual(has_cve_product_match(status, "glibca:glibc"), True) + self.assertEqual(has_cve_product_match(status, "test:test glibca:glibc"), True) + self.assertEqual(has_cve_product_match(status, "test glibca:glibc"), True) + self.assertEqual(has_cve_product_match(status, "glibca:glibc test"), True) + def test_recipe_report_json(self): config = """ From patchwork Tue Dec 1 10:02:30 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106775 Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by mx.groups.io with SMTP id smtpd.msgproc02-g2.7723.1796119356481381967 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=RVX7Bjw6; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.226, mailfrom: fm-1328017-20261201100233e6d8528f7600020792-lkacaz@rts-flowmailer.siemens.com) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20261201100233e6d8528f7600020792 for ; Tue, 01 Dec 2026 11:02:33 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=bFX+wmqNOhlbi3WhQY9VgZZYwcuaZjqibDiLVSDGiyU=; b=RVX7Bjw64rsiq0ZqmB191RVH9UHjqCGw/XJOmVl/I3l77UWbgbfyLlW4gOYxwu36LmpE2o Af5Seezauh1nlMWKvEuC2Lb/LfTQc8ftog5mWLy4zs4xMDhNt+FlP2fSxHmzNI/9ScupiXHN yQgmfriWnDid1bLbOyH/jhPg4QDNzJ+6FYtX5UFOsuJHcwsUsd9fRhb0tKJNGPXfpvDEaOVN qtko6TTLa8rJUoqr1Z0fYa2BsBvW4vKGcckbP25PFLtendOAXiuevIWYNEs2IVyFh6nZuf+F SWbM87wcheebKTW/kNvwgJ9qBdFeQLUac9EptsorUAe0F3ENP8O/SxPQ==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 7/8] selftest: test scoped CVE_STATUS on scarthgap Date: Tue, 1 Dec 2026 11:02:30 +0100 Message-Id: <20261201100231.3119168-8-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:51 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251707 From: Peter Tatrai Cover the scarthgap-specific parts of the scoped CVE_STATUS backport: decode_cve_status() still returns a tuple and filters scoped entries by CVE_PRODUCT, unscoped entries also apply when CVE_PRODUCT is empty, CVE_STATUS_GROUPS can be scoped, and SPDX only exports matching entries. AI-Generated: GitHub Copilot CLI, Claude Opus 5.5 Signed-off-by: Peter Tatrai --- meta/lib/oeqa/selftest/cases/cve_check.py | 54 +++++++++++++++++++++++ 1 file changed, 54 insertions(+) diff --git a/meta/lib/oeqa/selftest/cases/cve_check.py b/meta/lib/oeqa/selftest/cases/cve_check.py index 277179d..a0d9ebc 100644 --- a/meta/lib/oeqa/selftest/cases/cve_check.py +++ b/meta/lib/oeqa/selftest/cases/cve_check.py @@ -120,6 +120,60 @@ class CVECheck(OESelftestTestCase): self.assertEqual(has_cve_product_match(status, "test glibca:glibc"), True) self.assertEqual(has_cve_product_match(status, "glibca:glibc test"), True) + def test_scoped_status(self): + import bb + from oe.cve_check import decode_cve_status, extend_cve_status, get_patched_cves + from unittest.mock import patch + + d = bb.data.init() + cve = "CVE-2020-0001" + d.setVarFlag("CVE_CHECK_STATUSMAP", "fixed-version", "Patched") + d.setVarFlag("CVE_STATUS", cve, "fixed-version: cpe:oracle:berkeley_db: Fixed: see upstream") + for product, matches in ( + ("oracle:berkeley_db", True), + ("other:berkeley_db", False), + ("oracle:zlib", False), + ("zlib:zlib oracle:berkeley_db", True), + ("", False), + ): + with self.subTest(product=product): + d.setVar("CVE_PRODUCT", product) + expected = ("Patched", "fixed-version", "Fixed: see upstream") if matches else ("", "", "") + self.assertEqual(decode_cve_status(d, cve), expected) + with patch("oe.patch.src_patches", return_value=[]): + self.assertEqual(get_patched_cves(d), {cve} if matches else set()) + + # Unscoped entries still apply, also with an empty CVE_PRODUCT + d.setVarFlag("CVE_STATUS", cve, "fixed-version: Existing reason: unchanged") + for product in ("zlib", ""): + with self.subTest(product=product): + d.setVar("CVE_PRODUCT", product) + self.assertEqual(decode_cve_status(d, cve), + ("Patched", "fixed-version", "Existing reason: unchanged")) + + d.setVar("CVE_STATUS_GROUPS", "SCOPED_GROUP") + d.setVar("SCOPED_GROUP", cve) + d.setVarFlag("SCOPED_GROUP", "status", "fixed-version: cpe:*:zlib: Matching group") + extend_cve_status(d) + d.setVar("CVE_PRODUCT", "zlib") + self.assertEqual(decode_cve_status(d, cve), ("Patched", "fixed-version", "Matching group")) + d.setVar("CVE_PRODUCT", "glibc") + self.assertEqual(decode_cve_status(d, cve), ("", "", "")) + + def test_scoped_status_spdx(self): + import bb + import oe.spdx30_tasks + from unittest.mock import patch + + d = bb.data.init() + d.setVar("CVE_PRODUCT", "zlib:zlib") + d.setVarFlag("CVE_CHECK_STATUSMAP", "ignored", "Ignored") + d.setVarFlag("CVE_STATUS", "CVE-2020-0001", "ignored: cpe:*:berkeley_db: Not zlib") + d.setVarFlag("CVE_STATUS", "CVE-2020-0002", "ignored: cpe:*:zlib: Matches zlib") + with patch("oe.patch.src_patches", return_value=[]): + self.assertEqual(list(oe.spdx30_tasks._get_cves_info(d)), + [("CVE-2020-0002", "Ignored", "ignored", "Matches zlib")]) + def test_recipe_report_json(self): config = """ From patchwork Tue Dec 1 10:02:31 2026 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "P. Tatrai" X-Patchwork-Id: 106768 Received: from mta-65-226.siemens.flowmailer.net (mta-65-226.siemens.flowmailer.net [185.136.65.226]) by mx.groups.io with SMTP id smtpd.msgproc01-g2.7764.1796119356409273427 for ; Tue, 01 Dec 2026 02:02:37 -0800 Authentication-Results: mx.groups.io; dkim=pass header.i=peter.tatrai.ext@siemens.com header.s=fm1 header.b=DQ1vLbS6; spf=pass (domain: rts-flowmailer.siemens.com, ip: 185.136.65.226, mailfrom: fm-1328017-20261201100233a6a8cc14f700020759-fupsft@rts-flowmailer.siemens.com) Received: by mta-65-226.siemens.flowmailer.net with ESMTPSA id 20261201100233a6a8cc14f700020759 for ; Tue, 01 Dec 2026 11:02:34 +0100 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; s=fm1; d=siemens.com; i=peter.tatrai.ext@siemens.com; h=from:from:sender:to:to:cc:subject:subject:content-type:content-transfer-encoding:content-transfer-encoding:References:In-Reply-To:Date:Message-ID:MIME-Version; bh=srrfyg9fplHWBYmYQKKI8hRWnIdMzpp5lPKwNzU+WoM=; b=DQ1vLbS6wtkKCU8H1N/t5ELpNGE116/gIDBUD9nsX/9uuWynxlXtBtmFLZ2vwosodd9IQP me6c7mJeOXb7GbekQ+t2BObhK0/VRl9VQWD1Ev9G9tgP9uFh4lr5kg3v6ioO/uzQLAHM2UTG TWDwUcSWy0q6jSIs9jjcTr4z5/Q4UGkIQI6OkXnt46uqe1pXiQRmyFFVMW52vGe54EAr/QkN gEtRxNRHZcSBgq9JPs5sIYiwPQ/MWYQYILsPCJibbWVzENh92sJDn3nM025ealjPfmRkfYTS u0AcyLpYXhjAeJOLMg2yz4WwMpizYhtISLPK/9EgvFgwxbVId33ZCBLw==; From: "P. Tatrai" To: openembedded-core@lists.openembedded.org Subject: [scarthgap][PATCH v2 8/8] cve-extra-inclusions: encode CPEs of affected packages Date: Tue, 1 Dec 2026 11:02:31 +0100 Message-Id: <20261201100231.3119168-9-peter.tatrai.ext@siemens.com> In-Reply-To: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> References: <20261201100231.3119168-1-peter.tatrai.ext@siemens.com> MIME-Version: 1.0 X-Flowmailer-Platform: Siemens Feedback-ID: 519:519-1328017:519-21489:flowmailer List-Id: X-Webhook-Received: from 45-33-107-173.ip.linodeusercontent.com [45.33.107.173] by lin-tor-korg-lkml-alma10-1 with HTTPS for ; Tue, 01 Dec 2026 10:02:40 -0000 X-Groupsio-URL: https://lists.openembedded.org/g/openembedded-core/message/251700 From: Marta Rybczynska Add the new cpe:vendor:product tagging to entries in cve-extra-inclusions, using product/vendor combinations that are already present in OE-core (usually there is no specific vendor). Backport check: the old and new cve-extra-exclusions.inc were loaded into BitBake datastores for the eight products that the entries now name (strace, epiphany, glibc, golang:go, berkeley_db, linux_kernel, qemu, netwide_assembler) and passed through the scarthgap cve-check and SPDX helpers. All 43 CVE IDs keep the same status, detail and description for their product. Against a local NVD snapshot, 42 of them are Ignored by cve-check both before and after. CVE-2011-0640 is listed under udev, not linux_kernel, in NVD, so cve-check does not report it for the kernel either before or after this change. No CVE changed to Unpatched. For unrelated recipes the entries are no longer reported, e.g. SPDX for CVE-2020-2981: db: Ignored / upstream-wontfix -> Ignored / upstream-wontfix zlib: Ignored / upstream-wontfix -> not reported This was checked with the helper functions, not with a full image build. Signed-off-by: Marta Rybczynska Signed-off-by: Richard Purdie (cherry picked from commit e1bf43561093b3b9215cde9e9f7d80b4ffcdc64e) AI-Generated: GitHub Copilot CLI, Claude Opus 5.5 (backport check note) Signed-off-by: Peter Tatrai --- .../distro/include/cve-extra-exclusions.inc | 24 +++++++++---------- 1 file changed, 12 insertions(+), 12 deletions(-) diff --git a/meta/conf/distro/include/cve-extra-exclusions.inc b/meta/conf/distro/include/cve-extra-exclusions.inc index fcef6a1..ffbbb7b 100644 --- a/meta/conf/distro/include/cve-extra-exclusions.inc +++ b/meta/conf/distro/include/cve-extra-exclusions.inc @@ -16,11 +16,11 @@ # # strace https://nvd.nist.gov/vuln/detail/CVE-2000-0006 -CVE_STATUS[CVE-2000-0006] = "upstream-wontfix: CVE is more than 20 years old \ +CVE_STATUS[CVE-2000-0006] = "upstream-wontfix: cpe:*:strace: CVE is more than 20 years old \ with no resolution evident. Broken links in CVE database references make resolution impractical." # epiphany https://nvd.nist.gov/vuln/detail/CVE-2005-0238 -CVE_STATUS[CVE-2005-0238] = "upstream-wontfix: \ +CVE_STATUS[CVE-2005-0238] = "upstream-wontfix: cpe:*:epiphany: \ The issue here is spoofing of domain names using characters from other character sets. \ There has been much discussion amongst the epiphany and webkit developers and \ whilst there are improvements about how domains are handled and displayed to the user \ @@ -28,7 +28,7 @@ there is unlikely ever to be a single fix to webkit or epiphany which addresses problem. There isn't any mitigation or fix or way to progress this further." # glibc https://nvd.nist.gov/vuln/detail/CVE-2010-4756 -CVE_STATUS[CVE-2010-4756] = "upstream-wontfix: \ +CVE_STATUS[CVE-2010-4756] = "upstream-wontfix: cpe:*:glibc: \ Issue is memory exhaustion via glob() calls, e.g. from within an ftp server \ Best discussion in https://bugzilla.redhat.com/show_bug.cgi?id=681681 \ Upstream don't see it as a security issue, ftp servers shouldn't be passing \ @@ -38,7 +38,7 @@ this to libc glob. Upstream have no plans to add BSD's GLOB_LIMIT or similar." # go https://nvd.nist.gov/vuln/detail/CVE-2020-29511 CVE_STATUS_GROUPS += "CVE_STATUS_GO" CVE_STATUS_GO = "CVE-2020-29509 CVE-2020-29511" -CVE_STATUS_GO[status] = "not-applicable-config: \ +CVE_STATUS_GO[status] = "not-applicable-config: cpe:golang:go: \ The encoding/xml package in go can potentially be used for security exploits if not used correctly \ CVE applies to a netapp product as well as flagging a general issue. We don't ship anything \ exposing this interface in an exploitable way" @@ -50,7 +50,7 @@ CVE-2015-2656 CVE-2015-4754 CVE-2015-4764 CVE-2015-4774 CVE-2015-4775 CVE-2015-4 CVE-2015-4778 CVE-2015-4779 CVE-2015-4780 CVE-2015-4781 CVE-2015-4782 CVE-2015-4783 CVE-2015-4784 \ CVE-2015-4785 CVE-2015-4786 CVE-2015-4787 CVE-2015-4788 CVE-2015-4789 CVE-2015-4790 CVE-2016-0682 \ CVE-2016-0689 CVE-2016-0692 CVE-2016-0694 CVE-2016-3418 CVE-2020-2981" -CVE_STATUS_DB[status] = "upstream-wontfix: Since Oracle relicensed bdb, the open source community is slowly but surely \ +CVE_STATUS_DB[status] = "upstream-wontfix: cpe:*:berkeley_db: Since Oracle relicensed bdb, the open source community is slowly but surely \ replacing bdb with supported and open source friendly alternatives. As a result this CVE is unlikely to ever be fixed." # Kernel CVEs that are generic but can't be added to the kernel's hand-maintained cve-exclusion.inc @@ -60,25 +60,25 @@ replacing bdb with supported and open source friendly alternatives. As a result # For OE-Core our policy is to stay as close to the kernel stable releases as we can. This should # ensure the bulk of the major kernel CVEs are fixed and we don't dive into each individual issue # as the stable maintainers are much more able to do that. -CVE_STATUS[CVE-1999-0524] = "ignored: issue is that ICMP exists, can be filewalled if required" -CVE_STATUS[CVE-2008-4609] = "ignored: describes design flaws in TCP" -CVE_STATUS[CVE-2010-4563] = "ignored: low impact, only enables detection of hosts which are sniffing network traffic" -CVE_STATUS[CVE-2011-0640] = "ignored: requires physical access and any mitigation would mean USB is impractical to use" +CVE_STATUS[CVE-1999-0524] = "ignored: cpe:*:linux_kernel:issue is that ICMP exists, can be filewalled if required" +CVE_STATUS[CVE-2008-4609] = "ignored: cpe:*:linux_kernel:describes design flaws in TCP" +CVE_STATUS[CVE-2010-4563] = "ignored: cpe:*:linux_kernel:low impact, only enables detection of hosts which are sniffing network traffic" +CVE_STATUS[CVE-2011-0640] = "ignored: cpe:*:linux_kernel:requires physical access and any mitigation would mean USB is impractical to use" # qemu:qemu-native:qemu-system-native https://nvd.nist.gov/vuln/detail/CVE-2021-20255 -CVE_STATUS[CVE-2021-20255] = "upstream-wontfix: \ +CVE_STATUS[CVE-2021-20255] = "upstream-wontfix: cpe:*:qemu: \ There was a proposed patch https://lists.gnu.org/archive/html/qemu-devel/2021-02/msg06098.html \ qemu maintainers say the patch is incorrect and should not be applied \ The issue is of low impact, at worst sitting in an infinite loop rather than exploitable." # qemu:qemu-native:qemu-system-native https://nvd.nist.gov/vuln/detail/CVE-2019-12067 -CVE_STATUS[CVE-2019-12067] = "upstream-wontfix: \ +CVE_STATUS[CVE-2019-12067] = "upstream-wontfix: cpe:*:qemu: \ There was a proposed patch but rejected by upstream qemu. It is unclear if the issue can \ still be reproduced or where exactly any bug is. \ We'll pick up any fix when upstream accepts one." # nasm:nasm-native https://nvd.nist.gov/vuln/detail/CVE-2020-18974 -CVE_STATUS[CVE-2020-18974] = "upstream-wontfix: \ +CVE_STATUS[CVE-2020-18974] = "upstream-wontfix: cpe:*:netwide_assembler: \ It is a fuzzing related buffer overflow. It is of low impact since most devices \ wouldn't expose an assembler. The upstream is inactive and there is little to be \ done about the bug, ignore from an OE perspective."