All vulnerabilities

Servers and applications

CVE-2026-74684

net: tap: set skb->dev before parsing virtio net header in tap_get_user_xdp()

Severity
High 7.1
Published
22 Aug 2026
Last changed
30 Oct 2026
Added to UpHeron
30 Oct 2026
Fixed in
5.12, 6.1.191, 6.6.160, 6.12.105, 6.18.45, 7.1.9
Exploit chance
0.1% in the next 30 daysHigher than 3% of CVEs. EPSS by FIRST, 19 Nov 2026
Attack
Needs local access · No login needed · No user action needed
Attacker can
Take it down
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:N/I:N/A:H
Sources
CVE Program

Description

In the Linux kernel, the following vulnerability has been resolved:

The commit 4f61f133f354 ("net: tap: NULL pointer derefence in dev_parse_header_protocol when skb->dev is null") fixed a crash in tap_get_user() by assigning skb->dev before calling tun_vnet_hdr_to_skb(). This is required because virtio_net_hdr_to_skb() may invoke dev_parse_header_protocol(), which dereferences skb->dev. Without the assignment, a NULL pointer dereference can occur.

However, tap_get_user_xdp() still parses the virtio-net header before assigning skb->dev. When the vhost TX path passes an XDP buffer containing a GSO virtio-net header but the protocol is set to zero on purpose, tun_vnet_hdr_to_skb() can reach dev_parse_header_protocol() while skb->dev is still NULL, resulting in a crash.

Fix this by looking up the tap device and assigning skb->dev before calling tun_vnet_hdr_to_skb(), matching the ordering already used in tap_get_user().

From the CVE Program. Shortened; the full text is there.

Affected software

SoftwareAffected versions
Linux kernelServers and applications · cna:linux|linux
  • From 6.19 before 7.1.9
  • From 6.13 before 6.18.45
  • From 6.7 before 6.12.105
  • From 6.2 before 6.6.160
All 10 release lines
  • From 4.14.226 before 4.15
  • From 4.19.181 before 4.20
  • From 5.4.106 before 5.5
  • From 5.10.24 before 5.11
  • From 5.11.7 before 5.12
  • From 5.12 before 6.1.191
  • From 6.2 before 6.6.160
  • From 6.7 before 6.12.105
  • From 6.13 before 6.18.45
  • From 6.19 before 7.1.9

About Linux kernel

Unix-like operating system kernel, basis for all Linux operating systems

From Wikidata, CC0 1.0.
GitHub stars
255,726GitHub, 15 Nov 2026
Forks
67,394GitHub, 15 Nov 2026
Developer
Linus TorvaldsWikidata
License
GNU General Public License, version 2.0Wikidata
Written in
CWikidata
First released
25 Aug 1991Wikidata
First published on GitHub
4 Sept 2011GitHub

References

  • CVE.org https://www.cve.org/CVERecord?id=CVE-2026-74684