{"id":"CVE-2022-50721","aliases":["CVE-2022-50721"],"related":[],"kind":"vulnerability","state":"published","title":"dmaengine: qcom-adm: fix wrong calling convention for prep_slave_sg","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: qcom-adm: fix wrong calling convention for prep_slave_sg\n\nThe calling convention for pre_slave_sg is to return NULL on error and\nprovide an error log to the system. Qcom-adm instead provide error\npointer when an error occur. This indirectly cause kernel panic for\nexample for the nandc driver that checks only if the pointer returned by\ndevice_prep_slave_sg is not NULL. Returning an error pointer makes nandc\nthink the device_prep_slave_sg function correctly completed and makes\nthe kernel panics later in the code.\n\nWhile nandc is the one that makes the kernel crash, it was pointed out\nthat the real problem is qcom-adm not following calling convention for\nthat function.\n\nTo fix this, drop returning error pointer and return NULL with an error\nlog.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndmaengine: qcom-adm: fix wrong calling convention for prep_slave_sg\n\nThe calling convention for pre_slave_sg is to return NULL on error and\nprovide an error log to the system. Qcom-adm instead provide error\npointer when an error occur. This indirectly cause kernel panic for\nexample for the nandc driver that checks only if the pointer returned by\ndevice_prep_slave_sg is not NULL. Returning an error pointer makes nandc\nthink the device_prep_slave_sg function correctly completed and makes\nthe kernel panics later in the code.\n\nWhile nandc is the one that makes the kernel crash, it was pointed out\nthat the real problem is qcom-adm not following calling convention for\nthat function.\n\nTo fix this, drop returning error pointer and return NULL with an error\nlog.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ndmaengine: qcom-adm: corregir convención de llamada incorrecta para prep_slave_sg\n\nLa convención de llamada para pre_slave_sg es devolver NULL en caso de error y proporcionar un registro de error al sistema. Qcom-adm en su lugar proporciona un puntero de error cuando ocurre un error. Esto causa indirectamente un pánico del kernel, por ejemplo, para el controlador nandc que solo verifica si el puntero devuelto por device_prep_slave_sg no es NULL. Devolver un puntero de error hace que nandc piense que la función device_prep_slave_sg se completó correctamente y provoca pánicos del kernel más tarde en el código.\n\nSi bien nandc es el que provoca el fallo del kernel, se señaló que el problema real es que qcom-adm no sigue la convención de llamada para esa función.\n\nPara solucionar esto, se debe dejar de devolver un puntero de error y devolver NULL con un registro de error.","source":"nvd"}],"published":"2025-12-24T12:22:44.080Z","modified":"2026-11-10T12:10:00.177Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f","fixed":"5653bd0200944e5803fa8e32dc36aa49931312f9","status":"affected"},{"type":"git","introduced":"5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f","fixed":"9a041174c58a226e713f6cebd41eccec7a5cfa72","status":"affected"},{"type":"git","introduced":"5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f","fixed":"b9d2140c3badf4107973ad77c5a0ec3075705c85","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.11","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.11","status":"unaffected"},{"type":"semver","introduced":"5.19.17","lastAffected":"5.19.*","status":"unaffected"},{"type":"semver","introduced":"6.0.3","lastAffected":"6.0.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.1","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/5653bd0200944e5803fa8e32dc36aa49931312f9","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/9a041174c58a226e713f6cebd41eccec7a5cfa72","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b9d2140c3badf4107973ad77c5a0ec3075705c85","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-50721","url":"https://www.cve.org/CVERecord?id=CVE-2022-50721","licence":"CVE Terms of Use","modified":"2026-05-11T19:24:13.986Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-50721","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-50721","licence":"Public domain","modified":"2026-11-10T12:10:00.177Z"}],"updatedAt":"2026-11-25T22:58:21.333Z","epss":{"score":0.00252,"percentile":0.17811,"date":"2026-12-01T12:00:22.000Z"}}