The Grow R502-A fingerprint sensor driver (drivers/sensor/grow_r502a/grow_r502a.c) points drv_data->rx_buf.data at an rx_packet buffer on the…
The Grow R502-A fingerprint sensor driver (drivers/sensor/grow_r502a/grow_r502a.c) points drv_data->rx_buf.data at an rx_packet buffer on the caller's stack and enables the UART RX interrupt before waiting 1500 ms for a reply. When the wait timed out, transceive_packet() returned -ETIMEDOUT but left the RX interrupt enabled and rx_buf.data still pointing at the caller's buffer. Once the caller's frame has returned, any bytes that arrive late on the UART are written by the interrupt handler uart_cb_handler() through the dangling pointer into stack memory that the thread has since reused. The bytes come from the device on the other end of the UART. An attacker with physical access who replaces
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Zephyrproject
- Product
- zephyr
- CVSS v3.1
- 6.4 AV:P/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- Weakness
- CWE-562
- NVD status
- Awaiting Analysis
Why it ranks 3 (Routine)
- CVSS v3.1 6.4 medium
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.