CVE-2022-48973: gpio: amd8111: Fix PCI device reference count leak

Published Oct 21, 2024
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

gpio: amd8111: Fix PCI device reference count leak

foreachpcidev() is implemented by pcigetdevice(). The comment of pcigetdevice() says that it will increase the reference count for the returned pcidev and also decrease the reference count for the input pcidev @from if it is not NULL.

If we break foreachpcidev() loop with pdev not NULL, we need to call pcidevput() to decrease the reference count. Add the missing pcidevput() after the 'out' label. Since pcidevput() can handle NULL input parameter, there is no problem for the 'Device not found' branch. For the normal path, add pcidevput() in amdgpioexit().

Affected Software

15 affected components
Linux Linux kernel>=3.6<4.9.336
Linux Linux kernel>=4.10<4.14.302
Linux Linux kernel>=4.15<4.19.269
Linux Linux kernel>=4.20<5.4.227
Linux Linux kernel>=5.5<5.10.159
Linux Linux kernel>=5.11<5.15.83
Linux Linux kernel>=5.16<6.0.13
Linux Linux kernel=6.1-rc1
Linux Linux kernel=6.1-rc2
Linux Linux kernel=6.1-rc3
Linux Linux kernel=6.1-rc4
Linux Linux kernel=6.1-rc5
Linux Linux kernel=6.1-rc6
Linux Linux kernel=6.1-rc7
Linux Linux kernel=6.1-rc8

Event History

Oct 21, 2024
CVE Published
via MITRE·08:05 PM
Data Sourced
via MITRE·08:05 PM
Description
Data Sourced
via NVD·08:15 PM
Description

Frequently Asked Questions

1

What is the severity of CVE-2022-48973?

CVE-2022-48973 has a moderate severity rating due to the potential for a PCI device reference count leak.

2

How do I fix CVE-2022-48973?

To fix CVE-2022-48973, you should update to the latest patched version of the Linux kernel that addresses this vulnerability.

3

What versions are affected by CVE-2022-48973?

CVE-2022-48973 affects multiple Linux kernel versions between 3.6 and 6.1 inclusive, except those patched for this vulnerability.

4

What kind of systems are at risk from CVE-2022-48973?

Systems running vulnerable versions of the Linux kernel are at risk from CVE-2022-48973, specifically those utilizing amd8111 GPIO.

5

Is there a workaround for CVE-2022-48973?

Currently, applying a patch to upgrade the affected Linux kernel version is the recommended solution for CVE-2022-48973.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203