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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.22%, higher than 14% of CVEs (2026-12-01)
- Published: 2024-07-16T11:13:15.869Z
- Modified: 2026-06-17T05:16:10.220Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 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 *)
- linux linux_kernel: from 5.12 before 5.12.25; from 5.16 before 5.16.11

## References

- <https://git.kernel.org/stable/c/eb03cb6e03ffd9173e18e5fe87e4e3ce83820453> (mailing-list, patch)
- <https://git.kernel.org/stable/c/a2995fe23095ceda2dc382fbe057f5e164595548> (mailing-list, patch)
- <https://git.kernel.org/stable/c/65d003cca335cabc0160d3cd7daa689eaa9dd3cd> (mailing-list, patch)

## Sources

- CVE List: [CVE-2022-48777](https://www.cve.org/CVERecord?id=CVE-2022-48777), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-48777](https://nvd.nist.gov/vuln/detail/CVE-2022-48777), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-48777 · Whole record: https://cve.day/CVE-2022-48777.json · Rebuilt by cve.day 2026-11-25T22:58:19.875Z
