# CVE-2022-50721: dmaengine: qcom-adm: fix wrong calling convention for prep\_slave\_sg

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.27% (percentile 13, 2026-11-28)
- **Published:** 2025-12-24T12:22:44.080Z
- **Modified:** 2026-11-10T12:10:00.177Z

## Who should check

- Anyone running Linux \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 5653bd0200944e5803fa8e32dc36aa49931312f9; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 9a041174c58a226e713f6cebd41eccec7a5cfa72; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< b9d2140c3badf4107973ad77c5a0ec3075705c85
- Anyone running Linux 5.11

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

## Affected and fixed versions

- Linux: \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 5653bd0200944e5803fa8e32dc36aa49931312f9; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 9a041174c58a226e713f6cebd41eccec7a5cfa72; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< b9d2140c3badf4107973ad77c5a0ec3075705c85 (cvelist)
- Linux: 5.11 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-50721. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50721.md
Affected: Linux >= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < 5653bd0200944e5803fa8e32dc36aa49931312f9; >= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < 9a041174c58a226e713f6cebd41eccec7a5cfa72; >= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, < b9d2140c3badf4107973ad77c5a0ec3075705c85; Linux 5.11
Fixed in: Linux 5653bd0200944e5803fa8e32dc36aa49931312f9, Linux 9a041174c58a226e713f6cebd41eccec7a5cfa72

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2022-50721 being exploited?

There is no confirmed exploitation: CVE-2022-50721 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.27% chance of exploitation in the next 30 days (as of 2026-11-28).

### How serious is CVE-2022-50721?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2022-50721?

Linux \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 5653bd0200944e5803fa8e32dc36aa49931312f9; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< 9a041174c58a226e713f6cebd41eccec7a5cfa72; \>= 5c9f8c2dbdbe53818bcde6aa6695e1331e5f841f, \< b9d2140c3badf4107973ad77c5a0ec3075705c85; Linux 5.11.

### Is there a fix for CVE-2022-50721?

Yes. Fixed in Linux 5653bd0200944e5803fa8e32dc36aa49931312f9, Linux 9a041174c58a226e713f6cebd41eccec7a5cfa72. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2022-50721?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/5653bd0200944e5803fa8e32dc36aa49931312f9>
- other: <https://git.kernel.org/stable/c/9a041174c58a226e713f6cebd41eccec7a5cfa72>
- other: <https://git.kernel.org/stable/c/b9d2140c3badf4107973ad77c5a0ec3075705c85>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2022-50721>

HTML: <https://flawdb.com/CVE-2022-50721> · JSON: <https://flawdb.com/api/v1/entries/CVE-2022-50721>
