CVE-2026-139319

bpf: Don't let bpf_skb_adjust_room() use up the MSS

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

bpf: Don't let bpf_skb_adjust_room() use up the MSS

When bpf_skb_adjust_room() grows a TCP GSO packet without
BPF_F_ADJ_ROOM_FIXED_GSO, gso_size is lowered by the number of bytes
added. Nothing looks at how large it is.

gso_size is the size of the segments the peer has sent if the packet
comes out of GRO, and what the sender has written into the virtio header
if it comes from a tun device or a packet socket. If it equals len_diff
the result is 0, and a packet of up to 64 KB is no GSO packet any more. If
it is smaller, the 16 bit value wraps around.

One less than len_diff gives GSO_BY_FRAGS. skb_segment() then takes the
length of each segment from the frag_list. A packet with more than 64 KB
of payload gets that far, and one from a tun device has no frag_list:

BUG: KASAN: null-ptr-deref in skb_segment+0xcf1/0x1a90
BUG: kernel NULL pointer dereference, address: 0000000000000070
tcp_gso_segment+0x1be/0x9f0
inet_gso_segment+0x288/0x740
inet_gso_segment+0x288/0x740
skb_mac_gso_segment+0x179/0x2e0

What is left must not be less than TCP_MIN_GSO_SIZE either. The stack
relies on that for the number of segments to fit into gso_segs, see
commit c27c449d455a ("virtio-net: Ensure that TCP packets don't overflow
gso_segs").

Refuse to grow a packet that would end up with less, with the error that
other packets which cannot be adjusted get.

Analysis

AI-generated

Technical impact

In the Linux kernel, the function bpf_skb_adjust_room() incorrectly adjusts GSO packet sizes when the BPF_F_ADJ_ROOM_FIXED_GSO flag is not used, causing the internal gso_size field to be lowered unintentionally. This can allow gso_size to become zero or wrap around, which in turn leads to a null pointer dereference inside skb_segment. The resulting KASAN backtrace shows a kernel fault that can crash a system. The flaw is a classic null pointer dereference that can be triggered by a crafted network packet processed by BPF programs, and its impact is a denial of service for the affected process or the entire machine if kernel panic occurs.

Affected Systems

All Linux kernel implementations that include the bpf_skb_adjust_room() code prior to the fix in the recent stable release are affected. The vulnerability is present in the upstream Linux kernel and, by extension, in all distributions that ship an unsupported or unpatched kernel version. Any system that accepts network traffic and runs BPF programs capable of manipulating packet sizes is susceptible.

Risk and Exploitability

The exploitability of this flaw is straightforward: an attacker only needs to send a crafted packet that causes bpf_skb_adjust_room() to miscalculate gso_size. Because the vulnerability is triggered by network traffic, the attack vector is remote. While the CVSS score is not listed, the kernel crash implies a high severity level. EPSS data is unavailable and the vulnerability is not listed in the CISA KEV catalog at present. Consequently, the risk remains elevated, especially for systems that lack recent kernel updates or that allow untrusted traffic to reach BPF programs.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that implements the commit fixing bpf_skb_adjust_room(); activation of both BPF and network stack in a trusted environment is required.
  • If an immediate upgrade is not feasible, restrict or remove BPF programs that use BPF_F_ADJ_ROOM_FIXED_GSO or other packet size adjustment features to reduce exposure.
  • Continuously monitor system logs for KASAN null pointer dereference messages; any such errors should trigger a security incident response and verification of kernel integrity.

Generated by OpenCVE AI on November 30, 2026 at 21:41 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-476
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: bpf: Don't let bpf_skb_adjust_room() use up the MSS When bpf_skb_adjust_room() grows a TCP GSO packet without BPF_F_ADJ_ROOM_FIXED_GSO, gso_size is lowered by the number of bytes added. Nothing looks at how large it is. gso_size is the size of the segments the peer has sent if the packet comes out of GRO, and what the sender has written into the virtio header if it comes from a tun device or a packet socket. If it equals len_diff the result is 0, and a packet of up to 64 KB is no GSO packet any more. If it is smaller, the 16 bit value wraps around. One less than len_diff gives GSO_BY_FRAGS. skb_segment() then takes the length of each segment from the frag_list. A packet with more than 64 KB of payload gets that far, and one from a tun device has no frag_list: BUG: KASAN: null-ptr-deref in skb_segment+0xcf1/0x1a90 BUG: kernel NULL pointer dereference, address: 0000000000000070 tcp_gso_segment+0x1be/0x9f0 inet_gso_segment+0x288/0x740 inet_gso_segment+0x288/0x740 skb_mac_gso_segment+0x179/0x2e0 What is left must not be less than TCP_MIN_GSO_SIZE either. The stack relies on that for the number of segments to fit into gso_segs, see commit c27c449d455a ("virtio-net: Ensure that TCP packets don't overflow gso_segs"). Refuse to grow a packet that would end up with less, with the error that other packets which cannot be adjusted get.
Title bpf: Don't let bpf_skb_adjust_room() use up the MSS
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:33 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:18 PM
Modified
Nov 30, 2026, 2:18 PM