CVE-2026-138915

media: chips-media: wave5: Balance runtime PM on encoder close errors

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

media: chips-media: wave5: Balance runtime PM on encoder close errors

wave5_vpu_enc_close() resumes the device before taking the hardware lock.
Its three error paths call pm_runtime_resume_and_get() again instead of
dropping that reference. Each failure therefore increments the runtime PM
usage count twice and can prevent the device from suspending afterward.

Replace the extra resume calls with pm_runtime_put_sync() to balance the
reference acquired on entry, matching the successful close path. This
aligns wave5_vpu_enc_close() with wave5_vpu_dec_close(), which already
releases the reference on its error paths.

Analysis

AI-generated

Technical impact

This vulnerability originates from the wave5 media driver in the Linux kernel, where the function responsible for closing the VPU encoder incorrectly balances runtime power‑management references on error paths. Instead of releasing the reference it secures again, the code calls pm_runtime_resume_and_get() twice, inflating the usage count and preventing the device from suspending. This double‑increment results in an executable resource exhaustion that can stall subsequent power‑management operations, effectively causing a denial‑of‑service condition for the device and any process relying on its suspend capability.

Affected Systems

All Linux kernel builds that contain the wave5 media driver before the commit that introduced the pm_runtime_put_sync() fix are affected. No specific version range is provided, so any kernel version incorporating the legacy wave5 driver is potentially vulnerable until the patch is applied.

Risk and Exploitability

No publicly available exploitation reports exist, the EPSS score is unavailable, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires execution of wave5_vpu_enc_close, which occurs only when applications close a VPU encoder. Accordingly, the vulnerability is generally exploitable only by privileged code or processes that can provoke the failure paths. The primary risk is a failure to suspend the hardware component, leading to hanged power‑management state or resource leakage, with moderate to high severity if the device must be suspended during normal operation.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update the Linux kernel to a version that incorporates the wave5 runtime‑PM reference balancing fix.
  • If an immediate kernel upgrade is not possible, apply the upstream patch that replaces pm_runtime_resume_and_get() with pm_runtime_put_sync() on the error paths of wave5_vpu_enc_close().
  • Where feasible, temporarily disable runtime power‑management for the wave5 encoder device to avoid suspend failures until the reference‑counting bug is fixed.
  • Verify that closing the encoder no longer increases the runtime‑PM usage count and that the device can suspend normally.

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

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Linux linux
Vendors & Products Linux linux
Type Values Removed Values Added
Weaknesses CWE-911
References
Metrics threat_severity

None

cvssV3_1

{'score': 3.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L'}

threat_severity

Low

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: chips-media: wave5: Balance runtime PM on encoder close errors wave5_vpu_enc_close() resumes the device before taking the hardware lock. Its three error paths call pm_runtime_resume_and_get() again instead of dropping that reference. Each failure therefore increments the runtime PM usage count twice and can prevent the device from suspending afterward. Replace the extra resume calls with pm_runtime_put_sync() to balance the reference acquired on entry, matching the successful close path. This aligns wave5_vpu_enc_close() with wave5_vpu_dec_close(), which already releases the reference on its error paths.
Title media: chips-media: wave5: Balance runtime PM on encoder close errors
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-911

    Improper Update of Reference Count

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
Severity
Low
Public date
Nov 30, 2026, 1:26 PM