Lucene search

K
vulnrichmentLinuxVULNRICHMENT:CVE-2021-46965
HistoryFeb 27, 2024 - 6:47 p.m.

CVE-2021-46965 mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

2024-02-2718:47:03
Linux
github.com
4
linux kernel
vulnerability
mtd physmap
stack access
type u32
code
byte offset
coverity id
out-of-bounds access
security fix

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial

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

mtd: physmap: physmap-bt1-rom: Fix unintentional stack access

Cast &data to (char *) in order to avoid unintentionally accessing
the stack.

Notice that data is of type u32, so any increment to &data
will be in the order of 4-byte chunks, and this piece of code
is actually intended to be a byte offset.

Addresses-Coverity-ID: 1497765 (“Out-of-bounds access”)

CNA Affected

[
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "b3e79e7682e0",
        "lessThan": "34ec706bf0b7",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b3e79e7682e0",
        "lessThan": "4e4ebb827bf0",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b3e79e7682e0",
        "lessThan": "4d786870e326",
        "versionType": "git"
      },
      {
        "status": "affected",
        "version": "b3e79e7682e0",
        "lessThan": "683313993dbe",
        "versionType": "git"
      }
    ],
    "programFiles": [
      "drivers/mtd/maps/physmap-bt1-rom.c"
    ],
    "defaultStatus": "unaffected"
  },
  {
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "vendor": "Linux",
    "product": "Linux",
    "versions": [
      {
        "status": "affected",
        "version": "5.10"
      },
      {
        "status": "unaffected",
        "version": "0",
        "lessThan": "5.10",
        "versionType": "custom"
      },
      {
        "status": "unaffected",
        "version": "5.10.36",
        "versionType": "custom",
        "lessThanOrEqual": "5.10.*"
      },
      {
        "status": "unaffected",
        "version": "5.11.20",
        "versionType": "custom",
        "lessThanOrEqual": "5.11.*"
      },
      {
        "status": "unaffected",
        "version": "5.12.3",
        "versionType": "custom",
        "lessThanOrEqual": "5.12.*"
      },
      {
        "status": "unaffected",
        "version": "5.13",
        "versionType": "original_commit_for_fix",
        "lessThanOrEqual": "*"
      }
    ],
    "programFiles": [
      "drivers/mtd/maps/physmap-bt1-rom.c"
    ],
    "defaultStatus": "affected"
  }
]

AI Score

6.7

Confidence

Low

EPSS

0

Percentile

15.5%

SSVC

Exploitation

none

Automatable

no

Technical Impact

partial