# CVE-2026-98954: net: always dissect GSO packets in \_\_virtio\_net\_hdr\_to\_skb()

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.21% (percentile 6, 2026-11-26)
- **Published:** 2026-10-23T12:19:13.873Z
- **Modified:** 2026-10-23T13:17:16.600Z

## Who should check

- Anyone running Linux \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c; \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 44378d02c5aaae24b60a75fbbb539b4aa4db503d; dac7d4432b13d6b58923c1178b786bcda37c9e9e; e93384b12443c9bb6830b56b7d299beed432b865; f709f7b28d76de327373598a0fda9f916c36b5e6; d996573ebd5c528c613e90b7e7daa961d58fa16e; c375152be9dd9d6fbf6ae5ac8be337d0590f192a; 0dab7eb86ea06ce8c530785f1999948c6f223c96; ea3fb2ce5fa794d02135f5c079e05cd6fc3f545d; 54ef8243c3c8e90f1ea5792e6752e021a25c8eb3; …
- Anyone running Linux 5.0

## Description

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

net: always dissect GSO packets in \_\_virtio\_net\_hdr\_to\_skb()

Commit 9e8db5913264 ("net: avoid false positives in untrusted gso
validation") added a '&& skb-\>network\_header' check before flow-dissecting
GSO packets without VIRTIO\_NET\_HDR\_F\_NEEDS\_CSUM in
\_\_virtio\_net\_hdr\_to\_skb(), because some callers (such as tun\_get\_user(),
tun\_xdp\_one(), virtnet\_receive\_done(), and raw\_verify\_header()) called
virtio\_net\_hdr\_\*\_to\_skb() before initializing skb-\>network\_header and
skb-\>dev.

Because \_\_alloc\_skb() and \_\_build\_skb\_around() zero-initialize
skb-\>network\_header to 0 (unlike mac\_header and transport\_header which
are initialized to ~0U), those four callers always had
skb-\>network\_header == 0 and bypassed flow dissection in
\_\_virtio\_net\_hdr\_to\_skb(). More generally, skb-\>network\_header is an
offset from skb-\>head (where 0 is also a valid offset whenever
skb\_headroom(skb) is 0), not a boolean flag.

Whenever the 'if (gso\_type && skb-\>network\_header)' branch was skipped,
the fallback 'else if (gso\_type)' only pulled nh\_min\_len + thlen (40 bytes
for TCPv4) without dissecting the packet, without validating ip\_proto or
n\_proto, and without setting skb-\>transport\_header.

If the packet has a malformed network header, it is not rejected and a
subsequent skb\_probe\_transport\_header() also fails, leaving
skb-\>transport\_header at ~0U (0xffff). Similarly, if an IPv4 packet
carries IP options (ihl \> 5) or an IPv6 packet carries extension headers,
pulling only nh\_min\_len + thlen can leave the TCP header outside
skb-\>head. In both cases, tcp\_hdrlen(skb) in skb\_gso\_transport\_seglen()
reads out-of-bounds:

  BUG: KASAN: slab-out-of-bounds in skb\_gso\_transport\_seglen
  Read of size 2 by task poc/133
  skb\_gso\_transport\_seglen (net/core/gso.c:155)
  skb\_gso\_validate\_mac\_len (net/core/gso.c:270)
  tbf\_enqueue (net/sched/sch\_tbf.c:260)
  dev\_qdisc\_enqueue (net/core/dev.c:4227)
  \_\_dev\_queue\_xmit (net/core/dev.c:4884)

In addition, checking virtio\_net\_hdr\_match\_proto() only inside
'if (!skb-\>protocol)' before flow dissection both skipped validation when
skb-\>protocol was pre-set by the caller and rejected VLAN-tagged frames
whose outer L2 protocol is ETH\_P\_8021Q or ETH\_P\_8021AD.

Fix this by:
1. Initializing skb-\>dev and skb-\>network\_header (plus skb-\>protocol for
   IFF\_TUN) before virtio\_net\_hdr\_\*\_to\_skb() in tun\_get\_user(),
   tun\_xdp\_one(), virtnet\_receive\_done(), and raw\_verify\_header(). In
   tun\_get\_user(), drop the redundant skb\_reset\_mac\_header(skb) in the
   IFF\_TUN case since \_\_virtio\_net\_hdr\_to\_skb() unconditionally resets
   mac\_header.
2. Removing '&& skb-\>network\_header' and the unvalidated
   'else if (gso\_type)' fallback in \_\_virtio\_net\_hdr\_to\_skb() so all GSO
   packets without VIRTIO\_NET\_HDR\_F\_NEEDS\_CSUM are flow-dissected, have
   their transport header pulled into linear data, and have
   skb-\>transport\_header set.
3. Moving the virtio\_net\_hdr\_match\_proto() check to after
   skb\_flow\_dissect\_flow\_keys\_basic(), validating keys.basic.n\_proto
   against hdr\_gso\_type.

## Affected and fixed versions

- Linux: \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c; \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 44378d02c5aaae24b60a75fbbb539b4aa4db503d; dac7d4432b13d6b58923c1178b786bcda37c9e9e; e93384b12443c9bb6830b56b7d299beed432b865; f709f7b28d76de327373598a0fda9f916c36b5e6; d996573ebd5c528c613e90b7e7daa961d58fa16e; c375152be9dd9d6fbf6ae5ac8be337d0590f192a; 0dab7eb86ea06ce8c530785f1999948c6f223c96; ea3fb2ce5fa794d02135f5c079e05cd6fc3f545d; 54ef8243c3c8e90f1ea5792e6752e021a25c8eb3; … (cvelist)
- Linux: 5.0 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98954. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98954.md
Affected: Linux >= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, < 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c; >= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, < 44378d02c5aaae24b60a75fbbb539b4aa4db503d; dac7d4432b13d6b58923c1178b786bcda37c9e9e; e93384b12443c9bb6830b56b7d299beed432b865; f709f7b28d76de327373598a0fda9f9…
Fixed in: Linux 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c, Linux 44378d02c5aaae24b60a75fbbb539b4aa4db503d

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98954 being exploited?

There is no confirmed exploitation: CVE-2026-98954 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.21% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98954?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98954?

Linux \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c; \>= d5be7f632bad0f489879eed0ff4b99bd7fe0b74c, \< 44378d02c5aaae24b60a75fbbb539b4aa4db503d; dac7d4432b13d6b58923c1178b786bcda37c9e9e; e93384b12443c9bb6830b56b7d299beed432b865; f709f7b28d76de327373598a0fda9f916c36b5e6; d996573ebd5c528c613e90b7e7daa961d58fa16e; c375152be9dd9d6fbf6ae5ac8be337d0590f192a; 0dab7eb86ea06ce8c530785f1999948c6f223c96; ea3fb2ce5fa794d02135f5c079e05cd6fc3f545d; 54ef8243c3c8e90f1ea5792e6752e021a25c8eb3; …; Linux 5.0.

### Is there a fix for CVE-2026-98954?

Yes. Fixed in Linux 5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c, Linux 44378d02c5aaae24b60a75fbbb539b4aa4db503d. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98954?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5f4dfdf0077730e9d3ef5b37ceb17a5a56d6f34c>
- other: <https://git.kernel.org/stable/c/44378d02c5aaae24b60a75fbbb539b4aa4db503d>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98954>

HTML: <https://flawdb.com/CVE-2026-98954> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98954>
