Lucene search

K
cvelistLinuxCVELIST:CVE-2024-36019
HistoryMay 30, 2024 - 2:59 p.m.

CVE-2024-36019 regmap: maple: Fix cache corruption in regcache_maple_drop()

2024-05-3014:59:42
Linux
www.cve.org
2
linux kernel
vulnerability
resolved
cache corruption
regmap
maple
regcache_maple_drop
code indexing
out-of-bounds access
kernel memory
kunit test

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.8%

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

regmap: maple: Fix cache corruption in regcache_maple_drop()

When keeping the upper end of a cache block entry, the entry[] array
must be indexed by the offset from the base register of the block,
i.e. max - mas.index.

The code was indexing entry[] by only the register address, leading
to an out-of-bounds access that copied some part of the kernel
memory over the cache contents.

This bug was not detected by the regmap KUnit test because it only
tests with a block of registers starting at 0, so mas.index == 0.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/base/regmap/regcache-maple.c"
    ],
    "versions": [
      {
        "version": "f033c26de5a5",
        "lessThan": "3af6c5ac72dc",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f033c26de5a5",
        "lessThan": "51c4440b9d3f",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "f033c26de5a5",
        "lessThan": "00bb549d7d63",
        "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/base/regmap/regcache-maple.c"
    ],
    "versions": [
      {
        "version": "6.4",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "6.4",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.6.26",
        "lessThanOrEqual": "6.6.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.8.5",
        "lessThanOrEqual": "6.8.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "6.9",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]

6.7 Medium

AI Score

Confidence

Low

0.0004 Low

EPSS

Percentile

15.8%