scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.17 % · percentile 7 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails sd_set_special_bvec() allocates a special payload page for UNMAP and WRITE SAME commands. If scsi_alloc_sgtables() fails afterward in sd_setup_unmap_cmnd() or sd_setup_write_same{10,16}_cmnd(), the SCSI midlayer does not call uninit_command() because RQF_DONTPREP is not set yet, leaking the page. Call sd_uninit_command() on error, and clear RQF_SPECIAL_PAYLOAD after freeing the page.
References
- https://git.kernel.org/stable/c/05bc68669549bfddfdeef2fd119855cab3e9615a
- https://git.kernel.org/stable/c/710a2448a06a8215ba8acb4a2791954800f7db0a
- https://git.kernel.org/stable/c/744a65e113094756e6c1cfba9ff1bf4247cb68d4
- https://git.kernel.org/stable/c/e90f746f4ca3896ca560e820b7b6b0a467026938
- https://git.kernel.org/stable/c/5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d
- https://git.kernel.org/stable/c/bb31844d88b77138b67aa20c3600203baff40140
European references
- ENISA EUVD · EUVD-2026-81860
- GCVE · GCVE-0-2026-90267
CERT-FR advisories
- CERTFR-2026-AVI-1596 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1595 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1473 — Multiples vulnérabilités dans le noyau Linux de Debian · cert.ssi.gouv.fr
- CERTFR-2026-AVI-1469 — Multiples vulnérabilités dans le noyau Linux d'Ubuntu · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < 05bc68669549bfddfdeef2fd119855cab3e9615a affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < 710a2448a06a8215ba8acb4a2791954800f7db0a affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < 744a65e113094756e6c1cfba9ff1bf4247cb68d4 affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < e90f746f4ca3896ca560e820b7b6b0a467026938 affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < 5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d affected : ≥ 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 < bb31844d88b77138b67aa20c3600203baff40140 Other versions : unaffected |
| Linux · Linux | affected : 4.12 unaffected : ≥ 0 < 4.12 unaffected : ≥ 6.1.191 ≤ 6.1.* unaffected : ≥ 6.6.160 ≤ 6.6.* unaffected : ≥ 6.12.114 ≤ 6.12.* unaffected : ≥ 6.18.57 ≤ 6.18.* unaffected : ≥ 7.2.6 ≤ 7.2.* unaffected : ≥ 7.3 ≤ * Other versions : affected |
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 |