# CVE-2022-50426: remoteproc: imx_dsp_rproc: Add mutex protection for workqueue

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.16%, higher than 5% of CVEs (2026-12-01)
- Published: 2025-10-01T11:42:05.613Z
- Modified: 2026-11-05T21:16:57.997Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

remoteproc: imx_dsp_rproc: Add mutex protection for workqueue

The workqueue may execute late even after remoteproc is stopped or
stopping, some resources (rpmsg device and endpoint) have been
released in rproc_stop_subdevices(), then rproc_vq_interrupt()
accessing these resources will cause kennel dump.

Call trace:
 virtqueue_add_split+0x1ac/0x560
 virtqueue_add_inbuf+0x4c/0x60
 rpmsg_recv_done+0x15c/0x294
 vring_interrupt+0x6c/0xa4
 rproc_vq_interrupt+0x30/0x50
 imx_dsp_rproc_vq_work+0x24/0x40 [imx_dsp_rproc]
 process_one_work+0x1d0/0x354
 worker_thread+0x13c/0x470
 kthread+0x154/0x160
 ret_from_fork+0x10/0x20

Add mutex protection in imx_dsp_rproc_vq_work(), if the state is
not running, then just skip calling rproc_vq_interrupt().

Also the flush workqueue operation can't be added in rproc stop
for the same reason. The call sequence is

rproc_shutdown
-> rproc_stop
   ->rproc_stop_subdevices
   ->rproc->ops->stop()
     ->imx_dsp_rproc_stop
       ->flush_work
         -> rproc_vq_interrupt

The resource needed by rproc_vq_interrupt has been released in
rproc_stop_subdevices, so flush_work is not safe to be called in
imx_dsp_rproc_stop.

(As written by CVE List.)

## Affected

- Linux Linux: from ec0e5549f3586d2cb99a05edd006d722ebad912c before 4a3e1fa7a77838617bdbcd95127ce93a959fad44; from ec0e5549f3586d2cb99a05edd006d722ebad912c before b9693304b7133b81741add5bfb56f022596df012; from ec0e5549f3586d2cb99a05edd006d722ebad912c before 47e6ab07018edebf94ce873cf50a05ec76ff2dde; 5.16 (not affected: before 5.16; from 6.0.18 up to 6.0.*; from 6.1.4 up to 6.1.*; from 6.2 up to *)
- linux linux_kernel: from 5.16 before 6.0.18; from 6.1 before 6.1.4

## References

- <https://git.kernel.org/stable/c/4a3e1fa7a77838617bdbcd95127ce93a959fad44> (patch)
- <https://git.kernel.org/stable/c/b9693304b7133b81741add5bfb56f022596df012> (patch)
- <https://git.kernel.org/stable/c/47e6ab07018edebf94ce873cf50a05ec76ff2dde> (patch)

## Sources

- CVE List: [CVE-2022-50426](https://www.cve.org/CVERecord?id=CVE-2022-50426), CVE Terms of Use, modified 2026-11-05
- NVD: [CVE-2022-50426](https://nvd.nist.gov/vuln/detail/CVE-2022-50426), Public domain, modified 2026-11-05

---

Page: https://cve.day/CVE-2022-50426 · Whole record: https://cve.day/CVE-2022-50426.json · Rebuilt by cve.day 2026-11-25T22:58:21.213Z
