CVE-2026-99956
Last modified
CVE-2026-99956 is a vulnerability of currently unknown severity. 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.
Description
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.
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | >= 4a2e5409472e8a0e3e2817e149c55c1d5f803742, < 6ff5288c7a5da4cd792383144f91e584d291ca2f; >= 4a2e5409472e8a0e3e2817e149c55c1d5f803742, < 69be770908ae57354a41d7e1cc99ab46278d2e86 |
| Linux | Linux | 7.3 |
References
Timeline
- Published
- Last Modified
- Status
- Received
Frequently Asked Questions
What is CVE-2026-99956?
How severe is CVE-2026-99956?
How do I fix CVE-2026-99956?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-99950In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2026-99951In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99952In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99953In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99954In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99955In the Linux kernel, the following vulnerability has been re…7.5
- CVE-2026-99957In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99958In the Linux kernel, the following vulnerability has been re…7.3
- CVE-2026-99959In the Linux kernel, the following vulnerability has been re…
- CVE-2026-9996Out of bounds read in WebRTC in Google Chrome on Mac prior t…6.5
- CVE-2026-99960In the Linux kernel, the following vulnerability has been re…
- CVE-2026-99961In the Linux kernel, the following vulnerability has been re…
Are you affected by CVE-2026-99956?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
