PT-2026-162923
CVE-2026-99956
·
Published
2026-11-30
·
Updated
2026-11-30
Description by
Score
N/A
Not availableNo severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.
In the Linux kernel, the following vulnerability has been resolved:
ata: libata-sff: fix race between IRQ deferral and ata sff flush pio task()
Commit 4a2e5409472e ("ata: libata-sff: don't busy-wait for PIO data-in
command completion") allowed the interrupt handler to queue
ap->sff pio task from ata sff hsm move() when a PIO data-in command is
still busy after its final data block.
ata sff flush pio task(), however, was written under the assumption that
cancel delayed work sync() is enough to prevent sff pio task from being
queued again before the HSM state is reset to HSM ST IDLE and
sff pio task link is cleared.
The flush runs early during error handling, at a point where the timed
out command is still active, the port is not frozen yet, and interrupts
are still being serviced. If the final data-block interrupt of a PIO
data-in command is serviced in the window between
cancel delayed work sync() and the reset of hsm task state, the
interrupt handler queues sff pio task after the cancel has completed.
When that work item then executes on ata sff wq after the flush cleared
ap->sff pio task link, ata sff pio task() hits
BUG ON(ap->sff pio task link == NULL) while holding the host lock with
interrupts disabled; alternatively it proceeds on a stale link while
error handling owns the port.
Fix this by resetting hsm task state to HSM ST IDLE before cancelling
the work item. Once the state is IDLE, ata sff port intr() can no
longer enter ata sff hsm move(), so the interrupt handler can no longer
queue the pio task, and cancel delayed work sync() drains whatever was
queued before the reset.
Also make ata sff pio task() bail out quietly when the HSM state was
marked idle by the flush, both at entry and after re-acquiring the port
lock following ata msleep(), since a work item can already be running
when the flush resets the state.
Found an issue in the description? Have something to add? Feel free to write us 👾