CVE-2024-45746

Published Oct 9, 2024 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
An issue was discovered in Trusted Firmware-M through 2.1.0. User provided (and controlled) mailbox messages contain a pointer to a list of input arguments (in_vec) and output arguments (out_vec). These list pointers are never validated. Each argument list contains a buffer pointer and a buffer length field. After a PSA call, the length of the output arguments behind the unchecked pointer is updated in mailbox_direct_reply, regardless of the call result. This allows an attacker to write anywhere in the secure firmware, which can be used to take over the control flow, leading to remote code execution (RCE).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Trustedfirmware
Trustedfirmware trusted Firmware-m
Weaknesses CWE-120
CPEs cpe:2.3:a:trustedfirmware:trusted_firmware-m:*:*:*:*:*:*:*:*
Vendors & Products Trustedfirmware
Trustedfirmware trusted Firmware-m
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description An issue was discovered in Trusted Firmware-M through 2.1.0. User provided (and controlled) mailbox messages contain a pointer to a list of input arguments (in_vec) and output arguments (out_vec). These list pointers are never validated. Each argument list contains a buffer pointer and a buffer length field. After a PSA call, the length of the output arguments behind the unchecked pointer is updated in mailbox_direct_reply, regardless of the call result. This allows an attacker to write anywhere in the secure firmware, which can be used to take over the control flow, leading to remote code execution (RCE).
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Oct 10, 2024, 5:13 PM
Reserved
Sep 6, 2024, 12:00 AM
Status
Deferred
Published
Oct 9, 2024, 5:15 PM
Modified
Jun 17, 2026, 7:54 AM