Use-after-free in Linux kernel - CVE-2026-139182
Published: December 2, 2026
Vulnerability details
The vulnerability allows a local user to potentially cause a denial of service.
The vulnerability exists due to a use-after-free in the Linux kernel TUN driver when device teardown frees a packet buffer while a write is still copying data into it. A local user can trigger the use-after-free during a concurrent write and device teardown to potentially crash the kernel.
The affected write path requires IFF_NAPI_FRAGS to be enabled.
Affected software
How to mitigate CVE-2026-139182
External References
- https://git.kernel.org/stable/c/50ee89b116c96f7d285633a082bc0a703bda9c7e
- https://git.kernel.org/stable/c/52d9eeb9e183b8d9094afd540f360e70cea8142d
- https://git.kernel.org/stable/c/55a9754198e1171c5797b31fe60517d58219294c
- https://git.kernel.org/stable/c/6c799b4998c87bb44574bb090b8728bb3b3dbc47
- https://git.kernel.org/stable/c/b4ba1f5d3e954b62c295529436e2a6883d875027
- https://git.kernel.org/stable/c/e3c95c73023c2ffd43b8495df9299fe03f03148f
- https://git.kernel.org/stable/c/ea600cb5ebe44e48ddc2b0af206e0d1d32ada839
- https://git.kernel.org/stable/c/f5fbedfb039cc124bfeded1afd8e58ac76b2d55d