Lucene search

K
cvelistLinuxCVELIST:CVE-2024-33619
HistoryJun 21, 2024 - 10:18 a.m.

CVE-2024-33619 efi: libstub: only free priv.runtime_map when allocated

2024-06-2110:18:05
Linux
www.cve.org
linux kernel vulnerability
efi libstub
uninitialized value
free_pool
coverity static analysis security testing (sast)
synopsys
inc.

0.0004 Low

EPSS

Percentile

15.7%

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

efi: libstub: only free priv.runtime_map when allocated

priv.runtime_map is only allocated when efi_novamap is not set.
Otherwise, it is an uninitialized value. In the error path, it is freed
unconditionally. Avoid passing an uninitialized value to free_pool.
Free priv.runtime_map only when it was allocated.

This bug was discovered and resolved using Coverity Static Analysis
Security Testing (SAST) by Synopsys, Inc.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/firmware/efi/libstub/fdt.c"
    ],
    "versions": [
      {
        "version": "f80d26043af9",
        "lessThan": "b8938d6f570f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f80d26043af9",
        "lessThan": "9dce01f386c9",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f80d26043af9",
        "lessThan": "6ca67a5fe1c6",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f80d26043af9",
        "lessThan": "4b2543f7e1e6",
        "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/firmware/efi/libstub/fdt.c"
    ],
    "versions": [
      {
        "version": "6.1",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.1",
        "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.9.4",
        "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-33619