What’s Vulnerable › Vulnerabilities

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

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

How to fix

Upgrade to a fixed version: Linux kernel 5.12.25, 5.16.11. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2022-48777 or the next vulnerability affects your stack