Skip to contentSkip to conversation

package/arm-trusted-firmware: add ARM_TRUSTED_FIRMWARE_CPE_ID_*

PATCH Superseded Heiko Stuebner via buildroot 1 participant 4 messages Mar 25 – Mar 26

v1 of 2 Superseded Latest is v2 →

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/arm-trusted-firmware: add ARM_TRUSTED_FIRMWARE_CPE_ID_*

From: Heiko Stuebner <[email protected]>

Trusted-Firmware has been using a number of CPE identifiers in the past but especially after v2.4, the correct identifier would be similar to cpe:2.3:o:arm:trusted_firmware-a:2.12:rc0:*:*:-:*:*:*

https://nvd.nist.gov/products/cpe/detail/65DEC230-1CD5-40DB-903A-22537D1E44FE

Add the relevant CPE fields to the trusted-firmware package.

---
 boot/arm-trusted-firmware/arm-trusted-firmware.mk | 3 +++
 1 file changed, 3 insertions(+)
boot/arm-trusted-firmware/arm-trusted-firmware.mk +3 -0
index b81ce0d827..6de35dca7a 100644
@@ -5,6 +5,9 @@
 ################################################################################
 
 ARM_TRUSTED_FIRMWARE_VERSION = $(call qstrip,$(BR2_TARGET_ARM_TRUSTED_FIRMWARE_VERSION))
+ARM_TRUSTED_FIRMWARE_CPE_ID_PREFIX = cpe:2.3:o
+ARM_TRUSTED_FIRMWARE_CPE_ID_VENDOR = arm
+ARM_TRUSTED_FIRMWARE_CPE_ID_PRODUCT = trusted_firmware-a
 
 ifeq ($(BR2_TARGET_ARM_TRUSTED_FIRMWARE_CUSTOM_TARBALL),y)
 # Handle custom ATF tarballs as specified by the configuration
Signature · 6 lines
2.51.0

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot
author Reviewed-by Quentin Schulz on v1 1/1
#1 lore raw

Hi Heiko,

Quoted 10 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

Trusted-Firmware has been using a number of CPE identifiers in the past but especially after v2.4, the correct identifier would be similar to cpe:2.3:o:arm:trusted_firmware-a:2.12:rc0:*:*:-:*:*:*

   https://nvd.nist.gov/products/cpe/detail/65DEC230-1CD5-40DB-903A-22537D1E44FE

Add the relevant CPE fields to the trusted-firmware package.

meta-arm (the official Yocto layer from Arm themselves) reports 4 possible CPEs (c.f. https://git.yoctoproject.org/meta-arm/commit/meta-arm/recipes-bsp/trusted-firmware-a/trusted-firmware-a.inc?id=067a259cbd5ad4d2a8c2b4ea2cff5acdc126ccd2), TF-A source code adds yet another one, c.f. https://review.trustedfirmware.org/plugins/gitiles/TF-A/trusted-firmware-a/+/refs/heads/master/docs/sbom.cdx.json.

As far as I could tell, only two CPEs have been used so far. I've sent a request to NVD to merge existing CPEs (and/or add all existing CPEs to existing CVEs such that looking for one CPE will return all applicable CVEs). I've sent a patch (https://review.trustedfirmware.org/c/TF-A/trusted-firmware-a/+/49486) to TF-A to fix the CycloneDX to avoid yet another CPE to appear (but since it's been in releases since v2.13, maybe it's "too late" and someone in the future will use that CPE and NVD won't correct it before publishing /me shrugs).

cpe:2.3:o:arm:trusted_firmware-a: indeed seems to be the one people now use to report CVEs as it contains the two newest CVEs for TF-A (the other CPE with CVEs haven't seen a new one since 2017).

Yocto supports the SPDX v3 format which allows to specify multiple CPEs (externalIdentifier) per Software Package. CycloneDX doesn't though... So I am wondering what's the plan on Buildroot-side here?

OP-TEE OS also has multiple CPEs... meta-arm Yocto layer reports linaro:op-tee and op-tee:op-tee_os. Ugh...

Anyway, this looks fine to me so:

Thanks!
Quentin
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#2 lore raw
In reply to Heiko Stuebner via buildroot

Hi Heiko,

Quoted 10 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

Trusted-Firmware has been using a number of CPE identifiers in the past but especially after v2.4, the correct identifier would be similar to cpe:2.3:o:arm:trusted_firmware-a:2.12:rc0:*:*:-:*:*:*

   https://nvd.nist.gov/products/cpe/detail/65DEC230-1CD5-40DB-903A-22537D1E44FE

Add the relevant CPE fields to the trusted-firmware package.

Thinking about it a bit more, I **think** we may want to strip lts- prefix for the CPE_ID_VERSION. I don't see any version past 2.4 on NVD so we cannot really know what they'll do once they need to tackle LTSes, but I am assuming they are NOT going to use the lts- prefix?

What do you think?

Cheers,
Quentin
_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot

#3 lore raw

Am Mittwoch, 25. März 2026, 19:12:33 Mitteleuropäische Normalzeit schrieb Quentin Schulz:

Quoted 14 lines

Hi Heiko,

Quoted 10 lines · Heiko Stuebner

From: Heiko Stuebner <[email protected]>

Trusted-Firmware has been using a number of CPE identifiers in the past but especially after v2.4, the correct identifier would be similar to cpe:2.3:o:arm:trusted_firmware-a:2.12:rc0:*:*:-:*:*:*

   https://nvd.nist.gov/products/cpe/detail/65DEC230-1CD5-40DB-903A-22537D1E44FE

Add the relevant CPE fields to the trusted-firmware package.

Quoted 6 lines

Thinking about it a bit more, I **think** we may want to strip lts- prefix for the CPE_ID_VERSION. I don't see any version past 2.4 on NVD so we cannot really know what they'll do once they need to tackle LTSes, but I am assuming they are NOT going to use the lts- prefix?

What do you think?

I think you're quite right :-) .

I also realized I messed the versioning anyway and did not remove the "v" to match the version used in CPEs.

Done both now in v2.

Thanks for the review
Heiko

_______________________________________________
buildroot mailing list
[email protected]
https://lists.buildroot.org/mailman/listinfo/buildroot