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

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

scsi: sd: Fix specialvec mempool leak when scsiallocsgtables() fails

sdsetspecialbvec() allocates a special payload page for UNMAP and WRITE SAME commands. If scsiallocsgtables() fails afterward in sdsetupunmapcmnd() or sdsetupwritesame{10,16}cmnd(), the SCSI midlayer does not call uninitcommand() because RQFDONTPREP is not set yet, leaking the page.

Call sduninitcommand() on error, and clear RQFSPECIALPAYLOAD after freeing the page.

Event History

Sep 17, 2026
CVE Published
via MITRE·04:08 PM
Data Sourced
via MITRE·04:08 PM
Description

Frequently Asked Questions

1

What conditions are required for the leak to occur?

A UNMAP or WRITE SAME command must allocate a special payload page, and the subsequent scsi_alloc_sgtables() call must fail. The leak occurs because command cleanup is not invoked at that point.

2

Which command setup paths are involved?

The affected paths are sd_setup_unmap_cmnd() and sd_setup_write_same10_cmnd() or sd_setup_write_same16_cmnd().

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203