CVE-2022-48777
JSON

5.5medium

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

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.22% (higher than 14% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Linux

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.

Affected

Product or packageVersionsReported by
Linux Linuxfrom 803eb124e1a64e42888542c3444bfe6dac412c7f before eb03cb6e03ffd9173e18e5fe87e4e3ce83820453, from 803eb124e1a64e42888542c3444bfe6dac412c7f before a2995fe23095ceda2dc382fbe057f5e164595548, from 803eb124e1a64e42888542c3444bfe6dac412c7f before 65d003cca335cabc0160d3cd7daa689eaa9dd3cd, 5.12
Not affected: before 5.12, from 5.15.25 up to 5.15.*, from 5.16.11 up to 5.16.*, from 5.17 up to *
CVE List
linux linux_kernelfrom 5.12 before 5.12.25, from 5.16 before 5.16.11NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: mtd: parsers: qcom: corrige el pánico del kernel en la partición omitida En el caso de una partición omitida (caso cuando el nombre de la entrada está vacío), el kernel entra en pánico en la función de limpieza como el nombre la entrada es NULA. Vuelva a trabajar la lógica del analizador verificando primero el número de partición real y luego asigne el espacio y configure los datos para las particiones válidas. La lógica también era fundamentalmente errónea, ya que con una partición omitida, el número de pieza devuelto era incorrecto al no disminuirlo para las particiones omitidas.

References

Sources

SourceRecordLicence
CVE ListCVE-2022-48777 changed 2026-05-11CVE Terms of Use
NVDCVE-2022-48777 changed 2026-06-17Public domain