CVE-2026-90141: ipvs: fix integer overflow in ftp helper port/address parsing
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ipvs: fix integer overflow in ftp helper port/address parsing
ip_vs_ftp_get_addrport() accumulates decimal digits into a __u16 (hport) and into unsigned char (p[]) without checking for overflow. A crafted FTP PASV/EPSV response with an over-long port or address octet wraps the value, so the helper configures the data connection with a truncated port/address.
The netfilter conntrack FTP helper had the same defect, fixed in commit 2b413fc689ba ("netfilter: nf_conntrack_ftp: avoid u16 overflows"). Apply the equivalent fix here: widen the port accumulator to u32 and reject values above 65535, and reject address octets above 255.
The Linux kernel CVE team has assigned CVE-2026-90141 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.10.270 with commit d02de9a7a7e2484da0cf37e50614840623b98a62 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 5.15.221 with commit fc1493c905d7e0bc8830c1d83915cb7831daf1a1 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.1.188 with commit 50cb9b7263a2ed01f7d2f97818a800c2ee05f661 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.6.157 with commit deaa88fa010ba0dfc554d09e006ddd1ce9945c82 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.12.110 with commit 00bcc6d679262ea42688fba1d7819ea6e56f12ef Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 6.18.52 with commit 4aed450adaee3a021db27be94c61fe025b0d05ff Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.2.6 with commit b1908bff0faaa94d55be72da65879cad632e8236 Issue introduced in 2.6.12 with commit 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 and fixed in 7.3-rc1 with commit e625a9477d12baaff4025c5f9989184a907ea8fc
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-90141
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_ftp.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/d02de9a7a7e2484da0cf37e50614840623b98a62 https://git.kernel.org/stable/c/fc1493c905d7e0bc8830c1d83915cb7831daf1a1 https://git.kernel.org/stable/c/50cb9b7263a2ed01f7d2f97818a800c2ee05f661 https://git.kernel.org/stable/c/deaa88fa010ba0dfc554d09e006ddd1ce9945c82 https://git.kernel.org/stable/c/00bcc6d679262ea42688fba1d7819ea6e56f12ef https://git.kernel.org/stable/c/4aed450adaee3a021db27be94c61fe025b0d05ff https://git.kernel.org/stable/c/b1908bff0faaa94d55be72da65879cad632e8236 https://git.kernel.org/stable/c/e625a9477d12baaff4025c5f9989184a907ea8fc