{"id":"CVE-2022-50721","published":"2025-12-24T12:22:44Z","modified":"2026-05-11T19:24:13Z","title":"dmaengine: qcom-adm: fix wrong calling convention for prep_slave_sg","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00235,"percentile":0.14332,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/5653bd0200944e5803fa8e32dc36aa49931312f9","tags":[]},{"url":"https://git.kernel.org/stable/c/9a041174c58a226e713f6cebd41eccec7a5cfa72","tags":[]},{"url":"https://git.kernel.org/stable/c/b9d2140c3badf4107973ad77c5a0ec3075705c85","tags":[]}],"priority":{"score":2.9,"factors":[{"name":"EPSS percentile","points":2.87}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < 5653bd0200944e5803fa8e32dc36aa49931312f9",">= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < 9a041174c58a226e713f6cebd41eccec7a5cfa72",">= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < b9d2140c3badf4107973ad77c5a0ec3075705c85"]},{"vendor":"Linux","product":"Linux","versions":["5.11"]}],"euvd":{"id":"EUVD-2022-55768","exploited":false,"provenance":"source"}}