{"id":"CVE-2026-98545","aliases":["CVE-2026-98545"],"related":[],"kind":"vulnerability","state":"published","title":"ata: libata-scsi: bound the ATA passthru sense descriptor writes","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata-scsi: bound the ATA passthru sense descriptor writes\n\nWhen an ATA PASS-THROUGH command to an ATAPI device fails, the sense\nbuffer holds the device's REQUEST SENSE reply, and\nata_scsi_set_passthru_sense_fields() trusts its additional length\nbyte, sb[7], when adding the ATA Status Return descriptor.  A faulty\nor malicious device can use that to make the kernel read and write\npast the 96-byte buffer in three ways:\n\n- scsi_sense_desc_find() is passed sb[7] + 8 as the buffer length, so\n  its clamp against sb[7] does nothing and the walk runs off the end.\n- A type-9 descriptor found near the end is filled in unchecked.\n- A new descriptor at sb[8 + len] needs len + 22 bytes, not len + 14,\n  so len 75..82 writes up to 8 bytes past the end.\n\nReproduced with KASAN under qemu, with the emulated ATAPI REQUEST SENSE\nreply patched:\n\n  BUG: KASAN: slab-out-of-bounds in scsi_sense_desc_find+0x1a5/0x210\n  BUG: KASAN: slab-out-of-bounds in ata_scsi_qc_complete+0x1a15/0x1a50\n\nBoth are gone with this patch, and a valid descriptor is still filled\nin.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata-scsi: bound the ATA passthru sense descriptor writes\n\nWhen an ATA PASS-THROUGH command to an ATAPI device fails, the sense\nbuffer holds the device's REQUEST SENSE reply, and\nata_scsi_set_passthru_sense_fields() trusts its additional length\nbyte, sb[7], when adding the ATA Status Return descriptor.  A faulty\nor malicious device can use that to make the kernel read and write\npast the 96-byte buffer in three ways:\n\n- scsi_sense_desc_find() is passed sb[7] + 8 as the buffer length, so\n  its clamp against sb[7] does nothing and the walk runs off the end.\n- A type-9 descriptor found near the end is filled in unchecked.\n- A new descriptor at sb[8 + len] needs len + 22 bytes, not len + 14,\n  so len 75..82 writes up to 8 bytes past the end.\n\nReproduced with KASAN under qemu, with the emulated ATAPI REQUEST SENSE\nreply patched:\n\n  BUG: KASAN: slab-out-of-bounds in scsi_sense_desc_find+0x1a5/0x210\n  BUG: KASAN: slab-out-of-bounds in ata_scsi_qc_complete+0x1a15/0x1a50\n\nBoth are gone with this patch, and a valid descriptor is still filled\nin.","source":"cvelist"}],"published":"2026-10-18T15:18:13.949Z","modified":"2026-10-19T10:19:10.470Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ce477199c53e3db5a096981c565e232498ddeae4","fixed":"c698f6deabf680f8f4a1727ef2dc80fe78815fbf","status":"affected"},{"type":"git","introduced":"97981926224afe17ba3e22e0c2b7dd8b516ee574","fixed":"d9a7147b93624660626cd7c3b1143715699e1f5c","status":"affected"},{"type":"git","introduced":"97981926224afe17ba3e22e0c2b7dd8b516ee574","fixed":"1603abb0c50420e97cf4a1feddbd5e183c5fdf86","status":"affected"},{"type":"git","introduced":"97981926224afe17ba3e22e0c2b7dd8b516ee574","fixed":"80fbb0bc4d11683c88f2f9d3997ea02fcada5408","status":"affected"},{"type":"git","introduced":"97981926224afe17ba3e22e0c2b7dd8b516ee574","fixed":"80320b278fea07ffcda3f57b67b61658e0a4e1ca","status":"affected"},{"type":"git","version":"67d9d0b6ae4aaf2c4cef103a96a145c7fdfb15f8","status":"affected"},{"type":"semver","introduced":"6.6.44","fixed":"6.6.158","status":"affected"},{"type":"semver","introduced":"6.10.3","fixed":"6.11","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.11","status":"unaffected"},{"type":"semver","introduced":"6.6.158","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.112","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.55","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.9","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/c698f6deabf680f8f4a1727ef2dc80fe78815fbf","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d9a7147b93624660626cd7c3b1143715699e1f5c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1603abb0c50420e97cf4a1feddbd5e183c5fdf86","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80fbb0bc4d11683c88f2f9d3997ea02fcada5408","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/80320b278fea07ffcda3f57b67b61658e0a4e1ca","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-98545","url":"https://www.cve.org/CVERecord?id=CVE-2026-98545","licence":"CVE Terms of Use","modified":"2026-10-19T09:21:28.453Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-98545","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-98545","licence":"Public domain","modified":"2026-10-19T10:19:10.470Z"}],"updatedAt":"2026-11-25T22:59:45.221Z","epss":{"score":0.00206,"percentile":0.11175,"date":"2026-12-01T12:00:22.000Z"}}