Lucene search

K
cvelistLinuxCVELIST:CVE-2022-48777
HistoryJul 16, 2024 - 11:13 a.m.

CVE-2022-48777 mtd: parsers: qcom: Fix kernel panic on skipped partition

2024-07-1611:13:15
Linux
www.cve.org
7
linux kernel
mtd parsers
qcom
kernel panic
skipped partition
vulnerability

EPSS

0

Percentile

5.0%

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

mtd: parsers: qcom: Fix kernel panic on skipped partition

In the event of a skipped partition (case when the entry name is empty)
the kernel panics in the cleanup function as the name entry is NULL.
Rework the parser logic by first checking the real partition number and
then allocate the space and set the data for the valid partitions.

The logic was also fundamentally wrong as with a skipped partition, the
parts number returned was incorrect by not decreasing it for the skipped
partitions.

CNA Affected

[
  {
    "product": "Linux",
    "vendor": "Linux",
    "defaultStatus": "unaffected",
    "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
    "programFiles": [
      "drivers/mtd/parsers/qcomsmempart.c"
    ],
    "versions": [
      {
        "version": "803eb124e1a6",
        "lessThan": "eb03cb6e03ff",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "803eb124e1a6",
        "lessThan": "a2995fe23095",
        "status": "affected",
        "versionType": "git"
      },
      {
        "version": "803eb124e1a6",
        "lessThan": "65d003cca335",
        "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/mtd/parsers/qcomsmempart.c"
    ],
    "versions": [
      {
        "version": "5.12",
        "status": "affected"
      },
      {
        "version": "0",
        "lessThan": "5.12",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.15.25",
        "lessThanOrEqual": "5.15.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.16.11",
        "lessThanOrEqual": "5.16.*",
        "status": "unaffected",
        "versionType": "custom"
      },
      {
        "version": "5.17",
        "lessThanOrEqual": "*",
        "status": "unaffected",
        "versionType": "original_commit_for_fix"
      }
    ]
  }
]