HomeDefectsLIN1021-16275
Fixed

LIN1021-16275 : Security Advisory - linux - CVE-2022-50145

Created: Jun 18, 2025    Updated: Oct 14, 2025
Resolved Date: Oct 13, 2025
Found In Version: 10.21.20.1
Fix Version: 10.21.20.14
Severity: Standard
Applicable for: Wind River Linux LTS 21
Component/s: Kernel

Description

In the Linux kernel, the following vulnerability has been resolved:[EOL][EOL]dmaengine: sf-pdma: Add multithread support for a DMA channel[EOL][EOL]When we get a DMA channel and try to use it in multiple threads it[EOL]will cause oops and hanging the system.[EOL][EOL]% echo 64 > /sys/module/dmatest/parameters/threads_per_chan[EOL]% echo 10000 > /sys/module/dmatest/parameters/iterations[EOL]% echo 1 > /sys/module/dmatest/parameters/run[EOL][   89.480664] Unable to handle kernel NULL pointer dereference at virtual[EOL]               address 00000000000000a0[EOL][   89.488725] Oops [#1][EOL][   89.494708] CPU: 2 PID: 1008 Comm: dma0chan0-copy0 Not tainted[EOL]               5.17.0-rc5[EOL][   89.509385] epc : vchan_find_desc+0x32/0x46[EOL][   89.513553]  ra : sf_pdma_tx_status+0xca/0xd6[EOL][EOL]This happens because of data race. Each thread rewrite channels's[EOL]descriptor as soon as device_prep_dma_memcpy() is called. It leads to the[EOL]situation when the driver thinks that it uses right descriptor that[EOL]actually is freed or substituted for other one.[EOL][EOL]With current fixes a descriptor changes its value only when it has[EOL]been used. A new descriptor is acquired from vc->desc_issued queue that[EOL]is already filled with descriptors that are ready to be sent. Threads[EOL]have no direct access to DMA channel descriptor. Now it is just possible[EOL]to queue a descriptor for further processing.

CVEs