CVE-2026-97596: ipvs: reject invalid states in connection template sync records
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipvs: reject invalid states in connection template sync records
IPVS sync receivers validate protocol states before creating or updating a connection. For connection templates, however, they only log states outside the template state range and still store the value in the connection.
A template can be returned by ordinary connection lookup. TCP and SCTP then use the invalid state as an index into their transition tables.
Reject invalid template states in both sync protocol versions before looking up or modifying a connection. The version 1 path handles both IPv4 and IPv6 records.
The Linux kernel CVE team has assigned CVE-2026-97596 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.19 with commit 275411430f892407b885be1de2548b2e632892c3 and fixed in 6.12.111 with commit fc10dc4511e6e2e2b4098ee115c8e5639471f23d Issue introduced in 4.19 with commit 275411430f892407b885be1de2548b2e632892c3 and fixed in 6.18.53 with commit 50c3f06222eafe9cca7ca51a0ef83311d7cab353 Issue introduced in 4.19 with commit 275411430f892407b885be1de2548b2e632892c3 and fixed in 7.2.7 with commit 0c61f7d8e18a978aec2a16d9acd5f682f1c72476 Issue introduced in 4.19 with commit 275411430f892407b885be1de2548b2e632892c3 and fixed in 7.3-rc3 with commit 74cb39735b6cd0aff4b5584158f09376fd97aadf
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-97596
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/ipvs/ip_vs_sync.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/fc10dc4511e6e2e2b4098ee115c8e5639471f23d https://git.kernel.org/stable/c/50c3f06222eafe9cca7ca51a0ef83311d7cab353 https://git.kernel.org/stable/c/0c61f7d8e18a978aec2a16d9acd5f682f1c72476 https://git.kernel.org/stable/c/74cb39735b6cd0aff4b5584158f09376fd97aadf