CVE-2026-45880

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

Published May 27, 2026 CVSS 3.1 · 5.5 Medium EPSS < 1% KEV · Not listed
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().

Analysis

AI-generated

Technical impact

During PCI P2P DMA page mapping, a failure in vm_insert_page() causes the helper routine p2pmem_alloc_mmap() to skip a required release of a per‑CPU reference count. The unreleased reference prevents the kernel from freeing memory mappings of the PCI device, and memunmap_pages() blocks indefinitely during device removal, leading to a system hang that disrupts availability but does not directly expose data or alter system state. This flaw is a classic resource‑leak scenario where an invalidated reference count blocks clean de‑allocation.

Affected Systems

The vulnerability affects all Linux kernel builds that use the p2pmem_alloc_mmap path for PCI P2P DMA and have not yet applied the commit adding the missing percpu_ref_put() call. The issue is independent of distribution or patch level and therefore impacts any kernel lacking the fix.

Risk and Exploitability

CVSS score of 5.5 indicates moderate severity; no public exploit or documented attacks are currently known, and the EPSS score is < 1%, indicating a very low exploitation probability. 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. The likely attack vector is a user or privileged process that can trigger the removal of a PCI device, leading to the failure path. 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.

Remediation

No solution or workaround provided in the CVE record.

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 August 12, 2026 at 02:30 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Ubuntu USN Ubuntu USN USN-8492-1 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-2 Linux kernel vulnerabilities
Ubuntu USN Ubuntu USN USN-8497-1 Linux kernel (Low Latency) vulnerabilities
Ubuntu USN Ubuntu USN USN-8498-1 Linux kernel (NVIDIA Tegra) vulnerabilities
Ubuntu USN Ubuntu USN USN-8499-1 Linux kernel (Xilinx) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-3 Linux kernel (Raspberry Pi Real-time) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-4 Linux kernel (Raspberry Pi) vulnerabilities
Ubuntu USN Ubuntu USN USN-8492-5 Linux kernel (FIPS) vulnerabilities
Ubuntu USN Ubuntu USN USN-8606-1 Linux kernel (Azure) vulnerabilities
Ubuntu USN Ubuntu USN USN-8607-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8609-1 Linux kernel (Azure CVM) vulnerabilities
Ubuntu USN Ubuntu USN USN-8619-1 Linux kernel (HWE) vulnerabilities
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-674
CWE-795
Type Values Removed Values Added
Weaknesses CWE-911
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

Low

Type Values Removed Values Added
Weaknesses CWE-674
CWE-795
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
Weaknesses

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 6, 2026, 3:53 PM
Reserved
May 13, 2026, 3:03 PM
Status
Analyzed
Published
May 27, 2026, 2:17 PM
Modified
Nov 6, 2026, 4:18 PM
Severity
Low
Public date
May 27, 2026, 12:00 AM