# CVE-2022-50540: dmaengine: qcom-adm: fix wrong sizeof config in slave_config

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-07T15:21:05.836Z
- Modified: 2026-11-05T21:17:04.627Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 03de6b273805b3c552ff158f8688555937375926 before f1dd45a6585a1689e1e8906b3f9e302b9d40c715; from 03de6b273805b3c552ff158f8688555937375926 before 7490274b41a432824f7df5071ace3df2ab59caa7; from 03de6b273805b3c552ff158f8688555937375926 before 7c8765308371be30f50c1b5b97618b731514b207; 5.17 (not affected: before 5.17; from 5.19.17 up to 5.19.*; from 6.0.3 up to 6.0.*; from 6.1 up to *)
- linux linux_kernel: from 5.17 before 5.19.17; from 6.0 before 6.0.3

## References

- <https://git.kernel.org/stable/c/f1dd45a6585a1689e1e8906b3f9e302b9d40c715> (patch)
- <https://git.kernel.org/stable/c/7490274b41a432824f7df5071ace3df2ab59caa7> (patch)
- <https://git.kernel.org/stable/c/7c8765308371be30f50c1b5b97618b731514b207> (patch)

## Sources

- CVE List: [CVE-2022-50540](https://www.cve.org/CVERecord?id=CVE-2022-50540), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50540](https://nvd.nist.gov/vuln/detail/CVE-2022-50540), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50540 · Whole record: https://cve.day/CVE-2022-50540.json · Rebuilt by cve.day 2026-11-25T22:58:21.263Z
