CVE-2022-49787

mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put()

MEDIUM
5.5
CVSS Score
Published: May 1, 2025 at 02:09 PM UTC
Updated: June 17, 2026 at 05:19 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%

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: sdhci-pci: Fix possible memory leak caused by missing pci_dev_put() pci_get_device() will increase the reference count for the returned pci_dev. We need to use pci_dev_put() to decrease the reference count before amd_probe() returns. There is no problem for the 'smbus_dev == NULL' branch because pci_dev_put() can also handle the NULL input parameter case.

Affected

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

4.15 ≤ v < 4.19.2674.20 ≤ v < 5.4.2254.4 ≤ v < 4.14.3004.4 ≤ v < 4.19.2674.4 ≤ v < 5.10.1564.4 ≤ v < 5.15.804.4 ≤ v < 5.4.2254.4 ≤ v < 6.0.104.4 ≤ v < 6.15.11 ≤ v < 5.15.805.16 ≤ v < 6.0.105.5 ≤ v < 5.10.1564.46.1 rc16.1 rc26.1 rc36.1 rc46.1 rc5659c9bc114a810b3a3c1e50585cc57f1312a6d60
Vendor states this is fixed in 222cfa0118aa68687ace74aab8fdf77ce8fbd7e6 (fixed)
Vendor states this is fixed in 27f712cd47d65e14cd52cc32a23d42aeef583d5d (fixed)
Vendor states this is fixed in 35bca18092685b488003509fef7055aa2d4f2ebc (fixed)
Vendor states this is fixed in 4423866d31a06a810db22062ed13389416a66b22 (fixed)
Vendor states this is fixed in 5dbd6378dbf96787d6dbcca44156c511ae085ea3 (fixed)
Vendor states this is fixed in 7570e5b5419ffd34b6dc45a88c51e113a9a187e3 (fixed)
Vendor states this is fixed in a99a547658e5d451f01ed307426286716b6f01bf (fixed)
Vendor states this is fixed in 4.14.300 (unaffected)
Vendor states this is fixed in 4.19.267 (unaffected)
Vendor states this is fixed in 4.4 (unaffected)
Vendor states this is fixed in 5.10.156 (unaffected)
Vendor states this is fixed in 5.15.80 (unaffected)
Vendor states this is fixed in 5.4.225 (unaffected)
Vendor states this is fixed in 6.0.10 (unaffected)
Vendor states this is fixed in 6.1 (unaffected)

References (7)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/222cfa0118aa68687ace74aab8fdf77ce8fbd7e6
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/27f712cd47d65e14cd52cc32a23d42aeef583d5d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/35bca18092685b488003509fef7055aa2d4f2ebc
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/4423866d31a06a810db22062ed13389416a66b22
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5dbd6378dbf96787d6dbcca44156c511ae085ea3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7570e5b5419ffd34b6dc45a88c51e113a9a187e3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a99a547658e5d451f01ed307426286716b6f01bf

CVSS

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

Quick Info

StatusANALYZED
CWE
CWE-401

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