CVE-2026-97417: netfilter: nf_conntrack: use get_unaligned_be32() in tcp_sack()
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
netfilter: nf_conntrack: use get_unaligned_be32() in tcp_sack()
The timestamp-only fast path dereferences the option stream as *(__be32 *)ptr, which assumes 4-byte alignment that the TCP option stream does not guarantee. Use get_unaligned_be32() instead, which reads the value safely and already returns host byte order, so the htonl() on the comparison constant can be dropped.
This matches the existing get_unaligned_be32() use later in the same function.
The Linux kernel CVE team has assigned CVE-2026-97417 to this issue.
Affected and fixed versions
===========================
Fixed in 6.12.111 with commit 7ecfa46a536578a7ed335ddf31a854127268c27c Fixed in 6.18.53 with commit 4abc1af7ac209c066f4e5dd75cdd56876e5829a9 Fixed in 7.2 with commit d3bf9eae486490832bd08fd62ab0ac601f346bd4
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-97417
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/netfilter/nf_conntrack_proto_tcp.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/7ecfa46a536578a7ed335ddf31a854127268c27c https://git.kernel.org/stable/c/4abc1af7ac209c066f4e5dd75cdd56876e5829a9 https://git.kernel.org/stable/c/d3bf9eae486490832bd08fd62ab0ac601f346bd4