CVE-2022-50145
dmaengine: sf-pdma: Add multithread support for a DMA channel
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 5ab2782c944e324008ef5d658f2494a9f0e3c5ac; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 4c7350b1dd8a192af844de32fc99b9e34c876fda; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < a93b3f1e11971a91b6441b6d47488f4492cc113f; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b2cc5c465c2cb8ab697c3fd6583c614e3f6cfbcc
- Anyone running Linux 5.5
Vulnerability facts
- Affected
- Linux >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 5ab2782c944e324008ef5d658f2494a9f0e3c5ac; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 4c7350b1dd8a192af844de32fc99b9e34c876fda; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < a93b3f1e11971a91b6441b6d47488f4492cc113f; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b2cc5c465c2cb8ab697c3fd6583c614e3f6cfbcc; Linux 5.5
- Fixed in
- Linux 5ab2782c944e324008ef5d658f2494a9f0e3c5ac, Linux 4c7350b1dd8a192af844de32fc99b9e34c876fda
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, CNA)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.30% chance of exploitation in 30 days (percentile 15, 2026-11-26)
- CWE
- CWE-476
- Modified
Description
In the Linux kernel, the following vulnerability has been resolved: dmaengine: sf-pdma: Add multithread support for a DMA channel When we get a DMA channel and try to use it in multiple threads it will cause oops and hanging the system. % echo 64 > /sys/module/dmatest/parameters/threads_per_chan % echo 10000 > /sys/module/dmatest/parameters/iterations % echo 1 > /sys/module/dmatest/parameters/run [ 89.480664] Unable to handle kernel NULL pointer dereference at virtual address 00000000000000a0 [ 89.488725] Oops [#1] [ 89.494708] CPU: 2 PID: 1008 Comm: dma0chan0-copy0 Not tainted 5.17.0-rc5 [ 89.509385] epc : vchan_find_desc+0x32/0x46 [ 89.513553] ra : sf_pdma_tx_status+0xca/0xd6 This happens because of data race. Each thread rewrite channels's descriptor as soon as device_prep_dma_memcpy() is called. It leads to the situation when the driver thinks that it uses right descriptor that actually is freed or substituted for other one. With current fixes a descriptor changes its value only when it has been used. A new descriptor is acquired from vc->desc_issued queue that is already filled with descriptors that are ready to be sent. Threads have no direct access to DMA channel descriptor. Now it is just possible to queue a descriptor for further processing.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 5ab2782c944e324008ef5d658f2494a9f0e3c5ac; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 4c7350b1dd8a192af844de32fc99b9e34c876fda; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < a93b3f1e11971a91b6441b6d47488f4492cc113f; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b2cc5c465c2cb8ab697c3fd6583c614e3f6cfbcc | — | cvelist |
| Linux | 5.5 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2022-50145. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2022-50145.md Affected: Linux >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 5ab2782c944e324008ef5d658f2494a9f0e3c5ac; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 4c7350b1dd8a192af844de32fc99b9e34c876fda; >= 6973886ad58e6b498881333… Fixed in: Linux 5ab2782c944e324008ef5d658f2494a9f0e3c5ac, Linux 4c7350b1dd8a192af844de32fc99b9e34c876fda 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.
References
Patches
- https://git.kernel.org/stable/c/b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11
- https://git.kernel.org/stable/c/5ab2782c944e324008ef5d658f2494a9f0e3c5ac
- https://git.kernel.org/stable/c/4c7350b1dd8a192af844de32fc99b9e34c876fda
- https://git.kernel.org/stable/c/a93b3f1e11971a91b6441b6d47488f4492cc113f
- https://git.kernel.org/stable/c/b2cc5c465c2cb8ab697c3fd6583c614e3f6cfbcc
FAQ
Is CVE-2022-50145 being exploited?
There is no confirmed exploitation: CVE-2022-50145 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.30% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2022-50145?
High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2022-50145?
Linux >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b9b4992f897be9b0b9e3a3b956cab6b75ccc3f11; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 5ab2782c944e324008ef5d658f2494a9f0e3c5ac; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < 4c7350b1dd8a192af844de32fc99b9e34c876fda; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < a93b3f1e11971a91b6441b6d47488f4492cc113f; >= 6973886ad58e6b4988813331abb76ae0b364a9c2, < b2cc5c465c2cb8ab697c3fd6583c614e3f6cfbcc; Linux 5.5.
Is there a fix for CVE-2022-50145?
Yes. Fixed in Linux 5ab2782c944e324008ef5d658f2494a9f0e3c5ac, Linux 4c7350b1dd8a192af844de32fc99b9e34c876fda. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2022-50145?
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.