CVE-2022-50769

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

N/A
Published: December 24, 2025 at 01:05 PM UTC
Updated: June 17, 2026 at 05:24 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
N/A
Exploit prediction
EPSS 0.3%

Description

In the Linux kernel, the following vulnerability has been resolved: mmc: mxcmmc: 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().

Affected

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

2.6.29 ≤ v < 4.14.3032.6.29 ≤ v < 4.19.2702.6.29 ≤ v < 4.9.3372.6.29 ≤ v < 5.10.1632.6.29 ≤ v < 5.15.862.6.29 ≤ v < 5.4.2292.6.29 ≤ v < 6.0.162.6.29 ≤ v < 6.1.22.6.29 ≤ v < 6.22.6.29d96be879ff469759af6d7fcebdb66237c18da6f8
Vendor states this is fixed in 1cf0c1e58738b97e2de207846105b6a5d46622ee (fixed)
Vendor states this is fixed in 2d496050ded83b13b16f05e1fc0329b0210d2493 (fixed)
Vendor states this is fixed in 32eb502c972dfc34413c9147418b3d94d870c2b8 (fixed)
Vendor states this is fixed in 3904eb97bb78fdca3e16d30a38ce5697b9686110 (fixed)
Vendor states this is fixed in 5f35c038c9f4d258b3cf77885a2730f1417d63e7 (fixed)
Vendor states this is fixed in b8bdb3fd13d5cd1e86d22fd3f803a742fd88af89 (fixed)
Vendor states this is fixed in cde600af7b413c9fe03e85c58c4279df90e91d13 (fixed)
Vendor states this is fixed in d2ead18bc7cc166220cab5a744a05c5b69431a12 (fixed)
Vendor states this is fixed in d37474ab9a79149075f0823315c6d45dd983a78c (fixed)
Vendor states this is fixed in 2.6.29 (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)

Remediation

No guide yet

No remediation guidance has been written for this CVE yet, and no fixed version or vendor advisory is recorded against it.

References (9)

Quick Info

StatusDEFERRED

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