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

Summary

CVECVE-2026-139503
StatePUBLISHED
AssignerLinux
Source PriorityCVE Program / NVD first with legacy fallback
Published2026-11-30 14:19:25 UTC
Updated2026-11-30 14:19:25 UTC
DescriptionIn 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.

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 0f3e35695ac37ca2bee7f5667e7e25d0162c52cc git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 c760b60115731964ed4194230c48b28494b28d46 git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 9f17ba6c5cac3435796f484d9b469d77c32e69c3 git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 98e8a9f2963cfb490d9168196d4df1d32018ea82 git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 d4ab82ee6c7cc9dac2015b0ed3860c42b0293e87 git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 34c314689c5e4b9f5b4f0f954098143d5785b085 git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 f46caad2cbb5c168e474764a27244facf148251c git Not specified
CNA Linux Linux affected 60271ab044a53edb9dcbe76bebea2221c4ff04d9 e86ac10110d00e6c3801f38bde1863951315222b git Not specified
CNA Linux Linux affected f3f55d83ea0d7fa5dddfb5a51f3eb92345919da3 git Not specified
CNA Linux Linux affected 4.19.85 4.20 semver Not specified
CNA Linux Linux affected 4.20 Not specified
CNA Linux Linux unaffected 4.20 semver Not specified
CNA Linux Linux unaffected 5.10.275 5.10.* semver Not specified
CNA Linux Linux unaffected 5.15.226 5.15.* semver Not specified
CNA Linux Linux unaffected 6.1.193 6.1.* semver Not specified
CNA Linux Linux unaffected 6.6.163 6.6.* semver Not specified
CNA Linux Linux unaffected 6.12.119 6.12.* semver Not specified
CNA Linux Linux unaffected 6.18.65 6.18.* semver Not specified
CNA Linux Linux unaffected 7.3.6 7.3.* semver Not specified
CNA Linux Linux unaffected 7.4-rc1 * original_commit_for_fix Not specified

References

ReferenceSourceLinkTags
git.kernel.org/stable/c/f46caad2cbb5c168e474764a27244facf148251c 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/9f17ba6c5cac3435796f484d9b469d77c32e69c3 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/d4ab82ee6c7cc9dac2015b0ed3860c42b0293e87 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/c760b60115731964ed4194230c48b28494b28d46 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/34c314689c5e4b9f5b4f0f954098143d5785b085 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/e86ac10110d00e6c3801f38bde1863951315222b 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/98e8a9f2963cfb490d9168196d4df1d32018ea82 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
git.kernel.org/stable/c/0f3e35695ac37ca2bee7f5667e7e25d0162c52cc 416baaa9-dc9f-4396-8d5f-8c081fb06d67 git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report