CVE-2022-50540

Source
https://cve.org/CVERecord?id=CVE-2022-50540
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50540.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2022-50540
Downstream
Published
2025-10-07T15:21:05Z
Modified
2026-08-12T03:30:19Z
Summary
dmaengine: qcom-adm: fix wrong sizeof config in slave_config
Details

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.

Database specific
{
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50540.json"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
03de6b273805b3c552ff158f8688555937375926
Fixed
f1dd45a6585a1689e1e8906b3f9e302b9d40c715
Fixed
7490274b41a432824f7df5071ace3df2ab59caa7
Fixed
7c8765308371be30f50c1b5b97618b731514b207

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50540.json"

Linux / Kernel

Package

Name
Kernel

Affected ranges

Type
ECOSYSTEM
Events
Introduced
5.17.0
Fixed
5.19.17
Type
ECOSYSTEM
Events
Introduced
5.20.0
Fixed
6.0.3

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2022-50540.json"