# CVE-2026-90267: scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.17%, higher than 7% of CVEs (2026-12-01)
- Published: 2026-09-17T16:08:02.624Z
- Modified: 2026-10-30T13:20:48.500Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before 05bc68669549bfddfdeef2fd119855cab3e9615a; from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before 710a2448a06a8215ba8acb4a2791954800f7db0a; from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before 744a65e113094756e6c1cfba9ff1bf4247cb68d4; from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before e90f746f4ca3896ca560e820b7b6b0a467026938; from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before 5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d; from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 before bb31844d88b77138b67aa20c3600203baff40140; 4.12 (not affected: before 4.12; from 6.1.191 up to 6.1.*; from 6.6.160 up to 6.6.*; from 6.12.114 up to 6.12.*; from 6.18.57 up to 6.18.*; from 7.2.6 up to 7.2.*; from 7.3 up to *)

## 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>

## Sources

- CVE List: [CVE-2026-90267](https://www.cve.org/CVERecord?id=CVE-2026-90267), CVE Terms of Use, modified 2026-10-30
- NVD: [CVE-2026-90267](https://nvd.nist.gov/vuln/detail/CVE-2026-90267), Public domain, modified 2026-10-30

---

Page: https://cve.day/CVE-2026-90267 · Whole record: https://cve.day/CVE-2026-90267.json · Rebuilt by cve.day 2026-11-25T22:59:39.363Z
