CVE-2026-99587: ata: libata-scsi: reject data-in commands with a data-out buffer

Published Nov 20, 2026
·
Updated

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

ata: libata-scsi: reject data-in commands with a data-out buffer

SGIO can submit a data-in SCSI command with DMATODEVICE. The scatterlist can then contain pages pinned without write access. atascsirbuffill() writes simulated replies to that scatterlist; in the reported case, the copy tried to write the shared zero page and faulted in the kernel.

The same mismatch can affect SGIO commands translated by libata. ZBC IN and GET PHYSICAL ELEMENT STATUS completion handlers can modify the receive buffer even if the drive aborts the command. For ATAPI, the successful INQUIRY completion also rewrites the buffer in atapifixupinquiry().

Reject these mismatched commands before the buffer is written or the command is issued. Report ABORTED COMMAND / DATA IN BUFFER ERROR because the CDB itself can be valid; the supplied transfer direction is wrong.

Affected Software

7 affected componentsFixes available
linux/kernel>=2.6.12<6.12.118
6.12.118
linux/kernel>=6.13.0<6.18.64
6.18.64
linux/kernel>=6.19.0<7.3.5
7.3.5
debian/linux*
debian/linux*
debian/linux*
debian/linux<=6.1.176-1, <=6.1.192-2, <=6.12.107-1, <=6.12.117-1, <=7.3.4-1
7.3.5-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.12.118
  2. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 6.18.64
  3. Upgrade

    Upgrade linux/Kernel to a version that resolves this vulnerability.

    Fixed in 7.3.5
  4. Upgrade

    Upgrade debian/linux to a version that resolves this vulnerability.

    Fixed in 7.3.5-1
  5. Compensating control

    In libata-scsi, reject data-in SCSI commands submitted with DMA_TO_DEVICE or a data-out buffer before writing to the buffer, and report ABORTED COMMAND / DATA IN BUFFER ERROR.

Event History

Nov 20, 2026
CVE Published
via MITRE·05:49 AM
Data Sourced
via MITRE·05:49 AM
Description
Data Sourced
via OSV·05:49 AM
DescriptionAffected Software
Data Sourced
via NVD·06:17 AM
Description

Frequently Asked Questions

1

What access does an attacker need to trigger this issue?

An attacker needs the ability to submit SG_IO SCSI commands to a libata-managed device and supply a data-in command with a DMA_TO_DEVICE buffer. The issue arises when the kernel later writes a simulated or completion-handled response into pages that were pinned without write access.

2

Which command paths can write to the incorrectly supplied buffer?

The affected paths include simulated replies handled by ata_scsi_rbuf_fill(), libata-translated SG_IO commands involving ZBC IN or GET PHYSICAL ELEMENT STATUS, and ATAPI INQUIRY completion processing in atapi_fixup_inquiry(). ZBC IN and GET PHYSICAL ELEMENT STATUS may modify the receive buffer even when the drive aborts the command.

3

How does the fix handle malformed transfer directions?

The fix rejects data-in commands supplied with a data-out buffer before the command is issued or a response is written. It reports SCSI status ABORTED COMMAND / DATA IN BUFFER ERROR, because the command CDB can be valid while its supplied transfer direction is not.

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