CVE-2022-50353

mmc: wmt-sdmmc: fix return value check of mmc_add_host()

MEDIUM
5.5
CVSS Score
Published: September 17, 2025 at 02:56 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: wmt-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 goto error path which will call mmc_free_host(), besides, clk_disable_unprepare() also needs be called.

Affected

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

3.8 ≤ v < 4.14.3033.8 ≤ v < 4.19.2703.8 ≤ v < 5.10.1633.8 ≤ v < 5.15.863.8 ≤ v < 5.4.2293.8 ≤ v < 6.0.163.8 ≤ v < 6.1.23.8 ≤ v < 6.24.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.83a96dff0f828ae9dfb43efd49a9b67a74c6dc360
Vendor states this is fixed in 29276d56f6ed138db0f38cd31aedc0b725c8c76c (fixed)
Vendor states this is fixed in 58c3a8d0f1abeb1ca5c2df948be58ad4f7bb6f67 (fixed)
Vendor states this is fixed in 70b0620afab3c69d95a7e2dd7ceff162a21c4009 (fixed)
Vendor states this is fixed in 9bedf64dda84b29151e41591d8ded9ff0e6d336a (fixed)
Vendor states this is fixed in b40ac3b696a9c84b36211ef0c3f5a422650c101b (fixed)
Vendor states this is fixed in c7a328cea791cc2769b6417943939420913b4a46 (fixed)
Vendor states this is fixed in eb7a2d516d4fbd165c07877a20feccb047342b1f (fixed)
Vendor states this is fixed in ecd6f77af3478f5223aa4011642a891b7dc91228 (fixed)
Vendor states this is fixed in 3.8 (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 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)

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