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

PCI/P2PDMA: Release per-CPU pgmap ref when vm_insert_page() fails

When vm_insert_page() fails in p2pmem_alloc_mmap(), p2pmem_alloc_mmap()
doesn't invoke percpu_ref_put() to free the per-CPU ref of pgmap acquired
after gen_pool_alloc_owner(), and memunmap_pages() will hang forever when
trying to remove the PCI device.

Fix it by adding the missed percpu_ref_put().
Published: 2026-05-27
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

During PCI P2P DMA page mapping, a failure in vm_insert_page() triggers p2pmem_alloc_mmap() to skip a required per‑CPU reference release. The unreleased reference keeps the system from unmapping the PCI device, causing memunmap_pages() to block forever. This results in a system hang that disrupts availability but does not directly expose data or modify state. The flaw represents a resource‑leak scenario where an invalidated reference count prevents clean de‑allocation, exacerbating the kernel’s inability to reclaim resources.

Affected Systems

The vulnerability affects Linux kernel implementations that provide the PCI P2P DMA page‑allocation path, specifically those using the p2pmem_alloc_mmap routine and the per‑CPU pgmap reference counting. It applies to all kernels that have not incorporated the commit that adds the missing percpu_ref_put() call, regardless of distribution or patch level.

Risk and Exploitability

No public exploit or documented attacks are currently known, and the EPSS score is undefined. The defect does not expose remote code execution, but a local attacker with the ability to initiate PCI device removal could force a kernel deadlock. Because the failure path requires a specific kernel function to fail during page insertion, exploitation is unlikely unless additional vulnerabilities allowing arbitrary kernel writes exist. The KEV catalog does not list this CVE, so it is not known to have active exploitation in the wild.

Generated by OpenCVE AI on May 27, 2026 at 16:06 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a recent kernel update that includes commit 51b7181c or later.
  • Rebuild the kernel after pulling the latest stable patch set from the upstream repository.
  • Reboot the system to ensure all PCI devices are flushed and the consumer references are released.

Generated by OpenCVE AI on May 27, 2026 at 16:06 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Wed, 27 May 2026 16:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-674
CWE-795

Wed, 27 May 2026 14:15:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: PCI/P2PDMA: Release per-CPU pgmap ref when vm_insert_page() fails When vm_insert_page() fails in p2pmem_alloc_mmap(), p2pmem_alloc_mmap() doesn't invoke percpu_ref_put() to free the per-CPU ref of pgmap acquired after gen_pool_alloc_owner(), and memunmap_pages() will hang forever when trying to remove the PCI device. Fix it by adding the missed percpu_ref_put().
Title PCI/P2PDMA: Release per-CPU pgmap ref when vm_insert_page() fails
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-05-27T12:16:52.117Z

Reserved: 2026-05-13T15:03:33.082Z

Link: CVE-2026-45880

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-05-27T14:17:01.813

Modified: 2026-05-27T14:48:31.480

Link: CVE-2026-45880

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-27T16:15:05Z

Weaknesses