CVE-2022-50267

mmc: rtsx_pci: fix return value check of mmc_add_host()

MEDIUM
5.5
CVSS Score
Published: September 15, 2025 at 02:21 PM UTC
Updated: June 17, 2026 at 05:23 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: rtsx_pci: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, the memory that allocated in mmc_alloc_host() will be leaked and it will lead a kernel crash because of deleting not added device in the remove path. So fix this by checking the return value and calling mmc_free_host() in the error path, beside, runtime PM also needs be disabled.

Affected

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

3.8 ≤ v < 5.15.863.8 ≤ v < 6.0.163.8 ≤ v < 6.1.23.8 ≤ v < 6.25.16 ≤ v < 6.0.166.1 ≤ v < 6.1.23.8ff984e57d36e8ac468849a144a36f1c11f88b61c
Vendor states this is fixed in 0c87db77423a282b3b38b8a6daf057b822680516 (fixed)
Vendor states this is fixed in 30dc645461dfc63e52b3af8ee4a98e17bf14bacf (fixed)
Vendor states this is fixed in 5cd4e04eccaec140da6fa04db056a76282ee6852 (fixed)
Vendor states this is fixed in ffa9b2a79e3e959683efbad3f6db937eca9d38f5 (fixed)
Vendor states this is fixed in 3.8 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 6.0.16 (unaffected)
Vendor states this is fixed in 6.1.2 (unaffected)
Vendor states this is fixed in 6.2 (unaffected)

References (4)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/0c87db77423a282b3b38b8a6daf057b822680516
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/30dc645461dfc63e52b3af8ee4a98e17bf14bacf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5cd4e04eccaec140da6fa04db056a76282ee6852
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/ffa9b2a79e3e959683efbad3f6db937eca9d38f5

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-476

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