Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2023-52708
HistoryMay 21, 2024 - 3:22 p.m.

CVE-2023-52708 mmc: mmc_spi: fix error handling in mmc_spi_probe()

2024-05-2115:22:55
Linux
github.com
linux kernel
mmc
spi

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/mmc/host/mmc_spi.c"
    ],
    "versions": [
      {
        "version": "15a0580ced08",
        "lessThan": "e9b488d60f51",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "15a0580ced08",
        "lessThan": "0b3edcb24bd8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "15a0580ced08",
        "lessThan": "ecad2fafd424",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "15a0580ced08",
        "lessThan": "82645bf4ed02",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "15a0580ced08",
        "lessThan": "cf4c9d2ac1e4",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/mmc/host/mmc_spi.c"
    ],
    "versions": [
      {
        "version": "2.6.24",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "2.6.24",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.4.232",
        "lessThanOrEqual": "5.4.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.169",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.95",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.13",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.2",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for VULNRICHMENT:CVE-2023-52708