xen-blkfront: unbind irq before tearing down ring and shadow requests (Linux Linux)
At a glance
- Source
- NVD
- EPSS
- EPSS 0.22 % · percentile 13 ()
- State
- PUBLISHED
- Published
- Updated
- Assigner
- Linux
- Affected products
- Linux · Linux
- NVD status
- Received
Description
In the Linux kernel, the following vulnerability has been resolved: xen-blkfront: unbind irq before tearing down ring and shadow requests In blkif_free_ring(), the driver tears down the ring's persistent grants, shadow request arrays, and shared ring structure (xenbus_teardown_ring), and only calls unbind_from_irqhandler() at the very end. While blkif_free_ring() is freeing persistent grants and clearing the shadow array, the event channel interrupt (blkif_interrupt) is still registered and active. If an interrupt arrives from the backend during this teardown window, blkif_interrupt() reads rinfo->ring.sring and, via blkif_completion(), accesses rinfo->shadow[id].grants_used and rinfo->shadow[id].sg. blkif_free_ring() tears these structures down without holding rinfo->ring_lock, and the handler only checks info->connected at entry, so this is a real race resulting in a use-after-free or NULL pointer dereference. Fix this by moving unbind_from_irqhandler() to the beginning of blkif_free_ring(). Calling unbind_from_irqhandler() first frees the IRQ and synchronizes with any in-flight interrupt handlers on other CPUs before ring memory and shadow request structures are deallocated, matching the teardown order in drivers/net/xen-netfront.c.
References
- https://git.kernel.org/stable/c/81e5134e16d8418886df1904361691ad873409f2
- https://git.kernel.org/stable/c/96ce725ba00576a2334efe449e917eddde7a7a88
- https://git.kernel.org/stable/c/4c5664453104926d7bd1f78508e6564ddae70faa
- https://git.kernel.org/stable/c/2bbf1c1d03258cbc3ad7bf37ae272693d5c9d5c3
- https://git.kernel.org/stable/c/9cdf4fae8fde297ed9ce6bb0058d25449606ee66
- https://git.kernel.org/stable/c/e64707d07fcda07c71d4f1405c1bedb0787a6889
- https://git.kernel.org/stable/c/5f4b2debc87b6f86b56c6e1f5d97007a330d6aac
- https://git.kernel.org/stable/c/f3e27b7955727a4d7c0e9264a2a209fbba788bdc
European references
- ENISA EUVD · EUVD-2026-130119
- GCVE · GCVE-0-2026-99453
CERT-FR advisories
- CERTFR-2026-AVI-1639 — Multiples vulnérabilités dans le noyau Linux de Debian LTS · cert.ssi.gouv.fr
Affected products
| Product | Affected versions |
|---|---|
| Linux · Linux | affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 81e5134e16d8418886df1904361691ad873409f2 affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 96ce725ba00576a2334efe449e917eddde7a7a88 affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 4c5664453104926d7bd1f78508e6564ddae70faa affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 2bbf1c1d03258cbc3ad7bf37ae272693d5c9d5c3 affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 9cdf4fae8fde297ed9ce6bb0058d25449606ee66 affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < e64707d07fcda07c71d4f1405c1bedb0787a6889 affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < 5f4b2debc87b6f86b56c6e1f5d97007a330d6aac affected : ≥ 11659569f7202d0cb6553e81f9b8aa04dfeb94ce < f3e27b7955727a4d7c0e9264a2a209fbba788bdc Other versions : unaffected |
| Linux · Linux | affected : 4.5 unaffected : ≥ 0 < 4.5 unaffected : ≥ 5.10.275 ≤ 5.10.* unaffected : ≥ 5.15.226 ≤ 5.15.* unaffected : ≥ 6.1.193 ≤ 6.1.* unaffected : ≥ 6.6.163 ≤ 6.6.* unaffected : ≥ 6.12.117 ≤ 6.12.* unaffected : ≥ 6.18.61 ≤ 6.18.* unaffected : ≥ 7.3.2 ≤ 7.3.* unaffected : ≥ 7.4-rc1 ≤ * Other versions : affected |
Sources
| Source | Licence |
|---|---|
| CVE List (CVEProject cvelistV5) | CVE Program Terms of Use |
| EPSS (FIRST.org) | FIRST — attribution requested |
| ENISA EUVD | ENISA — reproduction authorised, source acknowledged |
| CERT-FR (ANSSI) | Licence Ouverte / Etalab 2.0 |
| NVD (NIST) via fkie-cad/nvd-json-data-feeds | Public domain — this product uses data from the NVD API but is not endorsed or certified by the NVD |