Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB
CVE-2026-97478 Overview
CVE-2026-97478 is a use-after-free vulnerability in the Linux kernel's ACRN hypervisor driver (virt/acrn). The flaw occurs in the hsm_irqfd lifetime management, where acrn_irqfd_deassign() can race with the eventfd EPOLLHUP wakeup path and free the same struct hsm_irqfd concurrently. A queued shutdown work item can then dereference a dangling pointer through container_of(), triggering memory corruption in kernel context. The vulnerability affects local, authenticated users on systems running the ACRN hypervisor driver.
Critical Impact
A local attacker with access to ACRN device interfaces can trigger a kernel use-after-free, potentially leading to privilege escalation, kernel memory corruption, or denial of service.
Affected Products
- Linux kernel builds with CONFIG_ACRN_HSM enabled
- Systems using the ACRN hypervisor Hardware-Specific Module (HSM) driver
- Virtualization hosts exposing ACRN irqfd interfaces to user space
Discovery Timeline
- 2026-09-24 - CVE-2026-97478 published to NVD
- 2026-09-28 - Last updated in NVD database
Technical Details for CVE-2026-97478
Vulnerability Analysis
The vulnerability is a classic use-after-free [CWE-416] race condition in the ACRN virtualization driver's irqfd subsystem. ACRN uses eventfd-backed irqfds to inject interrupts into guest virtual machines. Each hsm_irqfd structure is linked into a per-VM list and tied to an eventfd waitqueue entry.
Two code paths can free the same hsm_irqfd structure concurrently. The first path is eventfd_release(), which calls wake_up_poll(EPOLLHUP), invoking hsm_irqfd_wakeup() and queuing shutdown work. The second path is acrn_irqfd_deassign(), which directly invokes hsm_irqfd_shutdown() to remove the entry, drop the eventfd reference, and call kfree(irqfd).
When these paths interleave, the deassign flow frees the structure while a shutdown work item is still queued. The work handler then executes container_of(work, ..., shutdown) and dereferences irqfd->vm on freed memory.
Root Cause
The underlying defect is unclear ownership of the hsm_irqfd lifetime. Both the deassign path and the eventfd wakeup path assumed authority to free the structure without coordination. No single-shot guard prevented multiple cleanup paths from running against the same object.
Attack Vector
Exploitation requires local access with permission to open the ACRN HSM device and issue irqfd assign and deassign ioctls. An attacker races a deassign ioctl against eventfd closure (EPOLLHUP) to free an hsm_irqfd while shutdown work is pending. The resulting dangling pointer dereference occurs in kernel context and can be shaped to achieve kernel memory corruption.
The upstream fix adopts the lifetime model used by KVM irqfds. Deassign and deinit now only deactivate the irqfd by removing it from vm->irqfds under irqfds_lock and queuing cleanup work. A new HSM_IRQFD_FLAG_SHUTDOWN bit, guarded by test_and_set_bit(), ensures cleanup work is queued at most once regardless of how many concurrent events fire. hsm_irqfd_shutdown_work() becomes the sole owner responsible for unhooking the waitqueue entry, dropping the eventfd reference, and freeing the structure.
Detection Methods for CVE-2026-97478
Indicators of Compromise
- Kernel oops or panic messages referencing hsm_irqfd_shutdown_work or acrn_irqfd_deassign in dmesg output
- KASAN use-after-free reports naming hsm_irqfd allocations on kernels built with memory sanitizers
- Unexpected ACRN HSM driver crashes correlated with user-space processes closing eventfds
Detection Strategies
- Monitor /var/log/kern.log and journalctl -k for soft lockups, general protection faults, or NULL pointer dereferences within ACRN driver symbols
- Deploy KASAN-enabled test kernels in staging environments to surface use-after-free conditions before production impact
- Audit which local accounts and containers have read/write access to the ACRN HSM device node
Monitoring Recommendations
- Alert on repeated process crashes or unprivileged user activity targeting ACRN ioctls (ACRN_IOCTL_IRQFD, ACRN_IOCTL_IRQFD_DEASSIGN)
- Track kernel version inventory across virtualization hosts to confirm patch coverage
- Correlate ACRN driver fault traces with host-level process execution timelines to identify exploitation attempts
How to Mitigate CVE-2026-97478
Immediate Actions Required
- Apply the upstream kernel patches referenced in commits 666c7f9 and d8156aa
- Restrict access to the ACRN HSM device node to trusted virtualization management accounts only
- Review distribution security trackers for backported fixes and schedule maintenance windows for affected hypervisor hosts
Patch Information
The fix restructures hsm_irqfd lifetime management to mirror the KVM irqfd model. Cleanup now runs through a single owner (hsm_irqfd_shutdown_work()), serialized by a HSM_IRQFD_FLAG_SHUTDOWN bit set via test_and_set_bit(). acrn_irqfd_deassign() flushes vm->irqfd_wq before returning, and acrn_irqfd_assign() publishes the irqfd to vm->irqfds under irqfds_lock after installing the waitqueue entry. Refer to the kernel.org stable commit 666c7f9 and kernel.org stable commit d8156aa for the full code changes.
Workarounds
- Unload the ACRN HSM kernel module (modprobe -r acrn) on hosts that do not require ACRN guest virtualization
- Enforce strict file permissions on /dev/acrn_hsm so only privileged virtualization services can open the device
- Disable CONFIG_ACRN_HSM in custom kernel builds for environments that do not use the ACRN hypervisor
# Restrict ACRN HSM device access to a dedicated group
chown root:acrn /dev/acrn_hsm
chmod 660 /dev/acrn_hsm
# Verify running kernel includes the fix
uname -r
dmesg | grep -i acrn
Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.
Sources: National Vulnerability Database, CISA KEV, Exploit-DB

