CVE-2026-139281

netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset

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

netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset

find_prev_fhdr() returns the offset of the Next Header field before an
IPv6 Fragment header through an int pointer, but stores the offset in a
u8 local. An extension header chain can put this field beyond byte 255,
causing the offset to wrap before it is saved in the fragment queue.

Reassembly later uses the wrapped value to update the preceding Next
Header field. This overwrites another byte in the IPv6 header chain and
can make conntrack parse a different transport tuple from the one used
by IPv6 local delivery. A two-fragment packet can, for example, be
recorded as UDP destination port 53 while its payload is delivered to
UDP port 9999.

Use int for the working offset, matching the output argument and the
other offset variables in this path.

Analysis

AI-generated

Technical impact

The vulnerability resides in the conntrack engine in the Linux kernel’s netfilter subsystem. The routine that calculates the offset of the Next Header field before an IPv6 Fragment header mistakenly writes the offset into an 8‑bit variable even though the offset can exceed 255. When this truncated value is later used to reassemble fragmented packets, an incorrect byte in the IPv6 header chain is overwritten. The net result is that the conntrack module may record a wrong transport tuple—for example identifying a packet as destined for UDP port 53 while its payload is actually delivered to UDP port 9999. This misclassification can affect firewall filtering, network traffic accounting, and connection tracking consistency. The flaw is not a direct remote code execution vulnerability, but it compromises the reliability of packet handling.

Affected Systems

All Linux kernel builds that employ the nf_conntrack component prior to the patch that changes the local offset variable to an int are affected. The commit that introduced the fix appears in recent stable kernels, so any system running an older kernel without that patch is vulnerable. The impact applies to any traffic that passes through the kernel’s packet processing path and may involve IPv6 fragments and extension headers.

Risk and Exploitability

No publicly known exploit and the EPSS score is not provided; the vulnerability is not listed in the CISA KEV catalog. The problem is network‑based: an attacker must craft and send IPv6 packets that contain fragmented extensions beyond the 255 offset limit to trigger the truncation. With the vulnerability in place, traffic could be mis‑classified, potentially leading to unintended traffic handling or denial of service. The severity is moderate to high because it undermines the correctness of conntrack state but does not provide direct code execution.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest kernel release or backport the commit that changes the offset handling to use an int.
  • If immediate kernel upgrade is impossible, isolate the affected interfaces or disable IPv6 fragmentation handling to prevent the vulnerable code path from executing.
  • Regularly review conntrack logs and monitor for abnormal transport tuples that may indicate the flaw is being triggered.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-680
CWE-788
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset find_prev_fhdr() returns the offset of the Next Header field before an IPv6 Fragment header through an int pointer, but stores the offset in a u8 local. An extension header chain can put this field beyond byte 255, causing the offset to wrap before it is saved in the fragment queue. Reassembly later uses the wrapped value to update the preceding Next Header field. This overwrites another byte in the IPv6 header chain and can make conntrack parse a different transport tuple from the one used by IPv6 local delivery. A two-fragment packet can, for example, be recorded as UDP destination port 53 while its payload is delivered to UDP port 9999. Use int for the working offset, matching the output argument and the other offset variables in this path.
Title netfilter: nf_conntrack: avoid truncating IPv6 nexthdr offset
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-680

    Integer Overflow to Buffer Overflow

  • CWE-788

    Access of Memory Location After End of Buffer

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