{"id":"CVE-2025-40161","state":"PUBLISHED","title":"mailbox: zynqmp-ipi: Fix SGI cleanup on unbind","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmailbox: zynqmp-ipi: Fix SGI cleanup on unbind\n\nThe driver incorrectly determines SGI vs SPI interrupts by checking IRQ\nnumber < 16, which fails with dynamic IRQ allocation. During unbind,\nthis causes improper SGI cleanup leading to kernel crash.\n\nAdd explicit irq_type field to pdata for reliable identification of SGI\ninterrupts (type-2) and only clean up SGI resources when appropriate.","publishedAt":"2025-11-12T10:24:36.696Z","updatedAt":"2026-05-11T21:43:55.108Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"1ee147efee68be00203b1fee6479911debb1edb2","versionType":"git"},{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"32bf7c6e01f5ba17a53ba236a770bd0274cefdf4","versionType":"git"},{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"bb160e791ab15b89188a7a19589b8e11f681bef3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mailbox/zynqmp-ipi-mailbox.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.54","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.4","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mailbox/zynqmp-ipi-mailbox.c"]}],"references":["https://git.kernel.org/stable/c/1ee147efee68be00203b1fee6479911debb1edb2","https://git.kernel.org/stable/c/32bf7c6e01f5ba17a53ba236a770bd0274cefdf4","https://git.kernel.org/stable/c/bb160e791ab15b89188a7a19589b8e11f681bef3"],"weaknesses":[],"ingestedAt":"2026-10-29T20:09:09.358Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2025/40xxx/CVE-2025-40161.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2025-40161","state":"PUBLISHED","datePublished":"2025-11-12T10:24:36.696Z","dateUpdated":"2026-05-11T21:43:55.108Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2025-04-16T07:20:57.176Z"},"containers":{"cna":{"title":"mailbox: zynqmp-ipi: Fix SGI cleanup on unbind","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmailbox: zynqmp-ipi: Fix SGI cleanup on unbind\n\nThe driver incorrectly determines SGI vs SPI interrupts by checking IRQ\nnumber < 16, which fails with dynamic IRQ allocation. During unbind,\nthis causes improper SGI cleanup leading to kernel crash.\n\nAdd explicit irq_type field to pdata for reliable identification of SGI\ninterrupts (type-2) and only clean up SGI resources when appropriate."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"1ee147efee68be00203b1fee6479911debb1edb2","versionType":"git"},{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"32bf7c6e01f5ba17a53ba236a770bd0274cefdf4","versionType":"git"},{"version":"6ffb1635341bec50fa9540ae7827d1e5d75ae0b0","status":"affected","lessThan":"bb160e791ab15b89188a7a19589b8e11f681bef3","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mailbox/zynqmp-ipi-mailbox.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.10","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.10","versionType":"semver"},{"version":"6.12.54","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.17.4","status":"unaffected","lessThanOrEqual":"6.17.*","versionType":"semver"},{"version":"6.18","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/mailbox/zynqmp-ipi-mailbox.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/1ee147efee68be00203b1fee6479911debb1edb2"},{"url":"https://git.kernel.org/stable/c/32bf7c6e01f5ba17a53ba236a770bd0274cefdf4"},{"url":"https://git.kernel.org/stable/c/bb160e791ab15b89188a7a19589b8e11f681bef3"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-05-11T21:43:55.108Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.12.54"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.17.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.10","versionEndExcluding":"6.18"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}