CVE-2026-37530
Beschrijving NL
AGL agl-service-can-low-level tot en met 17.1.12 bevat een stackbuffer-overflow in de uds-c-bibliotheek. De functie send_diagnostic_request in uds.c wijst een stackbuffer van 6 bytes toe (MAX_DIAGNOSTIC_PAYLOAD_SIZE=6), maar kopieert maximaal 7 bytes (MAX_UDS_REQUEST_PAYLOAD_LENGTH=7) via memcpy met een offset van 1+pid_length (2-3 bytes), wat resulteert in 1-4 bytes gecontroleerde stackoverloop. Het veld payload_length (uint8_t) heeft geen grenscontrole ten opzichte van de doelbuffer. Op 32-bits ARM-ECU's voor auto's zonder stack canaries kan dit leiden tot het overschrijven van het retouradres en RCE.
Origineel (Engels) tonen
AGL agl-service-can-low-level thru 17.1.12 contains a stack buffer overflow in the uds-c library. The send_diagnostic_request function in uds.c allocates a 6-byte stack buffer (MAX_DIAGNOSTIC_PAYLOAD_SIZE=6) but copies up to 7 bytes (MAX_UDS_REQUEST_PAYLOAD_LENGTH=7) via memcpy at an offset of 1+pid_length (2-3 bytes), resulting in 1-4 bytes of controlled stack overflow. The payload_length field (uint8_t) has no bounds check against the destination buffer. On 32-bit ARM automotive ECUs without stack canaries, this can lead to return address overwrite and RCE.