{"id":"CVE-2022-50540","summary":"dmaengine: qcom-adm: fix wrong sizeof config in slave_config","details":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: qcom-adm: fix wrong sizeof config in slave_config\n\nFix broken slave_config function that uncorrectly compare the\nperipheral_size with the size of the config pointer instead of the size\nof the config struct. This cause the crci value to be ignored and cause\na kernel panic on any slave that use adm driver.\n\nTo fix this, compare to the size of the struct and NOT the size of the\npointer.","modified":"2026-04-11T12:44:57.963855Z","published":"2025-10-07T15:21:05.836Z","database_specific":{"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50540.json","cna_assigner":"Linux"},"references":[{"type":"WEB","url":"https://git.kernel.org/stable/c/7490274b41a432824f7df5071ace3df2ab59caa7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/7c8765308371be30f50c1b5b97618b731514b207"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f1dd45a6585a1689e1e8906b3f9e302b9d40c715"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/50xxx/CVE-2022-50540.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50540"},{"type":"PACKAGE","url":"https://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"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"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"}}],"schema_version":"1.7.5"}