CVE-2026-142858: ata: libata-scsi: abort multi-sector pass-through commands when multi_count is 0

Published Dec 3, 2026
·
Updated

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

ata: libata-scsi: abort multi-sector pass-through commands when multicount is 0

When an ATA12, ATA16, or ATA32 pass-through command with a multi-sector PIO command opcode (ATACMDREADMULTI, ATACMDWRITEMULTI, ATACMDREADMULTIEXT, ATACMDWRITEMULTIEXT, or ATACMDWRITEMULTIFUAEXT) is submitted via SGIO on a device where multiple-sector mode is not configured (dev->multicount == 0), atascsipassthru() currently logs a warning and still dispatches the taskfile. When the DRQ interrupt fires, atapiosectors() triggers WARNONONCE(qc->dev->multicount == 0) and computes nsect = min((qc->nbytes - qc->curbytes) / qc->sectsize, 0) = 0, failing to transfer any sectors:

ata1.00: invalid multicount 1 ignored WARNING: drivers/ata/libata-sff.c:666 at atapiosectors+0x27d/0x300 Call Trace: <IRQ> atasffhsmmove+0x211/0x22e0 atasffportintr+0x1c8/0x520 atabmdmaportintr+0xa1/0x5b0 atabmdmainterrupt+0x1f5/0x550

Per ACS-3 section 7.12.7.21, if IDENTIFY DEVICE word 59 bit 8 is cleared to zero (multicount == 0) and a READ MULTIPLE or WRITE MULTIPLE command is received without a preceding successful SET MULTIPLE MODE command, the device returns command aborted (ABRT). Per the SAT specification, an ABRT error translates to the ABORTED COMMAND sense key with NO ADDITIONAL SENSE INFORMATION (0x00, 0x00).

Fail multi-sector taskfile commands in atascsipassthru() with atascsisetsense(dev, scmd, ABORTEDCOMMAND, 0, 0) when dev->multicount == 0.

Affected Software

8 affected componentsFixes available
Linux Linux kernel
linux/kernel>=2.6.22<5.10.275
5.10.275
linux/kernel>=5.11.0<5.15.226
5.15.226
linux/kernel>=5.16.0<6.1.193
6.1.193
linux/kernel>=6.2.0<6.6.163
6.6.163
linux/kernel>=6.7.0<6.12.117
6.12.117
linux/kernel>=6.13.0<6.18.63
6.18.63
linux/kernel>=6.19.0<7.3.4
7.3.4

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 5.10.275
  2. Upgrade

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

    Fixed in 5.15.226
  3. Upgrade

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

    Fixed in 6.1.193
  4. Upgrade

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

    Fixed in 6.6.163
  5. Upgrade

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

    Fixed in 6.12.117
  6. Upgrade

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

    Fixed in 6.18.63
  7. Upgrade

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

    Fixed in 7.3.4
  8. Compensating control

    In ata_scsi_pass_thru(), fail multi-sector taskfile commands when dev->multi_count is 0 and return INFORMATION (0x00, 0x00).

Event History

Dec 3, 2026
CVE Published
via MITRE·03:21 AM
Data Sourced
via MITRE·03:21 AM
Description
Data Sourced
via OSV·03:21 AM
DescriptionAffected Software
Data Sourced
via NVD·04:18 AM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

An ATA_12, ATA_16, or ATA_32 pass-through command must be submitted through SG_IO using a multi-sector PIO opcode, such as READ MULTIPLE or WRITE MULTIPLE. The target device must have multiple-sector mode unconfigured, indicated by dev->multi_count equal to 0.

2

How can I determine whether a system has encountered the issue?

Affected requests can produce warnings about an invalid multi_count value and a WARN_ON_ONCE in ata_pio_sectors(). The call trace may include ata_sff_hsm_move, __ata_sff_port_intr, ata_bmdma_port_intr, and ata_bmdma_interrupt.

3

What happens when the affected command is dispatched?

The taskfile is dispatched despite the invalid configuration, but when the DRQ interrupt occurs the sector count is calculated as zero. As a result, no sectors are transferred for the request.

4

What should be done if the fix cannot be applied immediately?

Avoid submitting ATA pass-through multi-sector PIO commands through SG_IO to devices for which multiple-sector mode is not configured. The relevant commands include ATA_CMD_READ_MULTI, ATA_CMD_WRITE_MULTI, ATA_CMD_READ_MULTI_EXT, ATA_CMD_WRITE_MULTI_EXT, and ATA_CMD_WRITE_MULTI_FUA_EXT.

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