CVE-2026-138915: media: chips-media: wave5: Balance runtime PM on encoder close errors
In the Linux kernel, the following vulnerability has been resolved:
media: chips-media: wave5: Balance runtime PM on encoder close errors
wave5vpuencclose() resumes the device before taking the hardware lock. Its three error paths call pmruntimeresumeandget() 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 pmruntimeputsync() to balance the reference acquired on entry, matching the successful close path. This aligns wave5vpuencclose() with wave5vpudecclose(), which already releases the reference on its error paths.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.63 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In the Linux kernel's wave5_vpu_enc_close() error paths, replace the extra pm_runtime_resume_and_get() calls with pm_runtime_put_sync() to balance the runtime PM reference.
Event History
Frequently Asked Questions
What systems are exposed to this issue?
Systems using the Linux kernel's chips-media Wave5 encoder driver are affected when an encoder close operation takes one of the relevant error paths. The issue concerns runtime power-management reference handling for that device.
What happens if the issue is triggered?
Each affected encoder-close failure path increments the runtime PM usage count instead of releasing the reference obtained on entry. This can leave the device with an elevated usage count and prevent it from suspending afterward.
Does exploiting this require a remote attacker?
The provided information does not describe a remote attack path, authentication requirement, or attacker-controlled trigger. It identifies encoder close errors in the Wave5 driver as the condition that causes the runtime PM reference imbalance.
What is the remediation?
Apply a kernel update containing the fix that replaces the extra pm_runtime_resume_and_get() calls in the Wave5 encoder close error paths with pm_runtime_put_sync(). The corrected behavior matches the successful encoder-close path and the existing decoder-close error handling.