CVE-2026-90267 PUBLISHED

scsi: sd: Fix special_vec mempool leak when scsi_alloc_sgtables() fails

Assigner: Linux
Reserved: 11.09.2026 Published: 17.09.2026 Updated: 17.09.2026

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.

Product Status

Vendor Linux
Product Linux
Versions Default: unaffected
  • affected from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 to 5d7d1b8b525e5eff33a01d07dfcf7bdd3b6d790d (excl.)
  • affected from 81d926e8b5520e38f1f72dd7bb7cfc81c1a69d87 to bb31844d88b77138b67aa20c3600203baff40140 (excl.)
Vendor Linux
Product Linux
Versions Default: affected
  • Version 4.12 is affected
  • unaffected from 0 to 4.12 (excl.)
  • unaffected from 7.2.6 to 7.2.* (incl.)
  • unaffected from 7.3-rc1 to * (incl.)

References