CVE-2026-139385: ipvs: fix buffer overflow when sending sync messages
In the Linux kernel, the following vulnerability has been resolved:
ipvs: fix buffer overflow when sending sync messages
Sashiko reports for possible heap buffer overflow when generating sync message for the v0 and v1 message formats. We should read the cp->flags only once because another CPU can concurrently set the SEQMASK between the two reads.
Note that IPVS does not set the SEQMASK anymore for the ipvsftp.c helper starting from commit 7f1c40757951 ("IPVS: make FTP work with full NAT support") (2.6.36+), so the problem should not be reproducible.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.6 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.6-1
Event History
Frequently Asked Questions
Is this issue likely to be reproducible on current IPVS deployments?
The issue should not be reproducible where the IPVS FTP helper behavior reflects the change introduced in Linux 2.6.36 and later, because IPVS no longer sets the relevant SEQ_MASK flag for that helper.
What condition triggers the overflow?
The overflow requires a concurrent CPU to set SEQ_MASK between two reads of cp->flags while IPVS is generating a version 0 or version 1 synchronization message.