CVE-2026-98621: net: gue: reject invalid REMCSUM offsets
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
net: gue: reject invalid REMCSUM offsets
The REMCSUM option carries an absolute checksum start and checksum field offset. gue_remcsum() passes them to skb_remcsum_process(), whose partial path stores offset - start in the u16 skb->csum_offset variable. If offset is less than start, this underflows.
A forwarded packet can retain CHECKSUM_PARTIAL and reach a NETIF_F_HW_CSUM driver which trusts the metadata, leading skb_copy_and_csum_dev() to write two bytes about 64 KiB beyond the destination buffer.
Reject reversed tuples in validate_gue_flags(), after the existing length validation, so all GUE parsers enforce the ordering in one place.
The Linux kernel CVE team has assigned CVE-2026-98621 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 5.10.271 with commit 4b9bc21b2396c396d88dd909caaf73d5be6ff593 Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 5.15.222 with commit 43efb1f997e976f386aa89716f55870cd2cff9ad Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 6.1.189 with commit 1eeec0c51fd5598da44080ed96bbd9880021c28b Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 6.6.158 with commit 1d664be4ca49d1696e85239236f4988dfc4653c3 Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 6.12.112 with commit 97f907203321eee2cc9132d5c9eb47698fb41d35 Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 6.18.55 with commit 40aeafbcbc7bc4018e8f74bbbb4d29ed8846f57f Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 7.2.9 with commit c20f755338ca234e523dfc943719f194dfc1f903 Issue introduced in 4.0 with commit fe881ef11cf0220f118816181930494d484c4883 and fixed in 7.3-rc5 with commit 2566866fc30965d915d0b52b5c3323b362619f0e
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-98621
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:
include/net/gue.h
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/4b9bc21b2396c396d88dd909caaf73d5be6ff593 https://git.kernel.org/stable/c/43efb1f997e976f386aa89716f55870cd2cff9ad https://git.kernel.org/stable/c/1eeec0c51fd5598da44080ed96bbd9880021c28b https://git.kernel.org/stable/c/1d664be4ca49d1696e85239236f4988dfc4653c3 https://git.kernel.org/stable/c/97f907203321eee2cc9132d5c9eb47698fb41d35 https://git.kernel.org/stable/c/40aeafbcbc7bc4018e8f74bbbb4d29ed8846f57f https://git.kernel.org/stable/c/c20f755338ca234e523dfc943719f194dfc1f903 https://git.kernel.org/stable/c/2566866fc30965d915d0b52b5c3323b362619f0e