Linux kernel PCI/AER leaks struct pci_dev reference in aer_process_err_devices()
Key facts
- Attack vector
- —
- Privileges required
- —
- User interaction
- —
- Attack complexity
- —
- Impact type
- —
- Confidentiality · integrity · availability
- —
- Fix status
- Fixed
No CVSS vector from any source. Fix status from CNA.
Summary
The Linux kernel's AER error handling in aer_process_err_devices() leaks a struct pci_dev reference. add_error_device() takes a reference with pci_dev_get() for each candidate error-source device, but is_error_source() can record a device by Requester ID alone, with no error status set. handle_error_source(), which previously called pci_dev_put(), is skipped when aer_get_device_error_info() returns 0, so the reference is never released.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
Description from the CNA
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.
Why it matters now
SSVC decision points
Not available: CISA has not published SSVC decision points for this record.
Affected products
Remediation
Install a kernel with the fix: 4.20 or later for the 4.19.85 to pre-4.20 range, or the fixed releases 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6 or 7.4-rc1 on their stable branches. The fix moves pci_dev_put() out of handle_error_source() and into the aer_process_err_devices() loop, so each recorded device is released exactly once.
Written with Claude Haiku 5.5 from the sources below · 2026-11-30
- Fix · CNA Linux (Linux) Fixed in 4.20
- Fix · CNA Linux (Linux) Fixed in 5.10.275, 5.15.226, 6.1.193, 6.6.163, 6.12.119, 6.18.65, 7.3.6, 7.4-rc1
Timeline
- 2026-11-30 Threatist record created from CVE-2026-139503
- 2026-11-30 Alias added: GHSA-h5w9-q29h-g2hw
References
Other 8
- https://git.kernel.org/stable/c/0f3e35695ac37ca2bee7f5667e7e25d0162c52cc
- https://git.kernel.org/stable/c/c760b60115731964ed4194230c48b28494b28d46
- https://git.kernel.org/stable/c/9f17ba6c5cac3435796f484d9b469d77c32e69c3
- https://git.kernel.org/stable/c/98e8a9f2963cfb490d9168196d4df1d32018ea82
- https://git.kernel.org/stable/c/d4ab82ee6c7cc9dac2015b0ed3860c42b0293e87
- https://git.kernel.org/stable/c/34c314689c5e4b9f5b4f0f954098143d5785b085
- https://git.kernel.org/stable/c/f46caad2cbb5c168e474764a27244facf148251c
- https://git.kernel.org/stable/c/e86ac10110d00e6c3801f38bde1863951315222b
More Linux vulnerabilities
- TI-2025-26358 Zero-length TLS records mishandled on rx_list in Linux kernel KEVCVSS 3.1CRITICAL 9.8
- TI-2026-38352 Out-of-bounds write in Linux kernel ebtables SNAT ARP rewrite KEVCVSS 3.1HIGH 8.8
- TI-2021-02452 Overlayfs flaw in Linux kernel lets attackers gain elevated privileges KEVCVSS 3.1HIGH 8.8
- TI-2013-05264 Missing address checks in Linux kernel get_user and put_user on ARM KEVCVSS 3.1HIGH 8.8
- TI-2022-00125 Heap overflow in Linux kernel lets local users escalate privileges KEVCVSS 3.1HIGH 8.4
- TI-2013-01864 Wrong integer type in Linux kernel perf_swevent_init KEVCVSS 3.1HIGH 8.4
Sources
- CVE-2026-139503 · CVE Program
- CVE-2026-139503 · NVD
- GHSA-h5w9-q29h-g2hw · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences