mtd: parsers: qcom: Fix kernel panic on skipped partition
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.15.255.16.115.17In 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.
From the CVE record · Linux
The Linux kernel's Qualcomm MTD partition parser can panic during cleanup when it encounters a skipped partition with an empty name. Skipped partitions can also cause an incorrect partition count. The input does not specify an attacker access path, authentication requirement, or user interaction.
Engineers running Linux kernels that use the Qualcomm MTD partition parser should check their exposure; affected versions are not specified.