CVE-2022-48973

gpio: amd8111: Fix PCI device reference count leak

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 08:05 PM UTC
Updated: June 17, 2026 at 05:16 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.2%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: gpio: amd8111: Fix PCI device reference count leak for_each_pci_dev() is implemented by pci_get_device(). The comment of pci_get_device() says that it will increase the reference count for the returned pci_dev and also decrease the reference count for the input pci_dev @from if it is not NULL. If we break for_each_pci_dev() loop with pdev not NULL, we need to call pci_dev_put() to decrease the reference count. Add the missing pci_dev_put() after the 'out' label. Since pci_dev_put() can handle NULL input parameter, there is no problem for the 'Device not found' branch. For the normal path, add pci_dev_put() in amd_gpio_exit().

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

3.6 ≤ v < 4.14.3023.6 ≤ v < 4.19.2693.6 ≤ v < 4.9.3363.6 ≤ v < 5.10.1593.6 ≤ v < 5.15.833.6 ≤ v < 5.4.2273.6 ≤ v < 6.0.133.6 ≤ v < 6.14.10 ≤ v < 4.14.3024.15 ≤ v < 4.19.2694.20 ≤ v < 5.4.2275.11 ≤ v < 5.15.835.16 ≤ v < 6.0.135.5 ≤ v < 5.10.1596.1 rc16.1 rc26.1 rc36.1 rc46.1 rc56.1 rc66.1 rc76.1 rc8f942a7de047d8c599cc1a9a26293c8c7400450ea
Vendor states this is fixed in 4271515f189bd5fe2ec86b4089dab7cb804625d2 (fixed)
Vendor states this is fixed in 45fecdb9f658d9c82960c98240bc0770ade19aca (fixed)
Vendor states this is fixed in 4749c5cc147c9860b96db1e71cc36d1de1bd3f59 (fixed)
Vendor states this is fixed in 48bd5d3801f6b67cc144449d434abbd5043a6d37 (fixed)
Vendor states this is fixed in 5ee6413d3dd972930af787b2c0c7aaeb379fa521 (fixed)
Vendor states this is fixed in 71d591ef873f9ebb86cd8d053b3caee785b2de6a (fixed)
Vendor states this is fixed in b2bc053ebbba57a06fa655db5ea796de2edce445 (fixed)
Vendor states this is fixed in e364ce04d8f840478b09eee57b614de7cf1e743e (fixed)
Vendor states this is fixed in 3.6 (unaffected)
Vendor states this is fixed in 4.14.302 (unaffected)
Vendor states this is fixed in 4.19.269 (unaffected)
Vendor states this is fixed in 4.9.336 (unaffected)
Vendor states this is fixed in 5.10.159 (unaffected)
Vendor states this is fixed in 5.15.83 (unaffected)
Vendor states this is fixed in 5.4.227 (unaffected)
Vendor states this is fixed in 6.0.13 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (8)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4271515f189bd5fe2ec86b4089dab7cb804625d2
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/45fecdb9f658d9c82960c98240bc0770ade19aca
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4749c5cc147c9860b96db1e71cc36d1de1bd3f59
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/48bd5d3801f6b67cc144449d434abbd5043a6d37
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5ee6413d3dd972930af787b2c0c7aaeb379fa521
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/71d591ef873f9ebb86cd8d053b3caee785b2de6a
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b2bc053ebbba57a06fa655db5ea796de2edce445
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e364ce04d8f840478b09eee57b614de7cf1e743e

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusANALYZED
CWE
NVD-CWE-Other

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card