Description
In the Linux kernel, the following vulnerability has been resolved: tcp: fix authentication bypass via unsupported TCP auth options tcp_inbound_hash() parses both TCP-MD5 and TCP-AO options when at least one of the two features is enabled. With TCP_MD5SIG=y and TCP_AO=n, a packet carrying an AO option reaches the disabled tcp_inbound_ao_hash() 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 tcp_inbound_hash() can return SKB_DROP_REASON_TCP_MD5NOTFOUND. The inverse configuration with TCP_MD5SIG=n and TCP_AO=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 TCP_MD5SIG=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 TCP_MD5SIG=n and TCP_AO=y now drop segments carrying an MD5 option on unkeyed sockets, as kernels configured with TCP_MD5SIG=y already do.
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
0a3a809089eb1d4a0a2fd0c16b520d603988c859 to < dd74ade551508a19f3c3ab5e92beded5f97e9510affected0a3a809089eb1d4a0a2fd0c16b520d603988c859 to < 61002aa895d50414adfb835db81827fb00275679affected0a3a809089eb1d4a0a2fd0c16b520d603988c859 to < 9761df82ee9e68fd5cbe3bab578476992939353aaffected0a3a809089eb1d4a0a2fd0c16b520d603988c859 to < 7cc235fb1251fec1183e3158c60d2e504c2a8e8baffected
Linux Linux
Default version status: affected
6.7affected0 to < 6.7unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected