CVE-2022-50721 Details
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: qcom-adm: fix wrong calling convention for prep_slave_sg The calling convention for pre_slave_sg is to return NULL on error and provide an error log to the system. Qcom-adm instead provide error pointer when an error occur. This indirectly cause kernel panic for example for the nandc driver that checks only if the pointer returned by device_prep_slave_sg is not NULL. Returning an error pointer makes nandc think the device_prep_slave_sg function correctly completed and makes the kernel panics later in the code. While nandc is the one that makes the kernel crash, it was pointed out that the real problem is qcom-adm not following calling convention for that function. To fix this, drop returning error pointer and return NULL with an error log.
A vulnerability exists in the Linux kernel's Qcom ADM DMA engine driver, specifically in versions 5.11 and later. The issue arises because the driver does not adhere to the correct calling convention for the 'prep_slave_sg' function, which is to return NULL on error and log the error. Instead, it returns an error pointer. This miscommunication can indirectly cause a kernel panic, particularly with the NAND controller driver, which only checks if the returned pointer is not NULL. The NAND driver mistakenly interprets the erroneous pointer as a successful operation, leading to a crash later in the execution. While the NAND driver experiences the panic, the root cause is the Qcom ADM driver’s failure to follow the established calling convention.
The vulnerability has been addressed in the Linux kernel. Users should upgrade to the latest version where this issue has been fixed.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Dec 24, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://git.kernel.org/stable/c/5653bd0200944e5803fa8e32dc36aa49931312f9 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/9a041174c58a226e713f6cebd41eccec7a5cfa72 | kernel.org | Source CodeVendor |
| https://git.kernel.org/stable/c/b9d2140c3badf4107973ad77c5a0ec3075705c85 | kernel.org | Source CodeVendor |
Weakness Enumeration
No weakness enumeration is available for this CVE.
Affected Products
| Product | Versions |
|---|---|
| Linux kernel | >= 5.11, < 5.11.22 |
CPE
Remediation
| |
Change History
3 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Nov 10, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Dec 24, 2025 | New CVE Received | kernel.org |
Volerion