CVE-2022-50347

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

MEDIUM
5.5
CVSS Score
Published: September 16, 2025 at 04:11 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%
SSVC
No known exploit

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: rtsx_usb_sdmmc: 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, besides, led_classdev_unregister() and pm_runtime_disable() also need be called.

Affected

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

3.16 ≤ v < 4.14.3033.16 ≤ v < 4.19.2703.16 ≤ v < 4.9.3373.16 ≤ v < 5.10.1633.16 ≤ v < 5.15.863.16 ≤ v < 5.4.2293.16 ≤ v < 6.0.163.16 ≤ v < 6.1.23.16 ≤ v < 6.24.10 ≤ v < 4.14.3034.15 ≤ v < 4.19.2704.20 ≤ v < 5.4.2295.11 ≤ v < 5.15.865.16 ≤ v < 6.0.165.5 ≤ v < 5.10.1636.1 ≤ v < 6.1.23.16c7f6558d84afe60016b8103c0737df6e376a1c2d
Vendor states this is fixed in 1491667d5450778a265eddddd294219acfd648cb (fixed)
Vendor states this is fixed in 7fa922c7a3dd623fd59f1af50e8896fd9ca7f654 (fixed)
Vendor states this is fixed in 89303ddbb502c3bc8edbf864f9f85500c8fe07e9 (fixed)
Vendor states this is fixed in 937112e991ed25d1727d878734adcbef3b900274 (fixed)
Vendor states this is fixed in a522e26a20a43dcfbef9ee9f71ed803290e852b0 (fixed)
Vendor states this is fixed in d7ad7278be401b09c9f9a9f522cf4c449c7fd489 (fixed)
Vendor states this is fixed in df683201c7ffbd21a806a7cad657b661c5ebfb6f (fixed)
Vendor states this is fixed in e598c9683fe1cf97c2b11b800cc3cee072108220 (fixed)
Vendor states this is fixed in fc38a5a10e9e5a75eb9189854abeb8405b214cc9 (fixed)
Vendor states this is fixed in 3.16 (unaffected)
Vendor states this is fixed in 4.14.303 (unaffected)
Vendor states this is fixed in 4.19.270 (unaffected)
Vendor states this is fixed in 4.9.337 (unaffected)
Vendor states this is fixed in 5.10.163 (unaffected)
Vendor states this is fixed in 5.15.86 (unaffected)
Vendor states this is fixed in 5.4.229 (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 (9)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1491667d5450778a265eddddd294219acfd648cb
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7fa922c7a3dd623fd59f1af50e8896fd9ca7f654
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/89303ddbb502c3bc8edbf864f9f85500c8fe07e9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/937112e991ed25d1727d878734adcbef3b900274
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a522e26a20a43dcfbef9ee9f71ed803290e852b0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/d7ad7278be401b09c9f9a9f522cf4c449c7fd489
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/df683201c7ffbd21a806a7cad657b661c5ebfb6f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/e598c9683fe1cf97c2b11b800cc3cee072108220

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

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

CVSS

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

Quick Info

StatusMODIFIED
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