Description
In the Linux kernel, the following vulnerability has been resolved:

PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc

pci_epf_alloc_doorbell() stores the allocated doorbell message array in
epf->db_msg/epf->num_db before requesting MSI vectors. If MSI allocation
fails, the array is freed but the EPF state may still point to freed
memory.

Clear epf->db_msg and epf->num_db on the MSI allocation failure path so
that later cleanup cannot double-free the array and callers can retry
allocation.

Also return -EBUSY when doorbells have already been allocated to prevent
leaking or overwriting an existing allocation.
Published: 2026-06-24
Score: 7.8 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The pci_epf_alloc_doorbell function in the Linux pci‑ep‑msi driver stored a newly allocated doorbell message array in epf->db_msg and epf->num_db before requesting MSI vectors. If the MSI allocation failed, the array was freed but the epf structure still pointed to that freed memory. Later cleanup logic could attempt to free the array again or otherwise operate on the stale pointer, causing a double‑free that corrupts kernel memory. The patch clears these pointers on allocation failure and returns –EBUSY when a doorbell allocation already exists to avoid leaking or overwriting an existing allocation.

Affected Systems

All Linux kernel releases that contain the pci‑ep‑msi endpoint driver before the commit that adds the defensive clears are affected. This includes every distribution kernel that shipped the original pci_epf_alloc_doorbell implementation as of the patch was merged; the vendor is Linux, the product is the Linux kernel.

Risk and Exploitability

The likelihood of an attacker exploiting this flaw hinges on the ability to force a failed MSI allocation for a PCI endpoint device that relies on the pci‑ep‑msi driver, and subsequently trigger the cleanup path that would double‑free the memory. The likely attack vector is local privilege; an attacker with control over the host and the device can orchestrate the failure scenario, potentially leading to kernel memory corruption, denial of service, or, in some configurations, arbitrary code execution. The CVSS score of 7.8 indicates high severity. The EPSS score of <1% indicates a very low probability that this weakness will be actively exploited in the wild. The vulnerability is not listed in CISA’s KEV catalog, meaning no publicly known exploits are documented. The description does not explicitly state the exploitation conditions, so the above conclusions are inferred based on the demonstrated flaw behavior.

Generated by OpenCVE AI on August 13, 2026 at 21:44 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a kernel version that contains the commit fixing pci‑ep‑msi, ensuring epf->db_msg and epf->num_db are cleared on MSI allocation failure, and that duplicate allocations return -EBUSY.
  • If an immediate kernel upgrade is not feasible, patch the kernel source with the upstream commit, rebuild the pci‑ep‑msi module, and replace the running module with the patched version.
  • Restrict access to PCI devices that use the endpoint driver, or disable MSI allocation for those devices until a patched kernel is deployed as a temporary mitigation.

Generated by OpenCVE AI on August 13, 2026 at 21:44 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Ubuntu USN Ubuntu USN USN-8566-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8568-1 Linux kernel (OEM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8569-1 Linux kernel (HWE) vulnerabilities
Ubuntu USN Ubuntu USN USN-8593-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8603-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8618-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8663-1 Linux kernel (NVIDIA) vulnerabilities
Ubuntu USN Ubuntu USN USN-8664-1 Linux kernel (NVIDIA BaseOS) vulnerabilities
History

Thu, 13 Aug 2026 19:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-416

Sat, 27 Jun 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-1341
References
Metrics threat_severity

None

cvssV3_1

{'score': 5.5, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Wed, 24 Jun 2026 19:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-415
CWE-416

Wed, 24 Jun 2026 17:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc pci_epf_alloc_doorbell() stores the allocated doorbell message array in epf->db_msg/epf->num_db before requesting MSI vectors. If MSI allocation fails, the array is freed but the EPF state may still point to freed memory. Clear epf->db_msg and epf->num_db on the MSI allocation failure path so that later cleanup cannot double-free the array and callers can retry allocation. Also return -EBUSY when doorbells have already been allocated to prevent leaking or overwriting an existing allocation.
Title PCI: endpoint: pci-ep-msi: Fix error unwind and prevent double alloc
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-06-24T16:30:09.492Z

Reserved: 2026-06-09T07:44:35.382Z

Link: CVE-2026-53067

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Analyzed

Published: 2026-06-24T17:17:19.780

Modified: 2026-07-21T17:37:33.227

Link: CVE-2026-53067

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-06-24T00:00:00Z

Links: CVE-2026-53067 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T21:45:03Z

Weaknesses
  • CWE-1341

    Multiple Releases of Same Resource or Handle

  • CWE-415

    Double Free