CVE-2026-54413: CWE-191 Integer Underflow (Wrap or Wraparound) in driftregion iso14229
CVE-2026-54413 is an integer underflow vulnerability in the driftregion iso14229 library version 0.9.0 and earlier. It occurs in the Handle_0x27_SecurityAccess() function, which improperly handles the length of a SecurityAccess request, allowing a remote unauthenticated attacker to cause a crash or potentially read memory beyond the receive buffer. This vulnerability affects UDS servers deployed on automotive ECUs, industrial controllers, and IoT devices using this library. The flaw arises because the function does not validate that the received message length is at least two bytes before accessing the buffer, leading to an underflow and out-of-bounds read. The vulnerability has a high severity score of 7.8 and is exploitable remotely without authentication.
AI Analysis
Technical Summary
The driftregion iso14229 library up to version 0.9.0 contains an integer underflow and subsequent out-of-bounds read in the Handle_0x27_SecurityAccess() function within iso14229.c. The function reads the SecurityAccess subFunction from recv_buf[1] without verifying that the received message length (recv_len) is at least 2. When recv_len equals 1, the subtraction (recv_len - UDS_0X27_REQ_BASE_LEN) underflows as an unsigned 16-bit integer, resulting in a large length value (65535). This length is passed to security access callbacks that then iterate or copy data beyond the 4 KB receive buffer, causing memory corruption. This vulnerability is unique to the 0x27 SecurityAccess handler, as other UDS sub-function handlers perform proper length checks. The flaw is exposed over multiple transport protocols (CAN bus, OBD-II, ISO-TP, DoIP) and is accessible in the default diagnostic session without authentication, affecting automotive, industrial, and IoT deployments using this UDS server implementation.
Potential Impact
A remote unauthenticated attacker can send a specially crafted single-byte 0x27 SecurityAccess request to crash the UDS server, causing denial of service. Additionally, the attacker may read memory beyond the intended receive buffer, potentially exposing sensitive information or enabling further exploitation. The vulnerability affects devices running the vulnerable iso14229 library, including automotive ECUs, industrial controllers, and IoT devices. The CVSS 4.0 base score is 7.8 (high), reflecting network attack vector, no privileges or user interaction required, and high impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch or official fix is available, users should consider implementing input validation to ensure recv_len is at least 2 before processing the 0x27 SecurityAccess request. Restricting access to the UDS server or disabling the 0x27 SecurityAccess handler if not needed may reduce exposure. Monitor vendor channels for updates or patches addressing this vulnerability.
CVE-2026-54413: CWE-191 Integer Underflow (Wrap or Wraparound) in driftregion iso14229
Description
CVE-2026-54413 is an integer underflow vulnerability in the driftregion iso14229 library version 0.9.0 and earlier. It occurs in the Handle_0x27_SecurityAccess() function, which improperly handles the length of a SecurityAccess request, allowing a remote unauthenticated attacker to cause a crash or potentially read memory beyond the receive buffer. This vulnerability affects UDS servers deployed on automotive ECUs, industrial controllers, and IoT devices using this library. The flaw arises because the function does not validate that the received message length is at least two bytes before accessing the buffer, leading to an underflow and out-of-bounds read. The vulnerability has a high severity score of 7.8 and is exploitable remotely without authentication.
CVSS v4.0
Score 7.8high
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The driftregion iso14229 library up to version 0.9.0 contains an integer underflow and subsequent out-of-bounds read in the Handle_0x27_SecurityAccess() function within iso14229.c. The function reads the SecurityAccess subFunction from recv_buf[1] without verifying that the received message length (recv_len) is at least 2. When recv_len equals 1, the subtraction (recv_len - UDS_0X27_REQ_BASE_LEN) underflows as an unsigned 16-bit integer, resulting in a large length value (65535). This length is passed to security access callbacks that then iterate or copy data beyond the 4 KB receive buffer, causing memory corruption. This vulnerability is unique to the 0x27 SecurityAccess handler, as other UDS sub-function handlers perform proper length checks. The flaw is exposed over multiple transport protocols (CAN bus, OBD-II, ISO-TP, DoIP) and is accessible in the default diagnostic session without authentication, affecting automotive, industrial, and IoT deployments using this UDS server implementation.
Potential Impact
A remote unauthenticated attacker can send a specially crafted single-byte 0x27 SecurityAccess request to crash the UDS server, causing denial of service. Additionally, the attacker may read memory beyond the intended receive buffer, potentially exposing sensitive information or enabling further exploitation. The vulnerability affects devices running the vulnerable iso14229 library, including automotive ECUs, industrial controllers, and IoT devices. The CVSS 4.0 base score is 7.8 (high), reflecting network attack vector, no privileges or user interaction required, and high impact on availability.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a patch or official fix is available, users should consider implementing input validation to ensure recv_len is at least 2 before processing the 0x27 SecurityAccess request. Restricting access to the UDS server or disabling the 0x27 SecurityAccess handler if not needed may reduce exposure. Monitor vendor channels for updates or patches addressing this vulnerability.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- TuranSec
- Date Reserved
- 2026-06-13T16:39:46.122Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a2eee6be617e2d834ca6d3a
Added to database: 06/14/2026, 18:09:47 UTC
Last enriched: 06/22/2026, 15:21:08 UTC
Last updated: 07/31/2026, 19:22:59 UTC
Views: 376
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.