scsi: target: iscsi: Reserve a terminator byte for the login payload (Linux Linux)
En bref
- Source
- NVD
- EPSS
- EPSS 0.84 % · centile 58 ()
- État
- PUBLISHED
- Publiée
- Mise à jour
- Attribuée par
- Linux
- Statut NVD
- Received
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.
Références
- 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
Scores
| Version | Score | Vecteur | Évalué par |
|---|---|---|---|
| CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | Linux |
| CVSS 3.1 | CRITICAL 9.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:H | NVD · 416baaa9-dc9f-4396-8d5f-8c081fb06d67 (Secondary) |
Références européennes
- ENISA EUVD · EUVD-2026-80619
- GCVE · GCVE-0-2026-90011
Avis du CERT-FR
- CERTFR-2026-AVI-1432 — Multiples vulnérabilités dans le noyau Linux de SUSE · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1431 — Multiples vulnérabilités dans le noyau Linux de Red Hat · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1375 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1289 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1253 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
Produits affectés
| Produit | Versions |
|---|---|
| Linux · Linux | affected e48354ce078c079996f89d715dfa44814b4eba01 < 5fac79f248c37774d1dd761406f83d25ca6ff8e4 ; affected e48354ce078c079996f89d715dfa44814b4eba01 < 6ddddcad436d8e6e619204d3c848147ff2f5bf1e ; affected e48354ce078c079996f89d715dfa44814b4eba01 < b19dc17ed963ac36c0db4b52a1803fb11169f91f ; affected e48354ce078c079996f89d715dfa44814b4eba01 < 6b589ef9d5f6cdc70d2b4f269ca6cf26b5ebb076 ; affected e48354ce078c079996f89d715dfa44814b4eba01 < eb9dadf4d552ebe10644871c5189286552aa48f5 ; affected e48354ce078c079996f89d715dfa44814b4eba01 < 1624bff4c5118ad494d50ad94d44f22064667a7f |
| Linux · Linux | affected 3.1 ; unaffected 0 < 3.1 ; unaffected 5.10.270 ≤ 5.10.* ; unaffected 5.15.221 ≤ 5.15.* ; unaffected 6.1.188 ≤ 6.1.* ; unaffected 6.6.157 ≤ 6.6.* |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |