# CVE-2026-43229: media: chips-media: wave5: Fix device cleanup order to prevent kernel panic

- 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.13%, higher than 2% of CVEs (2026-12-01)
- Published: 2026-05-06T11:28:26.951Z
- Modified: 2026-11-11T20:10:00.273Z
- Assigned by: Linux

## Description

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

media: chips-media: wave5: Fix device cleanup order to prevent kernel panic

Move video device unregistration to the beginning of the remove function
to ensure all video operations are stopped before cleaning up the worker
thread and disabling PM runtime. This prevents hardware register access
after the device has been powered down.

In polling mode, the hrtimer periodically triggers
wave5_vpu_timer_callback() which queues work to the kthread worker.
The worker executes wave5_vpu_irq_work_fn() which reads hardware
registers via wave5_vdi_read_register().

The original cleanup order disabled PM runtime and powered down hardware
before unregistering video devices. When autosuspend triggers and powers
off the hardware, the video devices are still registered and the worker
thread can still be triggered by the hrtimer, causing it to attempt
reading registers from powered-off hardware. This results in a bus error
(synchronous external abort) and kernel panic.

This causes random kernel panics during encoding operations:

  Internal error: synchronous external abort: 0000000096000010
    [#1] PREEMPT SMP
  Modules linked in: wave5 rpmsg_ctrl rpmsg_char ...
  CPU: 0 UID: 0 PID: 1520 Comm: vpu_irq_thread
    Tainted: G   M    W
  pc : wave5_vdi_read_register+0x10/0x38 [wave5]
  lr : wave5_vpu_irq_work_fn+0x28/0x60 [wave5]
  Call trace:
   wave5_vdi_read_register+0x10/0x38 [wave5]
   kthread_worker_fn+0xd8/0x238
   kthread+0x104/0x120
   ret_from_fork+0x10/0x20
  Code: aa1e03e9 d503201f f9416800 8b214000 (b9400000)
  ---[ end trace 0000000000000000 ]---
  Kernel panic - not syncing: synchronous external abort:
    Fatal exception

(As written by CVE List.)

## Affected

- Linux Linux: from 9707a6254a8a6b978bde811a44fe07d86c229d1c before b73d85231d5b1400a4fa5046cdac6c4d7cc6d969; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before 526816f2e331954d80fed8b37fa94efbbdde2b8d; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before dc2b7deae740a3ed138fb7ae17c97fa4055cfc5f; from 9707a6254a8a6b978bde811a44fe07d86c229d1c before b74cedac643b02aefa7da881b58a3792859d9748; 6.8 (not affected: before 6.8; from 6.12.75 up to 6.12.*; from 6.18.16 up to 6.18.*; from 6.19.6 up to 6.19.*; from 7.0 up to *)
- linux linux_kernel: from 6.8 before 6.12.75; from 6.13 before 6.18.16; from 6.19 before 6.19.6

## References

- <https://git.kernel.org/stable/c/b73d85231d5b1400a4fa5046cdac6c4d7cc6d969> (patch)
- <https://git.kernel.org/stable/c/526816f2e331954d80fed8b37fa94efbbdde2b8d> (patch)
- <https://git.kernel.org/stable/c/dc2b7deae740a3ed138fb7ae17c97fa4055cfc5f> (patch)
- <https://git.kernel.org/stable/c/b74cedac643b02aefa7da881b58a3792859d9748> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2026-43229 · Whole record: https://cve.day/CVE-2026-43229.json · Rebuilt by cve.day 2026-11-25T22:59:20.740Z
