{"id":"CVE-2026-99956","aliases":[],"cve":{"records":[{"id":"CVE-2026-99956","source":"Linux","state":"PUBLISHED","reasons":[],"replacements":[],"disputed":false,"unsupportedWhenAssigned":false,"reserved":"2026-09-25T10:25:14.449Z","published":"2026-11-30T13:18:37.303Z","modified":"2026-11-30T13:18:37.303Z"}],"publishers":[{"name":"Linux","role":"CNA","organizationId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","modified":"2026-11-30T13:18:37.303Z"}],"references":[{"url":"https://git.kernel.org/stable/c/6ff5288c7a5da4cd792383144f91e584d291ca2f","tags":[],"source":"Linux"},{"url":"https://git.kernel.org/stable/c/69be770908ae57354a41d7e1cc99ab46278d2e86","tags":[],"source":"Linux"}],"weaknesses":[],"applicability":[{"source":"Linux","statements":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"7.3","versionEndExcluding":"7.4-rc1"}]}]}]}],"prioritization":[]},"title":"ata: libata-sff: fix race between IRQ deferral and ata_sff_flush_pio_task()","titleSource":"Linux","descriptionSource":"Linux","description":"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't busy-wait for PIO data-in\ncommand completion\") allowed the interrupt handler to queue\nap->sff_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->sff_pio_task_link, ata_sff_pio_task() hits\nBUG_ON(ap->sff_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.","score":null,"severity":"unknown","published":"2026-11-30T13:18:37.303Z","modified":"2026-11-30T13:18:37.303Z","withdrawn":false,"knownExploited":false,"affected":[],"products":[{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"4a2e5409472e8a0e3e2817e149c55c1d5f803742","status":"affected","lessThan":"6ff5288c7a5da4cd792383144f91e584d291ca2f","versionType":"git"},{"version":"4a2e5409472e8a0e3e2817e149c55c1d5f803742","status":"affected","lessThan":"69be770908ae57354a41d7e1cc99ab46278d2e86","versionType":"git"}],"defaultStatus":"unaffected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99956"},{"vendor":"Linux","name":"Linux","platforms":[],"versions":[{"version":"7.3","status":"affected"},{"version":"0","status":"unaffected","lessThan":"7.3","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"defaultStatus":"affected","cpes":[],"source":"Linux","url":"https://www.cve.org/CVERecord?id=CVE-2026-99956"}],"remediation":[],"references":["https://git.kernel.org/stable/c/6ff5288c7a5da4cd792383144f91e584d291ca2f","https://git.kernel.org/stable/c/69be770908ae57354a41d7e1cc99ab46278d2e86"],"sources":[{"name":"CVE","id":"CVE-2026-99956","modified":"2026-11-30T13:18:37.303Z","url":"https://www.cve.org/CVERecord?id=CVE-2026-99956"}],"assessments":[],"sourceAffected":[],"observedAt":"2026-11-30T14:01:04.308Z","kev":{"status":"not-listed","checkedAt":"2026-11-30T22:55:31.926Z"},"coverage":[{"source":"NVD","status":"not-checked"},{"source":"GHSA","status":"not-checked"},{"source":"EUVD","status":"not-checked"},{"source":"EPSS","status":"not-checked"}],"evidence":[],"aiSummary":null}