CVE-2026-139024

media: vicodec: zero-initialize stateful decoder heap buffers

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: vicodec: zero-initialize stateful decoder heap buffers

The stateful decoder leaks uninitialized kernel heap memory to userspace.
A process that can open the decoder video node gets it back in the CAPTURE
buffers it dequeues.

The reference frame and the compressed frame buffer are allocated with
kvmalloc() in vicodec_start_streaming(), and the decoder can read them
before they have been written. The first frame is allowed to be a P-frame,
in which case it is decoded against a reference frame that was never
produced, and the padding rows below the visible area are never written
for any frame.

Use kvzalloc() for both allocations.

Analysis

AI-generated

Technical impact

The Linux media vicodec driver allocates reference and compressed frame buffers with kvmalloc() before the memory is initialized. Because the first frame may be a P‑frame that references a not‑produced frame, and the padding rows below the visible area are never written, the decoder can read the buffer contents and return them to userspace. This leak exposes uninitialized kernel heap data to any process that is able to open the decoder video node and read the CAPTURE buffers. The problem is an information‑disclosure flaw arising from use of uninitialized kernel memory and can expose memory that may contain sensitive data, with a potential impact on confidentiality.

Affected Systems

This vulnerability affects all Linux kernel releases that include the vicodec media driver before the patch that changes the allocation from kvmalloc() to kvzalloc(). The specific kernel version is not listed in the CNA data, so any distribution kernel that uses the default vicodec implementation is considered affected.

Risk and Exploitability

The CVSS score is not provided, but the leak involves kernel heap data and can be accessed by any process that can open the decoder video node, which is typically a locally privileged or root process. The EPSS score is not available and the vulnerability is not listed in CISA's KEV catalog, which indicates moderate exploitation potential. Attackers would need local access to the system and the ability to open the vicodec node in order to retrieve the leaked data. The awareness of the CVE and the Linux kernel community should prompt a timely patch.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that replaces kvmalloc() with kvzalloc() for the vicodec driver or upgrade to a kernel version that contains the fix.
  • If an immediate kernel upgrade is not possible, restrict access to the vicodec video node by setting the device permissions to 600 or disabling the driver if it is not required.
  • Ensure that only privileged processes have the capabilities needed to open the decoder node, thereby limiting exposure.
  • Verify that no unintended users have write permission on the /dev/v4l* devices and monitor for abnormal usage.

Generated by OpenCVE AI on November 30, 2026 at 18:23 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-200
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: vicodec: zero-initialize stateful decoder heap buffers The stateful decoder leaks uninitialized kernel heap memory to userspace. A process that can open the decoder video node gets it back in the CAPTURE buffers it dequeues. The reference frame and the compressed frame buffer are allocated with kvmalloc() in vicodec_start_streaming(), and the decoder can read them before they have been written. The first frame is allowed to be a P-frame, in which case it is decoded against a reference frame that was never produced, and the padding rows below the visible area are never written for any frame. Use kvzalloc() for both allocations.
Title media: vicodec: zero-initialize stateful decoder heap buffers
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-200

    Exposure of Sensitive Information to an Unauthorized Actor

Sources

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