Skip to content
Heist/ feed
Back to feed
UnratedFix available

mailbox: zynqmp-ipi: Fix SGI cleanup on unbind

Type: advisorySources: OSV

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.

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.54, 6.17.4
CVEs
CVE-2025-40161
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 15:01 UTC · Revision 1

Source evidence

mailbox: zynqmp-ipi: Fix SGI cleanup on unbind

core-osv · Original source

Published 12 Nov 2025, 10:24 UTC

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.

osv:CVE-2025-40161

Kernel

Fixed versions: 6.12.54, 6.17.4

Complete source record
{
  "id": "58f99af8a6f9d675ada092f90123e035c2fdadabe85548a5926387d44fadc8e8",
  "url": "https://osv.dev/vulnerability/CVE-2025-40161",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "mailbox: zynqmp-ipi: Fix SGI cleanup on unbind",
    "summary": "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.",
    "evidence": "osv:CVE-2025-40161",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.54",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.17.4",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2025-40161",
      "aliases": [
        "CVE-2025-40161"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6ffb1635341bec50fa9540ae7827d1e5d75ae0b0"
                },
                {
                  "fixed": "1ee147efee68be00203b1fee6479911debb1edb2"
                },
                {
                  "fixed": "32bf7c6e01f5ba17a53ba236a770bd0274cefdf4"
                },
                {
                  "fixed": "bb160e791ab15b89188a7a19589b8e11f681bef3"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40161.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.10.0"
                },
                {
                  "fixed": "6.12.54"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.17.4"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-40161.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:36.578425964Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/1ee147efee68be00203b1fee6479911debb1edb2",
        "https://git.kernel.org/stable/c/32bf7c6e01f5ba17a53ba236a770bd0274cefdf4",
        "https://git.kernel.org/stable/c/bb160e791ab15b89188a7a19589b8e11f681bef3",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40161.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-40161",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/40xxx/CVE-2025-40161.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-40161",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 503931,
  "published_at": "2025-11-12T10:24:36.696+00:00"
}