summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python
diff options
context:
space:
mode:
authorJoas Antonio dos Santos <joasantonio108@gmail.com>2026-08-13 15:34:24 -0300
committerPablo Neira Ayuso <pablo@netfilter.org>2026-08-18 00:56:43 +0200
commite625a9477d12baaff4025c5f9989184a907ea8fc (patch)
treed749873663e502e58e022c4a3c96d75443369f0f /tools/perf/scripts/python
parent1e3b9e1c77fe262c6999c50f6f23c20f96faf5ce (diff)
downloadlinux-e625a9477d12baaff4025c5f9989184a907ea8fc.tar.gz
linux-e625a9477d12baaff4025c5f9989184a907ea8fc.zip
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. Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2") Signed-off-by: Joas Antonio dos Santos <joasantonio108@gmail.com> Acked-by: Julian Anastasov <ja@ssi.bg> Signed-off-by: Pablo Neira Ayuso <pablo@netfilter.org>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions