What’s Vulnerable › Vulnerabilities
CVE-2022-48777: mtd: parsers: qcom: Fix kernel panic on skipped partition
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.2% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2024-07-16 · updated 2026-06-17
- Weakness: CWE-476
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 products
- Linux kernel: from 5.12 before 5.12.25; from 5.16 before 5.16.11 — fixed in 5.12.25, 5.16.11
How to fix
Upgrade to a fixed version: Linux kernel 5.12.25, 5.16.11. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/65d003cca335cabc0160d3cd7daa689eaa9dd3cd
- https://git.kernel.org/stable/c/a2995fe23095ceda2dc382fbe057f5e164595548
- https://git.kernel.org/stable/c/eb03cb6e03ffd9173e18e5fe87e4e3ce83820453
- https://git.kernel.org/stable/c/65d003cca335cabc0160d3cd7daa689eaa9dd3cd
- https://git.kernel.org/stable/c/a2995fe23095ceda2dc382fbe057f5e164595548
- https://git.kernel.org/stable/c/eb03cb6e03ffd9173e18e5fe87e4e3ce83820453
Get alerted when CVE-2022-48777 or the next vulnerability affects your stack