ipvs: fix integer overflow in ftp helper port/address parsing
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in d02de9a7a7e2484da0cf37e50614840623b98a62; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in fc1493c905d7e0bc8830c1d83915cb7831daf1a1; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 50cb9b7263a2ed01f7d2f97818a800c2ee05f661; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in deaa88fa010ba0dfc554d09e006ddd1ce9945c82; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 00bcc6d679262ea42688fba1d7819ea6e56f12ef; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in 4aed450adaee3a021db27be94c61fe025b0d05ff; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in b1908bff0faaa94d55be72da65879cad632e8236; From 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 · fixed in e625a9477d12baaff4025c5f9989184a907ea8fc
- Linux Linux
2.6.12
- KernelLinux
From 2.6.12 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/d02de9a7a7e2484da0cf37e50614840623b98a62
- stable/c/fc1493c905d7e0bc8830c1d83915cb7831daf1a1
- stable/c/50cb9b7263a2ed01f7d2f97818a800c2ee05f661
- stable/c/deaa88fa010ba0dfc554d09e006ddd1ce9945c82
- stable/c/00bcc6d679262ea42688fba1d7819ea6e56f12ef
- stable/c/4aed450adaee3a021db27be94c61fe025b0d05ff
- stable/c/b1908bff0faaa94d55be72da65879cad632e8236
- stable/c/e625a9477d12baaff4025c5f9989184a907ea8fc