CVE-2026-99956: ata: libata-sff: fix race between IRQ deferral and ata_sff_flush_pio_task()
ata: libata-sff: fix race between IRQ deferral and atasffflushpiotask()
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In Linux kernel libata-sff, set hsm_task_state to HSM_ST_IDLE before cancelling the PIO task in ata_sff_flush_pio_task(); make ata_sff_pio_task() return quietly when the state is idle, checking both at entry and after reacquiring the port lock.
Event History
Frequently Asked Questions
Under what conditions can the race be triggered?
It requires a timed-out PIO data-in command during early error handling, while the command is still active, the port is not frozen, and interrupts continue to be serviced. The final data-block interrupt must occur after cancel_delayed_work_sync() completes but before the HSM state and PIO-task link are reset.
Is cancelling the delayed PIO work sufficient to prevent the problem?
No. An interrupt handler can queue sff_pio_task again after cancel_delayed_work_sync() has completed, creating the unsafe window.
What observable failure does the race cause?
When the newly queued work executes after the PIO-task link has been cleared, ata_sff_pio_task() reaches BUG_ON(ap->sff_pio_task_link == NULL).