Lucene search

K
cvelistLinuxCVELIST:CVE-2024-42235
HistoryAug 07, 2024 - 3:14 p.m.

CVE-2024-42235 s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()

2024-08-0715:14:25
Linux
www.cve.org
7
vulnerability
linux kernel
s390/mm
null pointer check
crst_table_free
base_crst_free
ptdescs
error handling.

EPSS

0

Percentile

5.0%

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

s390/mm: Add NULL pointer check to crst_table_free() base_crst_free()

crst_table_free() used to work with NULL pointers before the conversion
to ptdescs. Since crst_table_free() can be called with a NULL pointer
(error handling in crst_table_upgrade() add an explicit check.

Also add the same check to base_crst_free() for consistency reasons.

In real life this should not happen, since order two GFP_KERNEL
allocations will not fail, unless FAIL_PAGE_ALLOC is enabled and used.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/s390/mm/pgalloc.c"
    ],
    "versions": [
      {
        "version": "6326c26c1514",
        "lessThan": "794fa52b9463",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6326c26c1514",
        "lessThan": "f80bd8bb6f38",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "6326c26c1514",
        "lessThan": "b5efb63acf7b",
        "status": "affected",
        "versionType": "git"
      }
    ]
  },
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "affected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "arch/s390/mm/pgalloc.c"
    ],
    "versions": [
      {
        "version": "6.6",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.6",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.41",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9.10",
        "lessThanOrEqual": "6.9.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.10",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

EPSS

0

Percentile

5.0%