CVE-2022-50268

mmc: moxart: 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: moxart: 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.

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.21b66e94e6b9995323190f31c51d8e1a6f516627e3.16
Vendor states this is fixed in 0ca18d09c744fb030ae9bc5836c3e357e0237dea (fixed)
Vendor states this is fixed in 40aa73c70e8a5706f9cbe01409a5e51cc0f1750e (fixed)
Vendor states this is fixed in 7c3b301ca8b0cab392c71da8fcdfa499074f8e97 (fixed)
Vendor states this is fixed in 8f8bb62c7c5c833758ef1563fe738afd579c3efe (fixed)
Vendor states this is fixed in a4c765f5d8e58138cff69f1510b2e8942ec37022 (fixed)
Vendor states this is fixed in a94d466f31a5201995d39bc1208e2c09ab04f0bf (fixed)
Vendor states this is fixed in b174f2b36c638fc7737df6c8aac1889a646be98f (fixed)
Vendor states this is fixed in c7e9a2059fb943fc3c3fa12261518fd72a0fc136 (fixed)
Vendor states this is fixed in f0502fe86a2db2336c9498d2de3e97f22dcf85ae (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/0ca18d09c744fb030ae9bc5836c3e357e0237dea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/40aa73c70e8a5706f9cbe01409a5e51cc0f1750e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/7c3b301ca8b0cab392c71da8fcdfa499074f8e97
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/8f8bb62c7c5c833758ef1563fe738afd579c3efe
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a4c765f5d8e58138cff69f1510b2e8942ec37022
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a94d466f31a5201995d39bc1208e2c09ab04f0bf
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/b174f2b36c638fc7737df6c8aac1889a646be98f
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/c7e9a2059fb943fc3c3fa12261518fd72a0fc136

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