# CVE-2025-40161: mailbox: zynqmp-ipi: Fix SGI cleanup on unbind

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2025-11-12T10:24:36.696Z
- Modified: 2026-10-19T21:10:00.160Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 before 1ee147efee68be00203b1fee6479911debb1edb2; from 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 before 32bf7c6e01f5ba17a53ba236a770bd0274cefdf4; from 6ffb1635341bec50fa9540ae7827d1e5d75ae0b0 before bb160e791ab15b89188a7a19589b8e11f681bef3; 6.10 (not affected: before 6.10; from 6.12.54 up to 6.12.*; from 6.17.4 up to 6.17.*; from 6.18 up to *)

## References

- <https://git.kernel.org/stable/c/1ee147efee68be00203b1fee6479911debb1edb2>
- <https://git.kernel.org/stable/c/32bf7c6e01f5ba17a53ba236a770bd0274cefdf4>
- <https://git.kernel.org/stable/c/bb160e791ab15b89188a7a19589b8e11f681bef3>

## Sources

- CVE List: [CVE-2025-40161](https://www.cve.org/CVERecord?id=CVE-2025-40161), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2025-40161](https://nvd.nist.gov/vuln/detail/CVE-2025-40161), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2025-40161 · Whole record: https://cve.day/CVE-2025-40161.json · Rebuilt by cve.day 2026-11-25T22:59:07.560Z
