Linux
ipvs: fix integer overflow in ftp helper port/address parsing
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < d02de9a7a7e2484da0cf37e50614840623b98a62
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < fc1493c905d7e0bc8830c1d83915cb7831daf1a1
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 50cb9b7263a2ed01f7d2f97818a800c2ee05f661
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < deaa88fa010ba0dfc554d09e006ddd1ce9945c82
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 00bcc6d679262ea42688fba1d7819ea6e56f12ef
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < 4aed450adaee3a021db27be94c61fe025b0d05ff
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < b1908bff0faaa94d55be72da65879cad632e8236
- >= 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2, < e625a9477d12baaff4025c5f9989184a907ea8fc
Fixed in d02de9a7a7e2484da0cf37e50614840623b98a62, fc1493c905d7e0bc8830c1d83915cb7831daf1a1, 50cb9b7263a2ed01f7d2f97818a800c2ee05f661, deaa88fa010ba0dfc554d09e006ddd1ce9945c82, 00bcc6d679262ea42688fba1d7819ea6e56f12ef, 4aed450adaee3a021db27be94c61fe025b0d05ff, b1908bff0faaa94d55be72da65879cad632e8236, e625a9477d12baaff4025c5f9989184a907ea8fc
- 2.6.12
Fixed in 0, 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to d02de9a7a7e2484da0cf37e50614840623b98a62 or fc1493c905d7e0bc8830c1d83915cb7831daf1a1 or 50cb9b7263a2ed01f7d2f97818a800c2ee05f661 or deaa88fa010ba0dfc554d09e006ddd1ce9945c82 or 00bcc6d679262ea42688fba1d7819ea6e56f12ef or 4aed450adaee3a021db27be94c61fe025b0d05ff or b1908bff0faaa94d55be72da65879cad632e8236 or e625a9477d12baaff4025c5f9989184a907ea8fc or later.
Upgrade Linux to 0 or 5.10.270 or 5.15.221 or 6.1.188 or 6.6.157 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.