CVE-2022-50362
BaseFortify
Publication date: 2025-09-17
Last updated on: 2025-12-10
Assigner: kernel.org
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| linux | linux_kernel | From 5.6 (inc) to 5.10.150 (exc) |
| linux | linux_kernel | From 5.11 (inc) to 5.15.75 (exc) |
| linux | linux_kernel | From 5.16 (inc) to 5.19.17 (exc) |
| linux | linux_kernel | From 6.0 (inc) to 6.0.3 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-NVD-CWE-noinfo |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability occurs in the Linux kernel's DMA engine for Hisilicon devices when a DMA channel is used concurrently by multiple threads. The issue is a data race where multiple threads rewrite the DMA channel's descriptor simultaneously, causing the driver to lose track of the correct descriptor during interrupt handling. This leads to system errors such as kernel oops and system hangs due to transmission timeouts. The fix involves controlling access to the channel's descriptor so that it only changes when it is safe, preventing concurrent modification and ensuring proper handling of descriptors.
How can this vulnerability impact me? :
This vulnerability can cause the system to crash or hang when multiple threads use the same DMA channel, leading to kernel oops errors and system instability. This can result in downtime, data loss, or degraded system performance, especially in environments relying on stable DMA operations for hardware communication.
How can this vulnerability be detected on my network or system? Can you suggest some commands?
This vulnerability can be detected by observing kernel logs for oops or system hangs related to DMA channel usage in multiple threads. The provided example commands to trigger and detect the issue are: % echo 100 > /sys/module/dmatest/parameters/threads_per_chan % echo 100 > /sys/module/dmatest/parameters/iterations % echo 1 > /sys/module/dmatest/parameters/run After running these, check kernel logs (e.g., using dmesg) for messages like 'Unable to handle kernel paging request', 'Internal error: Oops', or other related errors indicating the problem.
What immediate steps should I take to mitigate this vulnerability?
Immediate mitigation involves updating the Linux kernel to a version that includes the fix for this vulnerability. The fix ensures that DMA channel descriptors are only changed when they are not in use and removes error reporting when the descriptor queue is empty, preventing data races and system hangs. Until the update is applied, avoid using DMA channels concurrently across multiple threads to prevent triggering the issue.