CVE-2022-40540 Buffer copy without checking the size of input in Linux Kernel
A buffer overflow in the Linux kernel firmware loader allows attackers to execute arbitrary code or escalate privileges on Android devices.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2022-40540?
CVE-2022-40540 is a high-severity memory corruption vulnerability in Qualcomm Sd888 5g Firmware, published on 7 Mar 2023. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
Memory corruption due to buffer copy without checking the size of input while loading firmware in Linux Kernel.
Weakness: CWE-120
Which versions are affected by CVE-2022-40540?
It affects 16 products.
Products include Qualcomm Sd888 5g Firmware, Qualcomm Sd 8 Gen1 5g Firmware, Qualcomm Sw5100 Firmware, Qualcomm Sw5100p Firmware, Qualcomm Wcd9380 Firmware, Qualcomm Wcd9385 Firmware and 10 more.
How do I fix CVE-2022-40540?
Apply the vendor's patch.
Upgrade to the fixed version. Memory-safe languages, compiler hardening and fuzzing prevent most new cases. More about Memory corruption.
Is CVE-2022-40540 being exploited?
There is no known exploitation of CVE-2022-40540 in the wild and no public exploit code.
Other vulnerabilities in Qualcomm Sd888 5g Firmware
Sources
Also known as 3280498, A-261470730, ASB-A-261470730, GHSA-58jw-58x8-342p.