{"id":"CVE-2026-139503","aliases":["CVE-2026-139503"],"related":[],"kind":"vulnerability","state":"published","title":"PCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()\n\nWhen an AER error occurs, candidate error-source devices are added to\ne_info->dev[] by add_error_device(), which takes a reference with\npci_dev_get().\n\nA device can be recorded without any error status being present: the\nRequester ID fast path in is_error_source(),\n\n  if (e_info->id == pci_dev_id(dev))\n    return true;\n\nmatches purely on the ID reported by the Root Port and returns true without\nreading the device's AER status registers.\n\nIn aer_process_err_devices(), handle_error_source() is called only if\naer_get_device_error_info() returns non-zero, i.e. only if an unmasked\nerror status bit is actually set. It returns 0 if the device has become\ninaccessible (status and mask both read as all ones, so\nstatus & ~mask == 0) or if no unmasked status bit is set.\n\nBecause handle_error_source() was responsible for calling pci_dev_put(),\nskipping it permanently leaks the reference taken in add_error_device().\n\nDecouple reference lifetime from error handling by moving pci_dev_put() out\nof handle_error_source() and into the aer_process_err_devices() loop, so\nevery recorded device is put exactly once.\n\nhandle_error_source() is static and aer_process_err_devices() is its only\ncaller, so no other path is affected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nPCI/AER: Fix struct pci_dev reference leak in aer_process_err_devices()\n\nWhen an AER error occurs, candidate error-source devices are added to\ne_info->dev[] by add_error_device(), which takes a reference with\npci_dev_get().\n\nA device can be recorded without any error status being present: the\nRequester ID fast path in is_error_source(),\n\n  if (e_info->id == pci_dev_id(dev))\n    return true;\n\nmatches purely on the ID reported by the Root Port and returns true without\nreading the device's AER status registers.\n\nIn aer_process_err_devices(), handle_error_source() is called only if\naer_get_device_error_info() returns non-zero, i.e. only if an unmasked\nerror status bit is actually set. It returns 0 if the device has become\ninaccessible (status and mask both read as all ones, so\nstatus & ~mask == 0) or if no unmasked status bit is set.\n\nBecause handle_error_source() was responsible for calling pci_dev_put(),\nskipping it permanently leaks the reference taken in add_error_device().\n\nDecouple reference lifetime from error handling by moving pci_dev_put() out\nof handle_error_source() and into the aer_process_err_devices() loop, so\nevery recorded device is put exactly once.\n\nhandle_error_source() is static and aer_process_err_devices() is its only\ncaller, so no other path is affected.","source":"cvelist"}],"published":"2026-11-30T13:35:21.191Z","modified":"2026-11-30T14:19:25.797Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"0f3e35695ac37ca2bee7f5667e7e25d0162c52cc","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"c760b60115731964ed4194230c48b28494b28d46","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"9f17ba6c5cac3435796f484d9b469d77c32e69c3","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"98e8a9f2963cfb490d9168196d4df1d32018ea82","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"d4ab82ee6c7cc9dac2015b0ed3860c42b0293e87","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"34c314689c5e4b9f5b4f0f954098143d5785b085","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"f46caad2cbb5c168e474764a27244facf148251c","status":"affected"},{"type":"git","introduced":"60271ab044a53edb9dcbe76bebea2221c4ff04d9","fixed":"e86ac10110d00e6c3801f38bde1863951315222b","status":"affected"},{"type":"git","version":"f3f55d83ea0d7fa5dddfb5a51f3eb92345919da3","status":"affected"},{"type":"semver","introduced":"4.19.85","fixed":"4.20","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.20","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.20","status":"unaffected"},{"type":"semver","introduced":"5.10.275","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.226","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.193","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.163","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.119","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.65","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.3.6","lastAffected":"7.3.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.4-rc1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/0f3e35695ac37ca2bee7f5667e7e25d0162c52cc","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c760b60115731964ed4194230c48b28494b28d46","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9f17ba6c5cac3435796f484d9b469d77c32e69c3","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/98e8a9f2963cfb490d9168196d4df1d32018ea82","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4ab82ee6c7cc9dac2015b0ed3860c42b0293e87","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/34c314689c5e4b9f5b4f0f954098143d5785b085","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f46caad2cbb5c168e474764a27244facf148251c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e86ac10110d00e6c3801f38bde1863951315222b","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-139503","url":"https://www.cve.org/CVERecord?id=CVE-2026-139503","licence":"CVE Terms of Use","modified":"2026-11-30T13:35:21.191Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-139503","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139503","licence":"Public domain","modified":"2026-11-30T14:19:25.797Z"}],"updatedAt":"2026-11-30T14:33:27.059Z","epss":{"score":0.0022,"percentile":0.13278,"date":"2026-12-01T12:00:22.000Z"}}