CVE-2023-52708

mmc: mmc_spi: fix error handling in mmc_spi_probe()

State
Published
Severity
Not scored
Published
May 21, 2024
Updated
May 11, 2026
Reserved
Mar 7, 2024

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

mmc: mmc_spi: fix error handling in mmc_spi_probe()

If mmc_add_host() fails, it doesn't need to call mmc_remove_host(), or it will cause null-ptr-deref, because of deleting a not added device in mmc_remove_host().

To fix this, goto label 'fail_glue_init', if mmc_add_host() fails, and change the label 'fail_add_host' to 'fail_gpiod_request'.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 to before e9b488d60f51ae312006e224e03a30a151c28bddAffected
  • 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 to before 0b3edcb24bd81b3b2e3dac89f4733bfd47d283beAffected
  • 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 to before ecad2fafd424ffdc203b2748ded0b37e4bbecef3Affected
  • 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 to before 82645bf4ed02abe930a659c5fe16d593a6dbd93fAffected
  • 15a0580ced081a0f7dc2deea8a4812bdc5e9a109 to before cf4c9d2ac1e42c7d18b921bec39486896645b714Affected
LinuxLinux
  • 2.6.24Affected
  • before 2.6.24Not affected
  • 5.4.232 through 5.4.*Not affected
  • 5.10.169 through 5.10.*Not affected
  • 5.15.95 through 5.15.*Not affected
  • 6.1.13 through 6.1.*Not affected
  • 6.2 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.