CVE-2025-40161 mailbox: zynqmp-ipi: Fix SGI cleanup on unbind
A local attacker with high privileges can cause a kernel crash by triggering improper interrupt cleanup during driver unbind.
- Exploited in the wild
- Not known
- Login needed
- An administrator
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-40161?
CVE-2025-40161 is a vulnerability in Linux, published on 12 Nov 2025. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
mailbox: zynqmp-ipi: Fix SGI cleanup on unbind
The driver incorrectly determines SGI vs SPI interrupts by checking IRQ number < 16, which fails with dynamic IRQ allocation. During unbind, this causes improper SGI cleanup leading to kernel crash.
Add explicit irq_type field to pdata for reliable identification of SGI interrupts (type-2) and only clean up SGI resources when appropriate.
Which versions are affected by CVE-2025-40161?
How do I fix CVE-2025-40161?
Apply the vendor's patch.
Is CVE-2025-40161 being exploited?
There is no known exploitation of CVE-2025-40161 in the wild and no public exploit code.
Sources
Also known as BELL-CVE-2025-40161, DEBIAN-CVE-2025-40161, GHSA-pxrv-ph9j-hxgj, ROOT-OS-DEBIAN-13-CVE-2025-40161, UBUNTU-CVE-2025-40161.