Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-38541
HistoryJun 19, 2024 - 1:35 p.m.

CVE-2024-38541 of: module: add buffer overflow check in of_modalias()

2024-06-1913:35:16
Linux
github.com
linux kernel
vulnerability
resolution
buffer overflow check
of_modalias
snprintf
strlen

7.4 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

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

of: module: add buffer overflow check in of_modalias()

In of_modalias(), if the buffer happens to be too small even for the 1st
snprintf() call, the len parameter will become negative and str parameter
(if not NULL initially) will point beyond the buffer’s end. Add the buffer
overflow check after the 1st snprintf() call and fix such check after the
strlen() call (accounting for the terminating NUL char).

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/of/module.c"
    ],
    "versions": [
      {
        "version": "bc575064d688",
        "lessThan": "0b0d5701a8bf",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bc575064d688",
        "lessThan": "ee332023adfd",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bc575064d688",
        "lessThan": "e45b69360a63",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "bc575064d688",
        "lessThan": "cf7385cb26ac",
        "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/of/module.c"
    ],
    "versions": [
      {
        "version": "4.14",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "4.14",
        "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"
      }
    ]
  }
]

7.4 High

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.7%

Related for VULNRICHMENT:CVE-2024-38541