NULL pointer dereference in Linux

CVE-2023-52708

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'.

Published · last modified .

CVSS v3 metric

CVSS v3 base score 5.5 (Medium). Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H.

EPSS exploit prediction

EPSS 0.003, 16.4th percentile (last changed ); unchanged over 30 days. About EPSS.

Affected products

  • Linux — versions 15a0580ced081a0f7dc2deea8a4812bdc5e9a109, 2.6.24, 0
  • Linux Kernel — versions 6.2

Weakness classification (CWE)

References