CVE-2026-52940
Last modified
CVE-2026-52940 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: tun: zero the whole vnet header in tun_put_user() tun_put_user() declares an on-stack struct virtio_net_hdr_v1_hash_tunnel without zeroing it. For a non-tunnel skb, virtio_net_hdr_tnl_from_skb() only initializes the first 10 bytes (sizeof(struct virtio_net_hdr)), leaving bytes 10..23 (num_buffers and the hash/tunnel fields) as stack garbage. An unprivileged user can set the vnet header size to 24 with TUNSETVNETHDRSZ, so __tun_vnet_hdr_put() copies all 24 bytes of the partially-initialized struct to userspace, leaking 14 bytes of kernel stack on every read of a non-tunnel packet. Fix it the same way tun_get_user() already does by zeroing the whole header right after declaration.. EPSS estimates a 0.15% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: tun: zero the whole vnet header in tun_put_user() tun_put_user() declares an on-stack struct virtio_net_hdr_v1_hash_tunnel without zeroing it. For a non-tunnel skb, virtio_net_hdr_tnl_from_skb() only initializes the first 10 bytes (sizeof(struct virtio_net_hdr)), leaving bytes 10..23 (num_buffers and the hash/tunnel fields) as stack garbage. An unprivileged user can set the vnet header size to 24 with TUNSETVNETHDRSZ, so __tun_vnet_hdr_put() copies all 24 bytes of the partially-initialized struct to userspace, leaking 14 bytes of kernel stack on every read of a non-tunnel packet. Fix it the same way tun_get_user() already does by zeroing the whole header right after declaration.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Affected Software
| Vendor | Product | Versions | Update |
|---|---|---|---|
| Linux | Linux Kernel | >= 6.17, < 6.18.36 | — |
| Linux | Linux Kernel | >= 6.19, < 7.0.13 | — |
| Linux | Linux Kernel | 7.1 | Rc1 |
References
Timeline
- Published
- Last Modified
- Status
- Analyzed
Frequently Asked Questions
What is CVE-2026-52940?
How severe is CVE-2026-52940?
How do I fix CVE-2026-52940?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-52935In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-52936In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-52937In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-52938In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-52939In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-5294The Geeky Bot plugin for WordPress is vulnerable to Missing …9.8
- CVE-2026-52941In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-52942In the Linux kernel, the following vulnerability has been re…7.1
- CVE-2026-52943In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-52944In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2026-52945In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-52946In the Linux kernel, the following vulnerability has been re…7.5
Are you affected by CVE-2026-52940?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
