Skip to contentSkip to conversation

CVE-2026-43190: netfilter: xt_tcpmss: check remaining length before reading optlen

DISCUSSION Greg Kroah-Hartman 1 participant 1 message May 6

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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).

The Linux kernel CVE team has assigned CVE-2026-43190 to this issue.

Affected and fixed versions
===========================

	Fixed in 5.10.252 with commit f895191dc32c53eaf443b6443fe40945b2f92287
	Fixed in 5.15.202 with commit cd5beda7e0e32865e214f28034bb92c1cecff885
	Fixed in 6.1.165 with commit eaedc0bc18be46fe7f58170e967959a932c4f824
	Fixed in 6.6.128 with commit 07a9b32eaae792ff7d0fcac14d8920c937c0a9c3
	Fixed in 6.12.75 with commit 8b300f726640c48c3edfe9c453334dd801f4b74e
	Fixed in 6.18.16 with commit 5e13d0a37666955b6cfddc0f73cb40ed645b8a05
	Fixed in 6.19.6 with commit f6c412dcfd76b0516d51aa847d8f4c7b70381b09
	Fixed in 7.0 with commit 735ee8582da3d239eb0c7a53adca61b79fb228b3

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-43190

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/xt_tcpmss.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/f895191dc32c53eaf443b6443fe40945b2f92287
	https://git.kernel.org/stable/c/cd5beda7e0e32865e214f28034bb92c1cecff885
	https://git.kernel.org/stable/c/eaedc0bc18be46fe7f58170e967959a932c4f824
	https://git.kernel.org/stable/c/07a9b32eaae792ff7d0fcac14d8920c937c0a9c3
	https://git.kernel.org/stable/c/8b300f726640c48c3edfe9c453334dd801f4b74e
	https://git.kernel.org/stable/c/5e13d0a37666955b6cfddc0f73cb40ed645b8a05
	https://git.kernel.org/stable/c/f6c412dcfd76b0516d51aa847d8f4c7b70381b09
	https://git.kernel.org/stable/c/735ee8582da3d239eb0c7a53adca61b79fb228b3