GHSA-5M47-J8J6-957W

Vulnerability from github – Published: 2026-11-30 15:32 – Updated: 2026-11-30 15:32
VLAI
Details

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.

Show details on source website

{
  "affected": [],
  "aliases": [
    "CVE-2026-99956"
  ],
  "database_specific": {
    "cwe_ids": [],
    "github_reviewed": false,
    "github_reviewed_at": null,
    "nvd_published_at": "2026-11-30T14:20:33Z",
    "severity": null
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nata: libata-sff: fix race between IRQ deferral and ata_sff_flush_pio_task()\n\nCommit 4a2e5409472e (\"ata: libata-sff: don\u0027t busy-wait for PIO data-in\ncommand completion\") allowed the interrupt handler to queue\nap-\u003esff_pio_task from ata_sff_hsm_move() when a PIO data-in command is\nstill busy after its final data block.\n\nata_sff_flush_pio_task(), however, was written under the assumption that\ncancel_delayed_work_sync() is enough to prevent sff_pio_task from being\nqueued again before the HSM state is reset to HSM_ST_IDLE and\nsff_pio_task_link is cleared.\n\nThe flush runs early during error handling, at a point where the timed\nout command is still active, the port is not frozen yet, and interrupts\nare still being serviced.  If the final data-block interrupt of a PIO\ndata-in command is serviced in the window between\ncancel_delayed_work_sync() and the reset of hsm_task_state, the\ninterrupt handler queues sff_pio_task after the cancel has completed.\nWhen that work item then executes on ata_sff_wq after the flush cleared\nap-\u003esff_pio_task_link, ata_sff_pio_task() hits\nBUG_ON(ap-\u003esff_pio_task_link == NULL) while holding the host lock with\ninterrupts disabled; alternatively it proceeds on a stale link while\nerror handling owns the port.\n\nFix this by resetting hsm_task_state to HSM_ST_IDLE before cancelling\nthe work item.  Once the state is IDLE, __ata_sff_port_intr() can no\nlonger enter ata_sff_hsm_move(), so the interrupt handler can no longer\nqueue the pio task, and cancel_delayed_work_sync() drains whatever was\nqueued before the reset.\n\nAlso make ata_sff_pio_task() bail out quietly when the HSM state was\nmarked idle by the flush, both at entry and after re-acquiring the port\nlock following ata_msleep(), since a work item can already be running\nwhen the flush resets the state.",
  "id": "GHSA-5m47-j8j6-957w",
  "modified": "2026-11-30T15:32:50Z",
  "published": "2026-11-30T15:32:50Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-99956"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/69be770908ae57354a41d7e1cc99ab46278d2e86"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6ff5288c7a5da4cd792383144f91e584d291ca2f"
    }
  ],
  "schema_version": "1.4.0",
  "severity": []
}



Log in or create an account to share your comment.




Tags
Taxonomy of the tags.


Loading…

Loading…

Loading…

Drag nodes to arrange them. Double-click a related vulnerability to open it, or a source to visit its link. The Physics button on the left tunes the layout and the simulation; the legend at the bottom left hides or shows nodes by kind and by sighting type.

Forecast uses a logistic model when the trend is rising, or an exponential decay model when the trend is falling. Fitted via linearized least squares.

Sightings

Author Source Type Date Other

Nomenclature

  • Seen: The vulnerability was mentioned, discussed, or observed by the user.
  • Confirmed: The vulnerability has been validated from an analyst's perspective.
  • Published Proof of Concept: A public proof of concept is available for this vulnerability.
  • Exploited: The vulnerability was observed as exploited by the user who reported the sighting.
  • Patched: The vulnerability was observed as successfully patched by the user who reported the sighting.
  • Not exploited: The vulnerability was not observed as exploited by the user who reported the sighting.
  • Not confirmed: The user expressed doubt about the validity of the vulnerability.
  • Not patched: The vulnerability was not observed as successfully patched by the user who reported the sighting.
Vulnerability timeline

Sightings and recorded dates, grouped by day · UTC

JSON
How durations are calculated

Following the VTEM framework (Black Hat USA 2015), time to patch starts when the vendor or a coordinator was informed, total time to patch at discovery, and disclosure to patch at public disclosure; vendor response time runs from the report to its acknowledgement. Time to exploit and time unpatched start at the earliest discovery or report, falling back to public disclosure. Unpatched time ends at the first recorded patch, or the calculation time when no patch is recorded. Exploitation to patch shows the interval between those two events; a published proof of concept is a public exploit, not exploitation. The method is described in a publication.

Each result shows its source dates. A negative interval means the end event came first; when date-only inputs leave the order open, the result says so. Date-only inputs are approximate. The earliest evidence wins: KEV report dates and sightings are labelled as such. Records describing another vulnerability are listed but never calculated from, and a PoC alone does not establish exploitation. Missing patch evidence does not prove that no patch exists. Filters below change the event list only.

Events included in the timeline

Loading timeline…


    Loading…

    Loading…

    Loading…

    Related by attack behaviour

    Vulnerabilities whose description is nearest to this one in the vector space of the CIRCL/vulnerability-attack-technique-biencoder model. This is a similarity search over the bi-encoder space (plain cosine), not a classification, and it has no measured accuracy.