{ "dataType": "CVE_RECORD", "dataVersion": "5.2", "cveMetadata": { "cveId": "CVE-2024-56704", "assignerOrgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "state": "PUBLISHED", "assignerShortName": "Linux", "dateReserved": "2024-12-27T15:00:39.856Z", "datePublished": "2024-12-28T09:46:25.766Z", "dateUpdated": "2026-08-05T11:46:10.332Z" }, "containers": { "cna": { "providerMetadata": { "orgId": "416baaa9-dc9f-4396-8d5f-8c081fb06d67", "shortName": "Linux", "dateUpdated": "2026-08-05T11:46:10.332Z" }, "descriptions": [ { "lang": "en", "value": "In the Linux kernel, the following vulnerability has been resolved:\n\n9p/xen: fix release of IRQ\n\nKernel logs indicate an IRQ was double-freed.\n\nPass correct device ID during IRQ release.\n\n[Dominique: remove confusing variable reset to 0]" } ], "metrics": [ { "cvssV3_1": { "version": "3.1", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H", "baseScore": 8.4, "baseSeverity": "HIGH" }, "scenarios": [ { "lang": "en", "value": "AV:L - The Xen 9pfs frontend is reached through hypervisor-mediated grant-shared rings, event channels and xenstore state transitions, not through the network stack, so the attack path is a local read/write/signal channel into the guest kernel rather than a network protocol. Guest-side triggering (driver unbind, device teardown) is likewise local.\nAC:L - The wrong-dev_id `free_irq()` fails deterministically on every single ring teardown, so the WARN, the leaked irqaction and the missing `synchronize_irq()` barrier are guaranteed, and the attacker controls both sides of the resulting race by choosing when to drive the device to Closing/removal while continuously notifying the event channel. No condition lies outside the attacker's influence.\nPR:N - The realistic attacker is a compromised or malicious 9pfs backend/driver domain, which in Xen's disaggregated threat model holds zero privileges within the victim guest kernel yet fully controls the xenbus state transitions and event-channel notifications needed to trigger and race the teardown.\nUI:N - Device teardown is driven entirely by backend-initiated xenbus state changes and requires no action from any user in the guest; having a 9pfs device attached is a configuration precondition, not victim interaction.\nS:U - The corrupted memory and the resulting control-flow impact are all inside the victim guest's own Linux kernel, so the vulnerable and impacted components share one security authority; no VM-escape, IOMMU or sandbox boundary is crossed by the flaw itself.\nC:H - Because `synchronize_irq()` is skipped, `xen_9pfs_front_event_handler()` and the subsequently queued `p9_xen_response()` read `ring->priv->client`, `ring->intf`, `ring->data.in` and the `p9_client`/`p9_req_t` structures after `kfree(priv->rings)`/`kfree(priv)`, giving a use-after-free read over reclaimable kernel heap contents, which per guidance is High.\nI:H - `schedule_work(&ring->work)` writes workqueue list pointers into the freed `xen_9pfs_dataring` allocation and later executes `p9_xen_response()` against attacker-reclaimable memory including the `p9_client` and its callback state, yielding a use-after-free write and control-flow hijack primitive suitable for privilege escalation inside the guest.\nA:H - Every teardown hits `WARN(1, \"Trying to free already-free IRQ\")`, which is an immediate panic under `panic_on_warn`, and the descriptor is freed with a live irqaction attached while the ring memory is released underneath a possibly-running handler, producing oopses and slab corruption; each cycle additionally leaks the `struct irqaction` and its module/PM references." } ] } ], "affected": [ { "product": "Linux", "vendor": "Linux", "defaultStatus": "unaffected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/9p/trans_xen.c" ], "versions": [ { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "692eb06703afc3e24d889d77e94a0e20229f6a4a", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "d74b4b297097bd361b8a9abfde9b521ff464ea9c", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "7f5a2ed5c1810661e6b03f5a4ebf17682cdea850", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "4950408793b118cb8075bcee1f033b543fb719fa", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "b9e26059664bd9ebc64a0e8f5216266fc9f84265", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "2bb3ee1bf237557daea1d58007d2e1d4a6502ccf", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "d888f5f5d76b2722c267e6bdf51d445d60647b7b", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "530bc9f03a102fac95b07cda513bfc16ff69e0ee", "status": "affected", "versionType": "git" }, { "version": "71ebd71921e451f0f942ddfe85d01e31ddc6eb88", "lessThan": "e43c608f40c065b30964f0a806348062991b802d", "status": "affected", "versionType": "git" } ] }, { "product": "Linux", "vendor": "Linux", "defaultStatus": "affected", "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git", "programFiles": [ "net/9p/trans_xen.c" ], "versions": [ { "version": "4.12", "status": "affected" }, { "version": "0", "lessThan": "4.12", "status": "unaffected", "versionType": "semver" }, { "version": "4.19.325", "lessThanOrEqual": "4.19.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.4.287", "lessThanOrEqual": "5.4.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.10.231", "lessThanOrEqual": "5.10.*", "status": "unaffected", "versionType": "semver" }, { "version": "5.15.174", "lessThanOrEqual": "5.15.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.1.120", "lessThanOrEqual": "6.1.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.6.64", "lessThanOrEqual": "6.6.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.11.11", "lessThanOrEqual": "6.11.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.12.2", "lessThanOrEqual": "6.12.*", "status": "unaffected", "versionType": "semver" }, { "version": "6.13", "lessThanOrEqual": "*", "status": "unaffected", "versionType": "original_commit_for_fix" } ] } ], "cpeApplicability": [ { "nodes": [ { "operator": "OR", "negate": false, "cpeMatch": [ { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "4.19.325" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "5.4.287" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "5.10.231" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "5.15.174" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "6.1.120" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "6.6.64" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "6.11.11" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "6.12.2" }, { "vulnerable": true, "criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*", "versionStartIncluding": "4.12", "versionEndExcluding": "6.13" } ] } ] } ], "references": [ { "url": "https://git.kernel.org/stable/c/692eb06703afc3e24d889d77e94a0e20229f6a4a" }, { "url": "https://git.kernel.org/stable/c/d74b4b297097bd361b8a9abfde9b521ff464ea9c" }, { "url": "https://git.kernel.org/stable/c/7f5a2ed5c1810661e6b03f5a4ebf17682cdea850" }, { "url": "https://git.kernel.org/stable/c/4950408793b118cb8075bcee1f033b543fb719fa" }, { "url": "https://git.kernel.org/stable/c/b9e26059664bd9ebc64a0e8f5216266fc9f84265" }, { "url": "https://git.kernel.org/stable/c/2bb3ee1bf237557daea1d58007d2e1d4a6502ccf" }, { "url": "https://git.kernel.org/stable/c/d888f5f5d76b2722c267e6bdf51d445d60647b7b" }, { "url": "https://git.kernel.org/stable/c/530bc9f03a102fac95b07cda513bfc16ff69e0ee" }, { "url": "https://git.kernel.org/stable/c/e43c608f40c065b30964f0a806348062991b802d" } ], "title": "9p/xen: fix release of IRQ", "x_generator": { "engine": "bippy-1.2.0" } }, "adp": [ { "metrics": [ { "cvssV3_1": { "scope": "UNCHANGED", "version": "3.1", "baseScore": 7.8, "attackVector": "LOCAL", "baseSeverity": "HIGH", "vectorString": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H", "integrityImpact": "HIGH", "userInteraction": "NONE", "attackComplexity": "LOW", "availabilityImpact": "HIGH", "privilegesRequired": "LOW", "confidentialityImpact": "HIGH" } }, { "other": { "type": "ssvc", "content": { "id": "CVE-2024-56704", "role": "CISA Coordinator", "options": [ { "Exploitation": "none" }, { "Automatable": "no" }, { "Technical Impact": "total" } ], "version": "2.0.3", "timestamp": "2025-10-01T19:58:47.879822Z" } } } ], "problemTypes": [ { "descriptions": [ { "lang": "en", "type": "CWE", "cweId": "CWE-415", "description": "CWE-415 Double Free" } ] } ], "title": "CISA ADP Vulnrichment", "providerMetadata": { "orgId": "134c704f-9b21-4f2e-91b3-4a467353bcc0", "shortName": "CISA-ADP", "dateUpdated": "2025-10-01T20:07:07.289Z" } }, { "title": "CVE Program Container", "references": [ { "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00001.html" }, { "url": "https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html" } ], "providerMetadata": { "orgId": "af854a3a-2127-422b-91ae-364da2661108", "shortName": "CVE", "dateUpdated": "2025-11-03T20:52:55.105Z" } } ] } }