Description
In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_tcpmss: check remaining length before reading optlen Quoting reporter: In net/netfilter/xt_tcpmss.c (lines 53-68), the TCP option parser reads op[i+1] directly without validating the remaining option length. If the last byte of the option field is not EOL/NOP (0/1), the code attempts to index op[i+1]. In the case where i + 1 == optlen, this causes an out-of-bounds read, accessing memory past the optlen boundary (either reading beyond the stack buffer _opt or the following payload).
Product status
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before f895191dc32c53eaf443b6443fe40945b2f92287
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before cd5beda7e0e32865e214f28034bb92c1cecff885
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before eaedc0bc18be46fe7f58170e967959a932c4f824
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 07a9b32eaae792ff7d0fcac14d8920c937c0a9c3
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 8b300f726640c48c3edfe9c453334dd801f4b74e
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 5e13d0a37666955b6cfddc0f73cb40ed645b8a05
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before f6c412dcfd76b0516d51aa847d8f4c7b70381b09
1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 (git) before 735ee8582da3d239eb0c7a53adca61b79fb228b3
2.6.12
Any version before 2.6.12
5.10.252 (semver)
5.15.202 (semver)
6.1.165 (semver)
6.6.128 (semver)
6.12.75 (semver)
6.18.16 (semver)
6.19.6 (semver)
7.0 (original_commit_for_fix)
References
git.kernel.org/...c/f895191dc32c53eaf443b6443fe40945b2f92287
git.kernel.org/...c/cd5beda7e0e32865e214f28034bb92c1cecff885
git.kernel.org/...c/eaedc0bc18be46fe7f58170e967959a932c4f824
git.kernel.org/...c/07a9b32eaae792ff7d0fcac14d8920c937c0a9c3
git.kernel.org/...c/8b300f726640c48c3edfe9c453334dd801f4b74e
git.kernel.org/...c/5e13d0a37666955b6cfddc0f73cb40ed645b8a05
git.kernel.org/...c/f6c412dcfd76b0516d51aa847d8f4c7b70381b09
git.kernel.org/...c/735ee8582da3d239eb0c7a53adca61b79fb228b3