CVE-2022-50653

published 9 Dec 2025 · updated 12 Nov 2026

mmc: atmel-mci: fix return value check of mmc_add_host()

5.0MediumEPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel cc8bb436f3c842a86b9082d97933582120d180e2, Kernel 00ac0f5f95920f003cd6ece53cdc759549b69118, Kernel 1925472dec31ec061d57412b3a65a056ea24f340 and 10 more.

In the Linux kernel, the following vulnerability has been resolved: mmc: atmel-mci: fix return value check of mmc_add_host() mmc_add_host() may return error, if we ignore its return value, it will lead two issues: 1. The memory that allocated in mmc_alloc_host() is leaked. 2. In the remove() path, mmc_remove_host() will be called to delete device, but it's not added yet, it will lead a kernel crash because of null-ptr-deref in device_del(). So fix this by checking the return value and calling mmc_free_host() in the error path.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=7d2be0749a59096a334c94dc48f43294193cb8ed <cc8bb436f3c842a86b9082d97933582120d180e2, >=7d2be0749a59096a334c94dc48f43294193cb8ed <00ac0f5f95920f003cd6ece53cdc759549b69118, >=7d2be0749a59096a334c94dc48f43294193cb8ed <1925472dec31ec061d57412b3a65a056ea24f340, >=7d2be0749a59096a334c94dc48f43294193cb8ed <6bb26abb92f25e582a0976091a10b539fe3796db, >=7d2be0749a59096a334c94dc48f43294193cb8ed <85946ceb0fac20ab39cdb85333086daf0291a553, >=7d2be0749a59096a334c94dc48f43294193cb8ed <99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2, >=7d2be0749a59096a334c94dc48f43294193cb8ed <9e6e8c43726673ca2abcaac87640b9215fd72f4c, =2.6.27cc8bb436f3c842a86b9082d97933582120d180e2, 00ac0f5f95920f003cd6ece53cdc759549b69118, 1925472dec31ec061d57412b3a65a056ea24f340, 6bb26abb92f25e582a0976091a10b539fe3796db, 85946ceb0fac20ab39cdb85333086daf0291a553, 99a6cdfa2cf05028b52f6d8ee85ccc5f8b71b4a2, 9e6e8c43726673ca2abcaac87640b9215fd72f4c
linux-kernel: Kernel>=4.20.0 <5.4.229, >=5.11.0 <5.15.86, >=5.16.0 <6.0.16, >=5.5.0 <5.10.163, >=6.1.0 <6.1.2, >=2.6.27 <4.19.2705.4.229, 5.15.86, 6.0.16, 5.10.163, 6.1.2, 4.19.270

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2022-50653 severity on Zeptric[![CVE-2022-50653](https://zeptric.io/badge/cve/CVE-2022-50653.svg)](https://zeptric.io/cve/CVE-2022-50653)