Skip to contentSkip to conversation

backport the CVE_PRODUCT fixes from master

PATCH New Javier Tia 1 participant 4 messages Sep 2

lore
Share & tools
lore

Javier Tia

author
#0 lore raw

cover backport the CVE_PRODUCT fixes from master

The four CVE_PRODUCT commits from 2026-06-10 never reached the release branches, so cve-check on scarthgap still scans these recipes under names that match nothing in NVD. A recipe that matches nothing reports zero CVEs, which is indistinguishable from a recipe that was scanned and found clean.

Three of the four apply here; the fourth is scp-firmware, whose shared meta-arm/recipes-bsp/scp-firmware/scp-firmware.inc does not exist on scarthgap (only the per-board meta-arm-bsp variants do), so it is sent for wrynose only.

Measured against the NVD 2.0 API, replaying each CPE version range through oe.cve_check.Version at the PVs that ship:

  trustedfirmware:trusted_firmware-a   7 records, none reachable today
  arm:arm-trusted-firmware             0 records
  arm:arm_trusted_firmware             0 records

For trusted-firmware-a that turns a silent zero into a real scan: TF-A 2.10 gains one genuine unpatched finding (CVE-2023-31339), while 2.12 and 2.14 gain the scan and no finding.

Note this makes affected recipes start reporting CVEs where they reported none, which will look like a regression to anyone gating CI on a count. That is the intended effect rather than a side effect.

Cherry-picked from master with no changes; each patch carries its (cherry picked from commit ...) line. Found while auditing CVE_PRODUCT coverage on an i.MX BSP built from scarthgap.

Jon Mason (3):
arm/optee: modify CVE_PRODUCT
arm/trusted-firmware-a: modify CVE_PRODUCT
arm/trusted-firmware-m: add CVE_PRODUCT

 .../recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc     | 3 ++-
 .../recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc     | 2 ++
 meta-arm/recipes-security/optee/optee-os.inc                  | 4 +++-
 3 files changed, 7 insertions(+), 2 deletions(-)
Signature · 1 line
Javier Tia
author
#1 lore raw

PATCH 1/3 arm/optee: modify CVE_PRODUCT

From: Jon Mason <[email protected]>

Per https://nvd.nist.gov/products/cpe/detail/EB42962B-24FD-4716-B3E2-69F3258A57CF
adding "trustedfirmware:op-tee"

We can probably remove "linaro:op-tee", since it has been depreciated. Fearing unintended issues, leaving it in for now.

(cherry picked from commit 81f5a92193d37027670f2c9b767ccbcd29d1e78c)
---
 meta-arm/recipes-security/optee/optee-os.inc | 4 +++-
 1 file changed, 3 insertions(+), 1 deletion(-)
meta-arm/recipes-security/optee/optee-os.inc +3 -1
index 80ac0097..09ce79de 100644
@@ -8,7 +8,9 @@ LIC_FILES_CHKSUM = "file://LICENSE;md5=c1f21c4f72f372ef38a5a4aee55ec173"
 inherit deploy python3native
 require optee.inc
 
-CVE_PRODUCT = "linaro:op-tee op-tee:op-tee_os"
+CVE_PRODUCT = "linaro:op-tee \
+               op-tee:op-tee_os \
+               trustedfirmware:op-tee"
 
 DEPENDS = "python3-pyelftools-native python3-cryptography-native"
 
Signature · 1 line
Javier Tia
author
#2 lore raw

PATCH 2/3 arm/trusted-firmware-a: modify CVE_PRODUCT

In reply to Javier Tia

From: Jon Mason <[email protected]>

Per https://nvd.nist.gov/products/cpe/detail/2E1BD3E8-DF65-42E3-A0BA-747137D6DEF2
Adding "trustedfirmware:trusted_firmware-a"

We can probably remove "arm:trusted_firmware-a", since it has been depreciated. Fearing unintended issues, leaving it in for now.

(cherry picked from commit e2e63f20b504c31a4600f95764d3561c32b4b2f7)
---
 meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc +2 -1
index 922c0a34..5385e045 100644
@@ -246,4 +246,5 @@ addtask deploy after do_install
 CVE_PRODUCT = "arm:arm-trusted-firmware \
                arm:trusted_firmware-a \
                arm:arm_trusted_firmware \
-               arm_trusted_firmware_project:arm_trusted_firmware"
+               arm_trusted_firmware_project:arm_trusted_firmware \
+               trustedfirmware:trusted_firmware-a"
Signature · 1 line
Javier Tia
author
#3 lore raw

PATCH 3/3 arm/trusted-firmware-m: add CVE_PRODUCT

In reply to Javier Tia

From: Jon Mason <[email protected]>

Per https://nvd.nist.gov/products/cpe/detail/C0F7CF14-9ACD-42C5-A1F8-839937F8C4DC
add CVE_PRODUCT entry. Since there wasn't one existing, there is no need to remove anything.

(cherry picked from commit d0b93e582c7beb57e2d446311a93f5ab8b94fce1)
---
 meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc | 2 ++
 1 file changed, 2 insertions(+)
meta-arm/recipes-bsp/trusted-firmware-m/trusted-firmware-m.inc +2 -0
index 772366d9..ffd5a081 100644
@@ -123,3 +123,5 @@ INSANE_SKIP:${PN}-dbg += "buildpaths"
 # Target binaries will be 32-bit Arm
 INSANE_SKIP:${PN} += "arch"
 INSANE_SKIP:${PN}-dbg += "arch"
+
+CVE_PRODUCT = "trustedfirmware:trusted_firmware-m"
Signature · 1 line
Javier Tia