CVE-2026-23254: net: gro: fix outer network offset
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: gro: fix outer network offset
The udp GRO complete stage assumes that all the packets inserted the RX have the encapsulation flag zeroed. Such assumption is not true, as a few H/W NICs can set such flag when H/W offloading the checksum for an UDP encapsulated traffic, the tun driver can inject GSO packets with UDP encapsulation and the problematic layout can also be created via a veth based setup.
Due to the above, in the problematic scenarios, udp4_gro_complete() uses the wrong network offset (inner instead of outer) to compute the outer UDP header pseudo checksum, leading to csum validation errors later on in packet processing.
Address the issue always clearing the encapsulation flag at GRO completion time. Such flag will be set again as needed for encapsulated packets by udp_gro_complete().
The Linux kernel CVE team has assigned CVE-2026-23254 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.6.31 with commit af276a5ac8e938c8b058e3e124073cc1e322d98b and fixed in 6.6.124 with commit 9d40a85138568696387ef04cd004c64612a70874 Issue introduced in 6.9 with commit 5ef31ea5d053a8f493a772ebad3f3ce82c35d845 and fixed in 6.12.70 with commit b83557bc6f560433fe5d727e241069f8db5ba709 Issue introduced in 6.9 with commit 5ef31ea5d053a8f493a772ebad3f3ce82c35d845 and fixed in 6.18.10 with commit 2e5edb69e5d0e23ef248c56fc977039268c77a7b Issue introduced in 6.9 with commit 5ef31ea5d053a8f493a772ebad3f3ce82c35d845 and fixed in 6.19 with commit 5c2c3c38be396257a6a2e55bd601a12bb9781507 Issue introduced in 6.8.10 with commit dbd9466d323a72e22efe09151253d195d36d3bf6
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-23254
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
net/core/gro.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9d40a85138568696387ef04cd004c64612a70874 https://git.kernel.org/stable/c/b83557bc6f560433fe5d727e241069f8db5ba709 https://git.kernel.org/stable/c/2e5edb69e5d0e23ef248c56fc977039268c77a7b https://git.kernel.org/stable/c/5c2c3c38be396257a6a2e55bd601a12bb9781507