CVE-2022-48777 mtd: parsers: qcom: Fix kernel panic on skipped partition
A null pointer dereference in the Linux kernel MTD parser causes a kernel panic when processing skipped partitions, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-48777?
CVE-2022-48777 is a medium-severity vulnerability in Linux kernel, published on 16 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official 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.
Weakness: CWE-476
Which versions are affected by CVE-2022-48777?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-48777?
Apply the vendor's patch.
Is CVE-2022-48777 being exploited?
There is no known exploitation of CVE-2022-48777 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-48777, GHSA-72v6-vmr5-v9qf, UBUNTU-CVE-2022-48777.