Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2024-36935
HistoryMay 30, 2024 - 3:29 p.m.

CVE-2024-36935 ice: ensure the copied buf is NUL terminated

2024-05-3015:29:24
Linux
github.com
1
linux kernel
vulnerability
resolved
buffer
nul terminated
oob read
memdup_user_nul

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.0%

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

ice: ensure the copied buf is NUL terminated

Currently, we allocate a count-sized kernel buffer and copy count bytes
from userspace to that buffer. Later, we use sscanf on this buffer but we
don’t ensure that the string is terminated inside the buffer, this can lead
to OOB read when using sscanf. Fix this issue by using memdup_user_nul
instead of memdup_user.

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "96a9a9341cda",
        "lessThan": "5ff4de981983",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "96a9a9341cda",
        "lessThan": "666854ea9cad",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/intel/ice/ice_debugfs.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "6.8"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "6.8",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "6.8.10",
        "versionType": "custom",
        "lessThanOrEqual": "6.8.*"
      },
      {
        "status": "unaffected",
        "version": "6.9",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/net/ethernet/intel/ice/ice_debugfs.c"
    ],
    "defaultStatus": "affected"
  }
]

6.9 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

9.0%

Related for VULNRICHMENT:CVE-2024-36935