CVE-2026-139503

PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()

When an AER error occurs, candidate error-source devices are added to
e_info->dev[] by add_error_device(), which takes a reference with
pci_dev_get().

A device can be recorded without any error status being present: the
Requester ID fast path in is_error_source(),

if (e_info->id == pci_dev_id(dev))
return true;

matches purely on the ID reported by the Root Port and returns true without
reading the device's AER status registers.

In aer_process_err_devices(), handle_error_source() is called only if
aer_get_device_error_info() returns non-zero, i.e. only if an unmasked
error status bit is actually set. It returns 0 if the device has become
inaccessible (status and mask both read as all ones, so
status & ~mask == 0) or if no unmasked status bit is set.

Because handle_error_source() was responsible for calling pci_dev_put(),
skipping it permanently leaks the reference taken in add_error_device().

Decouple reference lifetime from error handling by moving pci_dev_put() out
of handle_error_source() and into the aer_process_err_devices() loop, so
every recorded device is put exactly once.

handle_error_source() is static and aer_process_err_devices() is its only
caller, so no other path is affected.

Analysis

AI-generated

Technical impact

The vulnerability arises when an AER error triggers a missing pci_dev_put() call in aer_process_err_devices. This causes a reference that was taken with pci_dev_get() to not be released, creating a reference leak. The leak can accumulate over time, potentially exhausting kernel memory or causing instability, and represents a denial‑of‑service risk involving kernel resource exhaustion.

Affected Systems

The flaw exists in the Linux kernel source across all releases that have not incorporated the patch. No specific version numbers are listed, so any kernel built with the unpatched code path is considered affected.

Risk and Exploitability

Exact CVSS or EPSS values are not available and the issue is not listed in the CISA KEV catalog, making precise quantification difficult. However, exploitation requires triggering AER errors, typically through local or privileged access to the PCI subsystem. An attacker capable of repeatedly inducing AER errors could drain kernel resources and cause a denial of service. The risk is therefore moderate, and a patch should be applied promptly.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the latest Linux kernel patch that corrects the call to pci_dev_put() in aer_process_err_devices().
  • Until the patch is available, monitor kernel logs for frequent PCI AER errors and watch memory usage for growth indicative of a reference leak.
  • If immediate patching is not possible, consider disabling Advanced Error Reporting in the system BIOS/UEFI to reduce the likelihood of AER error generation.

Generated by OpenCVE AI on November 30, 2026 at 23:22 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-772
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices() When an AER error occurs, candidate error-source devices are added to e_info->dev[] by add_error_device(), which takes a reference with pci_dev_get(). A device can be recorded without any error status being present: the Requester ID fast path in is_error_source(), if (e_info->id == pci_dev_id(dev)) return true; matches purely on the ID reported by the Root Port and returns true without reading the device's AER status registers. In aer_process_err_devices(), handle_error_source() is called only if aer_get_device_error_info() returns non-zero, i.e. only if an unmasked error status bit is actually set. It returns 0 if the device has become inaccessible (status and mask both read as all ones, so status & ~mask == 0) or if no unmasked status bit is set. Because handle_error_source() was responsible for calling pci_dev_put(), skipping it permanently leaks the reference taken in add_error_device(). Decouple reference lifetime from error handling by moving pci_dev_put() out of handle_error_source() and into the aer_process_err_devices() loop, so every recorded device is put exactly once. handle_error_source() is static and aer_process_err_devices() is its only caller, so no other path is affected.
Title PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-772

    Missing Release of Resource after Effective Lifetime

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:35 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:19 PM
Modified
Nov 30, 2026, 2:19 PM