CVE-2026-90011: scsi: target: iscsi: Reserve a terminator byte for the login payload
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
scsi: target: iscsi: Reserve a terminator byte for the login payload
iscsi_target_check_login_request() rejects a login PDU whose DataSegmentLength exceeds MAX_KEY_VALUE_PAIRS, but the test is '>' and login->req_buf is allocated with exactly MAX_KEY_VALUE_PAIRS bytes. Since iscsit_get_login_rx() receives payload_length + padding bytes, where
padding = ((-payload_length) & 3);
any payload_length from 8189 to 8192 fills the whole 8192 byte buffer. The write stays in bounds, but no byte is left for a NUL terminator.
The buffer is subsequently consumed as a C string. In the CHAP path chap_check_algorithm() calls kstrdup(a_str), and extract_param() calls strstr(in_buf, pattern) followed by strlen_semi(), none of which take a length. convert_null_to_semi() additionally rewrites every embedded NUL to ';', so even a payload made of well formed NUL separated key=value records is left without a terminator. These walk past the end of the object into adjacent slab memory. It is reachable by an unauthenticated initiator against a portal configured for CHAP; when authentication is not required iscsi_login_zero_tsih_s2() rewrites AuthMethod to None and the CHAP path is never entered.
Allocate one extra byte. kzalloc() zeroes it and nothing ever writes to it, as every writer copies to offset 0 for at most MAX_KEY_VALUE_PAIRS bytes, so the buffer is always terminated.
The Linux kernel CVE team has assigned CVE-2026-90011 to this issue.
Affected and fixed versions
===========================
Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 5.10.270 with commit 5fac79f248c37774d1dd761406f83d25ca6ff8e4 Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 5.15.221 with commit 6ddddcad436d8e6e619204d3c848147ff2f5bf1e Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 6.1.188 with commit b19dc17ed963ac36c0db4b52a1803fb11169f91f Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 6.6.157 with commit 6b589ef9d5f6cdc70d2b4f269ca6cf26b5ebb076 Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 6.12.110 with commit eb9dadf4d552ebe10644871c5189286552aa48f5 Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 6.18.51 with commit 1624bff4c5118ad494d50ad94d44f22064667a7f Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 7.2.5 with commit 3ddf3ea291a0ef2ea93b82e158960ac2cc42302b Issue introduced in 3.1 with commit e48354ce078c079996f89d715dfa44814b4eba01 and fixed in 7.3-rc2 with commit f4825922d2fb371e2b969697d792077f1b62b62c
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-90011
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:
drivers/target/iscsi/iscsi_target_login.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/5fac79f248c37774d1dd761406f83d25ca6ff8e4 https://git.kernel.org/stable/c/6ddddcad436d8e6e619204d3c848147ff2f5bf1e https://git.kernel.org/stable/c/b19dc17ed963ac36c0db4b52a1803fb11169f91f https://git.kernel.org/stable/c/6b589ef9d5f6cdc70d2b4f269ca6cf26b5ebb076 https://git.kernel.org/stable/c/eb9dadf4d552ebe10644871c5189286552aa48f5 https://git.kernel.org/stable/c/1624bff4c5118ad494d50ad94d44f22064667a7f https://git.kernel.org/stable/c/3ddf3ea291a0ef2ea93b82e158960ac2cc42302b https://git.kernel.org/stable/c/f4825922d2fb371e2b969697d792077f1b62b62c