CVE Catalog

CVE-2026-37536

High
Published: Translated: NVD NIST

Summary

The miaofng/uds-c code contains a stack buffer overflow in the send_diagnostic_request function. The issue arises because a 6-byte buffer receives data that can exceed its size by 4 bytes due to a lack of bounds checking on the payload length.

Risk Assessment

Buffer overflow can lead to unauthorized memory access, posing a risk of executing malicious code or application crashes. Organizations should be aware of the potential security threats.

Recommendation

It is recommended to implement bounds checking for the payload length before performing the memcpy operation to prevent buffer overflow. Additionally, update the software to the latest version to eliminate this vulnerability.

Related vulnerabilities

Original NVD description (English source)

miaofng/uds-c commit e506334e270d77b20c0bc259ac6c7d8c9b702b7a (2016-10-05) contains a stack buffer overflow in send_diagnostic_request. A 6-byte stack buffer (MAX_DIAGNOSTIC_PAYLOAD_SIZE=6) receives memcpy at offset 1+pid_length with payload_length bytes. MAX_UDS_REQUEST_PAYLOAD_LENGTH=7, so 1+2+7=10 exceeds buffer by 4 bytes. No bounds check on payload_length before memcpy.

Vulnerability data from NVD (NIST) · CISA KEV · EPSS