Skip to contentSkip to conversation

Was plain U-Boot affected by CVE-2023-39902?

DISCUSSION Rolf Eike Beer 4 participants 4 messages Jun 19, 2025 – Jun 24, 2025

lore
Share & tools
lore
#0 lore raw

Hi all,

for entirely unrelated reasons I came accross CVE-2023-39902:

Quoted 5 lines

A software vulnerability has been identified in the U-Boot Secondary Program Loader (SPL) before 2023.07 on select NXP i.MX 8M family processors. Under certain conditions, a crafted Flattened Image Tree (FIT) format structure can be used to overwrite SPL memory, allowing unauthenticated software to execute on the target, leading to privilege escalation.

This links to https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-Loader-Authentication-Vulnerability-CVE/ta-p/1736196, which links 4 patches. The relevant one seems to me https://github.com/nxp-imx/uboot-imx/
commit/0746cfd931de8f7591d263ff60dd806ffe23c093, and for my limited
understanding the actual fix is the first hunk.

A similar change has been made in 6039e0edc8540bd2a ("imx: hab: Simplify the mechanism"), so I wonder if this is just an unnoticed instance of the very same bug?

Opinions?

Regards,

Eike

Signature · 13 lines
Rolf Eike Beer

emlix GmbH
Headquarters: Berliner Str. 12, 37073 Göttingen, Germany
Phone +49 (0)551 30664-0, e-mail [email protected]
District Court of Göttingen, Registry Number HR B 3160
Managing Directors: Heike Jordan, Dr. Uwe Kracke
VAT ID No. DE 205 198 055
Office Berlin: Panoramastr. 1, 10178 Berlin, Germany
Office Bonn: Bachstr. 6, 53115 Bonn, Germany
http://www.emlix.com

emlix - your embedded Linux partner
#1 lore raw
Quoted 15 lines · Rolf Eike Beer

Hi all,

for entirely unrelated reasons I came accross CVE-2023-39902:

Quoted 5 lines

A software vulnerability has been identified in the U-Boot Secondary Program Loader (SPL) before 2023.07 on select NXP i.MX 8M family processors. Under certain conditions, a crafted Flattened Image Tree (FIT) format structure can be used to overwrite SPL memory, allowing unauthenticated software to execute on the target, leading to privilege escalation.

This links to https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-Loader-Authentication-Vulnerability-CVE/ta-p/1736196, which links 4 patches. The relevant one seems to me https://github.com/nxp-imx/uboot-imx/
commit/0746cfd931de8f7591d263ff60dd806ffe23c093, and for my limited
understanding the actual fix is the first hunk.

Quoted 5 lines

A similar change has been made in 6039e0edc8540bd2a ("imx: hab: Simplify the mechanism"), so I wonder if this is just an unnoticed instance of the very same bug?

Opinions?

Lets add the iMX folks..

Signature · 1 line
Tom
#2 lore raw
Quoted 16 lines · Tom Rini
Quoted 15 lines · Rolf Eike Beer

Hi all,

for entirely unrelated reasons I came accross CVE-2023-39902:

Quoted 5 lines

A software vulnerability has been identified in the U-Boot Secondary Program Loader (SPL) before 2023.07 on select NXP i.MX 8M family processors. Under certain conditions, a crafted Flattened Image Tree (FIT) format structure can be used to overwrite SPL memory, allowing unauthenticated software to execute on the target, leading to privilege escalation.

This links to https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-Loader-Authentication-Vulnerability-CVE/ta-p/1736196, which links 4 patches. The relevant one seems to me https://github.com/nxp-imx/uboot-imx/
commit/0746cfd931de8f7591d263ff60dd806ffe23c093, and for my limited
understanding the actual fix is the first hunk.

Quoted 8 lines
Quoted 5 lines

A similar change has been made in 6039e0edc8540bd2a ("imx: hab: Simplify the mechanism"), so I wonder if this is just an unnoticed instance of the very same bug?

Opinions?

Lets add the iMX folks..

MA-21597 check spl fit pointer before parsing it
https://github.com/nxp-imx/uboot-imx/commit/6cb283bb4e19da6667abaedd83efc23a15fdc48d

could be improved:

The check should better be in fit_config_verify() to cover all usages.

Best regards

Heinrich

#3 lore raw
In reply to Tom Rini

It is same bug also resolved by 6039e0edc8540bd2a ("imx: hab:Simplify the mechanism"). NXP Downstream uses different implementation with upstream.

Best regards,
Ye Li

Quoted 40 lines

-----Original Message-----
From: Tom Rini <[email protected]>
Sent: Monday, June 23, 2025 11:14 PM
To: Rolf Eike Beer <[email protected]>; Stefano Babic <[email protected]>; Fabio Estevam <[email protected]>; dl-uboot-imx <[email protected]>; Peng Fan <[email protected]>
Cc: [email protected]
Subject: [EXT] Re: Was plain U-Boot affected by CVE-2023-39902?

Quoted 9 lines · Rolf Eike Beer

Hi all,

for entirely unrelated reasons I came accross CVE-2023-39902:

Quoted 5 lines

A software vulnerability has been identified in the U-Boot Secondary Program Loader (SPL) before 2023.07 on select NXP i.MX 8M family processors. Under certain conditions, a crafted Flattened Image Tree (FIT) format structure can be used to overwrite SPL memory, allowing unauthenticated software to execute on the target, leading to privilege

escalation.

Quoted 3 lines

This links to
https://community.nxp.com/t5/i-MX-Security/U-Boot-Secondary-Program-

Lo

Quoted 11 lines

ader-Authentication-Vulnerability-CVE/ta-p/1736196, which links 4 patches. The relevant one seems to me
https://github.com/nxp-imx/uboot-imx/
commit/0746cfd931de8f7591d263ff60dd806ffe23c093, and for my limited understanding the actual fix is the first hunk.

A similar change has been made in 6039e0edc8540bd2a ("imx: hab:
Simplify the mechanism"), so I wonder if this is just an unnoticed instance of the very same bug?

Opinions?

Lets add the iMX folks..

--
Tom