CVE-2026-143151: tcp: fix authentication bypass via unsupported TCP auth options
In the Linux kernel, the following vulnerability has been resolved:
tcp: fix authentication bypass via unsupported TCP auth options
tcpinboundhash() parses both TCP-MD5 and TCP-AO options when at least one of the two features is enabled. With TCPMD5SIG=y and TCPAO=n, a packet carrying an AO option reaches the disabled tcpinboundaohash() stub. That stub returns success, so sockets configured to require MD5 authentication end up accepting unauthenticated data. A forged AO option skips the unsigned fast path, which is the only place where tcpinboundhash() can return SKBDROPREASONTCPMD5NOTFOUND.
The inverse configuration with TCPMD5SIG=n and TCPAO=y has the same problem for an MD5 option on AO sockets.
Note that TCP-AO depends on 64BIT: therefore, every 32-bit kernel with TCPMD5SIG=y is in the vulnerable configuration.
Make the disabled stubs reject options for the unsupported authentication scheme. This matches the real helpers' behavior for sockets without keys. It also means that kernels with TCPMD5SIG=n and TCPAO=y now drop segments carrying an MD5 option on unkeyed sockets, as kernels configured with TCPMD5SIG=y already do.