Technical impact
In the Linux kernel tun driver, the tun_detach_all() function deletes NAPI instances without acquiring napi_mutex. When a write operation is in progress, the skb buffer can be freed before the write completes, causing a use‑after‑free that triggers a KASAN fault and can crash the kernel. The weakness is a classic ordering race (CWE‑362) that results in an invalid memory reference (CWE‑416).
Affected Systems
All Linux kernel versions that contain the tun network driver and have not incorporated the patch that surrounds tun_napi_del with napi_mutex are affected. Affected kernel versions are not explicitly enumerated in the advisory; the vulnerability exists in the kernel tree prior to the commit that added the locking.
Risk and Exploitability
The vulnerability is rated a CVSS score of 5.5, corresponding to medium severity. The EPSS score is below 1% and the vulnerability is not listed in the CISA KEV catalog, indicating a low likelihood of widespread exploitation. A local attacker with write access to the /dev/net/tun device can trigger a race condition that results in a use‑after‑free, causing the kernel to panic and the system to reboot. Because the race requires a running write operation, the attacker must have sufficient privileges to open the tunnel device, typically root. No publicly available exploit code is known at this time.