CVE-2026-98794: ipvs: filter some flags received in the backup server
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipvs: filter some flags received in the backup server
While the IPVS SYNC protocol is not secure by design we can still protect the backup server from messages that can wreak havoc.
This commit addresses problems from received connection flags or their combinations. We now drop messages as follows:
1. the NO_CPORT+TEMPLATE combination allows lookups for normal connections to hit template which can break in many ways. While the master does not sync connections with NO_CPORT flag, i.e. before they are established, we still accept NO_CPORT without TEMPLATE.
2. ONE_PACKET: it is not sent by master, so we do not expect it in backup. Before now it was ignored by IP_VS_CONN_F_BACKUP_MASK for protocol v1 while protocol v0 created connections that are not hashed and dropped immediately. Better to apply the IP_VS_CONN_F_BACKUP_MASK also to the flags from v0 messages for consistency with v1.
The Linux kernel CVE team has assigned CVE-2026-98794 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.14 with commit 87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 and fixed in 6.12.113 with commit f4cd1db7d421e82945713a36084bb0c35b75b27e Issue introduced in 2.6.14 with commit 87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 and fixed in 6.18.56 with commit 55d033324f67a15ff56be6d38d6e87f644e0ed62 Issue introduced in 2.6.14 with commit 87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 and fixed in 7.2.10 with commit 45a93111835ccfea7d969ec73588e33745fd9834 Issue introduced in 2.6.14 with commit 87375ab47cd0ba04124c6d3fd80db5c368f5dcb6 and fixed in 7.3-rc6 with commit f96e91748f6304668fe647e686d199d7207d36f1
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-98794
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/f4cd1db7d421e82945713a36084bb0c35b75b27e https://git.kernel.org/stable/c/55d033324f67a15ff56be6d38d6e87f644e0ed62 https://git.kernel.org/stable/c/45a93111835ccfea7d969ec73588e33745fd9834 https://git.kernel.org/stable/c/f96e91748f6304668fe647e686d199d7207d36f1