An integer underflow in Zephyr's IPv4 option handling allows a remote, unauthenticated attacker to read stack memory.
An integer underflow in Zephyr's IPv4 option handling allows a remote, unauthenticated attacker to read stack memory. When replying to an ICMP Echo Request that carries an IPv4 Record Route or Timestamp option, icmpv4_update_record_route() and icmpv4_update_time_stamp() in subsys/net/ip/icmpv4.c compute the length of the already recorded data as ptr - ptr_offset in uint8_t arithmetic. The attacker-controlled Pointer field is checked against the option length but not against the RFC 791 minimum (4 for Record Route, 5 for Timestamp), so a smaller value wraps the length to up to 252 bytes. net_pkt_write() then reads past the 40-byte opt_data stack buffer and up to 213 bytes of stack memory, whi
Read at NIST National Vulnerability Database (CVE API 2.0)
- Vendor
- Zephyrproject-Rtos
- Product
- Zephyr
- CVSS v3.1
- 5.3 AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:N
- Weakness
- CWE-125, CWE-191, CWE-200
- NVD status
- Received
Why it ranks 3 (Routine)
- CVSS v3.1 5.3 medium
- Recency: items published within 24 hours gain 15, within 72 hours 6, within 7 days 2.