Lucene search

K
cvelistLinuxCVELIST:CVE-2024-36890
HistoryMay 30, 2024 - 3:28 p.m.

CVE-2024-36890 mm/slab: make __free(kfree) accept error pointers

2024-05-3015:28:57
Linux
www.cve.org
cve-2024-36890
linux kernel
mm/slab
error pointers
auto clean up
wm831x_gpio_dbg_show

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%

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

mm/slab: make __free(kfree) accept error pointers

Currently, if an automatically freed allocation is an error pointer that
will lead to a crash. An example of this is in wm831x_gpio_dbg_show().

171 char *label __free(kfree) = gpiochip_dup_line_label(chip, i);
172 if (IS_ERR(label)) {
173 dev_err(wm831x->dev, “Failed to duplicate label\n”);
174 continue;
175 }

The auto clean up function should check for error pointers as well,
otherwise we’re going to keep hitting issues like this.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/slab.h"
    ],
    "versions": [
      {
        "version": "3c6cc62ce126",
        "lessThan": "9f6eb0ab4f95",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "54da6a092431",
        "lessThan": "ac6cf3ce9b7d",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "54da6a092431",
        "lessThan": "79cbe0be6c03",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "54da6a092431",
        "lessThan": "cd7eb8f83fcf",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "include/linux/slab.h"
    ],
    "versions": [
      {
        "version": "6.5",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.5",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.91",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.31",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.10",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.4 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.6%