Lucene search

K
cvelistLinuxCVELIST:CVE-2024-38585
HistoryJun 19, 2024 - 1:37 p.m.

CVE-2024-38585 tools/nolibc/stdlib: fix memory error in realloc()

2024-06-1913:37:41
Linux
www.cve.org
1
cve-2024-38585
linux kernel
memory error

0.0004 Low

EPSS

Percentile

15.7%

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

tools/nolibc/stdlib: fix memory error in realloc()

Pass user_p_len to memcpy() instead of heap->len to prevent realloc()
from copying an extra sizeof(heap) bytes from beyond the allocated
region.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "tools/include/nolibc/stdlib.h"
    ],
    "versions": [
      {
        "version": "0e0ff638400b",
        "lessThan": "5996b2b2dac7",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0e0ff638400b",
        "lessThan": "f678c3c33655",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0e0ff638400b",
        "lessThan": "8019d3dd921f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0e0ff638400b",
        "lessThan": "4e6f225aefeb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "0e0ff638400b",
        "lessThan": "791f4641142e",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "tools/include/nolibc/stdlib.h"
    ],
    "versions": [
      {
        "version": "5.19",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.19",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.93",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.33",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.12",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.3",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10-rc1",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

0.0004 Low

EPSS

Percentile

15.7%

Related for CVELIST:CVE-2024-38585