CVE-2022-50540 dmaengine: qcom-adm: fix wrong sizeof config in slave_config
A bug in the Qualcomm ADM DMA driver causes a kernel panic when configuring slave devices, leading to a 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-50540?
CVE-2022-50540 is a medium-severity vulnerability in Linux kernel, published on 7 Oct 2025. 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:
dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Fix broken slave_config function that uncorrectly compare the peripheral_size with the size of the config pointer instead of the size of the config struct. This cause the crci value to be ignored and cause a kernel panic on any slave that use adm driver.
To fix this, compare to the size of the struct and NOT the size of the pointer.
Which versions are affected by CVE-2022-50540?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2022-50540?
Apply the vendor's patch.
Is CVE-2022-50540 being exploited?
There is no known exploitation of CVE-2022-50540 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as DEBIAN-CVE-2022-50540, GHSA-ffvc-9m8c-74cw, UBUNTU-CVE-2022-50540.