Lucene search

K
cvelistLinuxCVELIST:CVE-2024-36957
HistoryMay 30, 2024 - 3:35 p.m.

CVE-2024-36957 octeontx2-af: avoid off-by-one read from userspace

2024-05-3015:35:50
Linux
www.cve.org
8
linux kernel
vulnerability
off-by-one
userspace
memdup_user
memdup_user_nul

AI Score

7.5

Confidence

High

EPSS

0

Percentile

10.3%

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

octeontx2-af: avoid off-by-one read from userspace

We try to access count + 1 byte from userspace with memdup_user(buffer,
count + 1). However, the userspace only provides buffer of count bytes and
only these count bytes are verified to be okay to access. To ensure the
copied buffer is NUL terminated, we use memdup_user_nul instead.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c"
    ],
    "versions": [
      {
        "version": "dae49384d0d7",
        "lessThan": "bcdac70adceb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a2eb515d136",
        "lessThan": "ec697fbd38cb",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a2eb515d136",
        "lessThan": "8f11fe3ea3fc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a2eb515d136",
        "lessThan": "0a0285cee11c",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a2eb515d136",
        "lessThan": "fc3e0076c1f8",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "3a2eb515d136",
        "lessThan": "f299ee709fb4",
        "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/net/ethernet/marvell/octeontx2/af/rvu_debugfs.c"
    ],
    "versions": [
      {
        "version": "5.12",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.12",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.10.217",
        "lessThanOrEqual": "5.10.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.159",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.1.91",
        "lessThanOrEqual": "6.1.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.31",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.10",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]