CVE-2026-138916

media: chips-media: wave5: Handle polling IRQ thread failure

Published Nov 30, 2026 CVSS n/a EPSS n/a KEV · Not listed
Description
In the Linux kernel, the following vulnerability has been resolved:

media: chips-media: wave5: Handle polling IRQ thread failure

When falling back to polling mode, wave5_vpu_probe() does not check the
return value of kthread_run(). On failure, dev->irq_thread holds an
error pointer instead of a valid task pointer.

Both the probe error path and the remove path only check
dev->irq_thread against NULL before calling kthread_stop() on it, so an
error pointer passes the check and kthread_stop() crashes on it.

Check the kthread_run() result, clear dev->irq_thread and unwind the
probe on failure.

Analysis

AI-generated

Technical impact

The flaw occurs in the wave5 media driver when the system falls back to polling mode. During device initialization, the driver calls kthread_run() to start a polling thread but fails to test the return value. When the thread creation fails, the pointer returned is an error value and not a valid task reference. Later, the driver checks only for a NULL pointer before calling kthread_stop(). Because the error pointer is non‐NULL, kthread_stop() receives an invalid argument and crashes the kernel. This crash causes a reboot or loss of service. The impact is a local denial of service: an attacker able to trigger the driver probe can bring the whole system down. Base on the description, the likely attack vector is local execution with the right device or driver configuration. The flaw requires the driver to be loaded or the hardware to be present, so an attacker would need either physical access to the device or sufficient privileges to load or poke the device through system calls. The vulnerability could be exploited by anyone who can cause the device to be probed in this mode. The vulnerability is a classic improper handling of error values leading to the use of an error pointer as a legitimate pointer. The lack of return value checking and the incorrect interpretation of the error pointer results in a use‐after‐error condition that destabilizes the kernel.

Affected Systems

All Linux kernel builds that contain the wave5 media driver for chips-media with the code path for polling mode are affected. No specific kernel versions are listed, so any kernel prior to the patch that includes this code fragment is considered vulnerable. After the fix that checks the kthread_run() return value and properly clears the thread pointer, the defect is eliminated.

Risk and Exploitability

The CVSS score is not provided, but kernel crashes generally carry high severity. The EPSS score is not available, and the vulnerability is not listed in CISA’s KEV catalog, which suggests that, at the time of analysis, no publicly known exploits were documented. Nonetheless, the risk remains high because the flaw gives a local attacker the ability to cause a system reboot. Exploitation requires either a privileged user who can load the driver or a malicious device that triggers the polluton mode during probe. The lack of check allows a crash with minimal effort once the driver is loaded.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a release containing the wave5 driver patch that checks the return value of kthread_run().
  • Reboot the system to activate the updated kernel and ensure the wave5 driver initializes correctly.
  • Verify that no kthread_stop or IRQ thread failures appear in dmesg or kernel logs; if issues persist, avoid using the affected hardware or unload the wave5 module.

Generated by OpenCVE AI on November 30, 2026 at 17:27 UTC.

Tracking

Sign in to view the affected projects.

Exploits

Explore public exploit intelligence with OpenCVE Pro.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-668
CWE-680
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Handle polling IRQ thread failure When falling back to polling mode, wave5_vpu_probe() does not check the return value of kthread_run(). On failure, dev->irq_thread holds an error pointer instead of a valid task pointer. Both the probe error path and the remove path only check dev->irq_thread against NULL before calling kthread_stop() on it, so an error pointer passes the check and kthread_stop() crashes on it. Check the kthread_run() result, clear dev->irq_thread and unwind the probe on failure.
Title media: chips-media: wave5: Handle polling IRQ thread failure
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-668

    Exposure of Resource to Wrong Sphere

  • CWE-680

    Integer Overflow to Buffer Overflow

Sources

Status
PUBLISHED
Assigner
Linux
Published
Updated
Nov 30, 2026, 1:26 PM
Reserved
Nov 30, 2026, 1:22 PM
Status
Received
Published
Nov 30, 2026, 2:17 PM
Modified
Nov 30, 2026, 2:17 PM