Use-After-Free and Memory Corruption Vulnerabilities in Zephyr TCP Implementation
CVE-2026-95823
What is CVE-2026-95823?
A vulnerability in the tcp_pkt_linearize() function of the Zephyr TCP stack can lead to a use-after-free condition, allowing attackers to exploit TCP segments. This occurs due to the mishandling of net_buf references during reception of TCP headers that are fragmented. An unauthenticated attacker can craft TCP packets that exploit buffer management errors, causing resource exhaustion in the TCP receive buffer pool. If successful, this can lead to memory corruption, allowing leftover buffer contents to be unpredictably delivered to applications, potentially crashing the system or leaking sensitive data. The vulnerability can be readily triggered through specially crafted TCP segments, resulting in failed packet processing until the device is rebooted. The issue is mitigated by improving buffer reference management during the TCP segment processing.
Affected Version(s)
zephyr 2.3.0 < 4.3.2
zephyr 4.4.0 < 4.5.0
