CVE-2022-48777

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

State
Published
Severity
Not scored
Published
Jul 16, 2024
Updated
May 11, 2026
Reserved
Jun 20, 2024

Read the record on cve.org

Description

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • 803eb124e1a64e42888542c3444bfe6dac412c7f to before eb03cb6e03ffd9173e18e5fe87e4e3ce83820453Affected
  • 803eb124e1a64e42888542c3444bfe6dac412c7f to before a2995fe23095ceda2dc382fbe057f5e164595548Affected
  • 803eb124e1a64e42888542c3444bfe6dac412c7f to before 65d003cca335cabc0160d3cd7daa689eaa9dd3cdAffected
LinuxLinux
  • 5.12Affected
  • before 5.12Not affected
  • 5.15.25 through 5.15.*Not affected
  • 5.16.11 through 5.16.*Not affected
  • 5.17 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.