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

- 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.21%, higher than 11% of CVEs (2026-12-02)
- Published: 2026-11-20T05:49:16.977Z
- Modified: 2026-11-23T08:18:00.197Z
- Assigned by: Linux

## Description

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

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

SG_IO can submit a data-in SCSI command with DMA_TO_DEVICE. The
scatterlist can then contain pages pinned without write access.
ata_scsi_rbuf_fill() 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 SG_IO 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
atapi_fixup_inquiry().

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.

(As written by CVE List.)

## Affected

- Linux Linux: from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 8a57c4ce7fe35b04874685b5df14f72c097016c2; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before da24281e7f8e3b741ea906395d218e995a3cbbc4; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 93257499c883d83b531d5ffff57242d2e3762be8; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 97313de58cfd8c5e9251e991079a1879553eec5d; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before cd77d3791e66350541f1c7c5447db2f28857bba4; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before f4cfd238e806e6784a7b4ff609a0592382d54df3; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before 10c6a917284f584162974767d4e2a0cf411db684; from 1da177e4c3f41524e886b7f1b8a0c1fc7321cac2 before a4845f077415ef32fe672c841e2fc58ae9e28273; 2.6.12 (not affected: before 2.6.12; from 5.10.275 up to 5.10.*; from 5.15.226 up to 5.15.*; from 6.1.193 up to 6.1.*; from 6.6.163 up to 6.6.*; from 6.12.118 up to 6.12.*; from 6.18.64 up to 6.18.*; from 7.3.5 up to 7.3.*; from 7.4-rc2 up to *)

## References

- <https://git.kernel.org/stable/c/8a57c4ce7fe35b04874685b5df14f72c097016c2>
- <https://git.kernel.org/stable/c/da24281e7f8e3b741ea906395d218e995a3cbbc4>
- <https://git.kernel.org/stable/c/93257499c883d83b531d5ffff57242d2e3762be8>
- <https://git.kernel.org/stable/c/97313de58cfd8c5e9251e991079a1879553eec5d>
- <https://git.kernel.org/stable/c/cd77d3791e66350541f1c7c5447db2f28857bba4>
- <https://git.kernel.org/stable/c/f4cfd238e806e6784a7b4ff609a0592382d54df3>
- <https://git.kernel.org/stable/c/10c6a917284f584162974767d4e2a0cf411db684>
- <https://git.kernel.org/stable/c/a4845f077415ef32fe672c841e2fc58ae9e28273>

## Sources

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

---

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