CVE-2026-138909

media: rkvdec: do not destroy borrowed SRAM pool

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

media: rkvdec: do not destroy borrowed SRAM pool

rkvdec_probe() obtains a provider-owned SRAM pool with
of_gen_pool_get(), but its error path incorrectly destroys the borrowed
pool with gen_pool_destroy().

of_gen_pool_get() returns a pool managed by the SRAM provider. The pool
is not created or owned by the rkvdec driver and is destroyed by the
provider when its own managed resources are released.

Destroying it when rkvdec_v4l2_init() fails can invalidate the pool
while the provider and other consumers still reference it, and can also
result in the provider attempting to destroy it again later.

Remove the incorrect gen_pool_destroy() call from the probe failure
path.

This issue was found by manual code inspection.

Analysis

AI-generated

Technical impact

The rkvdec driver in the Linux kernel incorrectly destroys a provider‑owned SRAM pool when its probe function fails. By calling gen_pool_destroy() on a resource it does not own, the driver can invalidate the pool while other consumers still reference it, leading to a use‑after‑free or double‑free condition that may trigger a kernel panic. This results in a denial of service on systems running the affected kernel, potentially requiring a reboot.

Affected Systems

Any Linux system that includes the rkvdec media driver before the patch identified in the commit logs is affected. The fix was applied to the kernel's media subsystem, so devices that rely on hardware video decoding through rkvdec are at risk if they run a kernel version preceding the commit. The specific vendor is Linux; affected versions are all those before the included patch.

Risk and Exploitability

EPSS data is not available and the vulnerability is not listed in CISA's KEV catalog, indicating no known widespread exploitation. The CVSS score is not provided in the data, but the bug requires a local kernel context to trigger, as it occurs during driver initialization. The likely attack vector is a local process with sufficient privileges to cause the driver probe to fail, leading to a kernel crash. The risk remains significant for compromised systems but is unlikely to be leveraged by remote attackers without initial kernel access.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that removes the incorrect gen_pool_destroy() call in rkvdec_probe() (commit 19449e9 and 54e5aa1).
  • Rebuild and install the updated kernel to ensure the fix is active.
  • If the rkvdec driver is not required, disable or unload the driver to eliminate the risk.

Generated by OpenCVE AI on November 30, 2026 at 17:31 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-826
References
Metrics threat_severity

None

cvssV3_1

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

threat_severity

Moderate

Type Values Removed Values Added
Weaknesses CWE-416
CWE-590
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: rkvdec: do not destroy borrowed SRAM pool rkvdec_probe() obtains a provider-owned SRAM pool with of_gen_pool_get(), but its error path incorrectly destroys the borrowed pool with gen_pool_destroy(). of_gen_pool_get() returns a pool managed by the SRAM provider. The pool is not created or owned by the rkvdec driver and is destroyed by the provider when its own managed resources are released. Destroying it when rkvdec_v4l2_init() fails can invalidate the pool while the provider and other consumers still reference it, and can also result in the provider attempting to destroy it again later. Remove the incorrect gen_pool_destroy() call from the probe failure path. This issue was found by manual code inspection.
Title media: rkvdec: do not destroy borrowed SRAM pool
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses
  • CWE-416

    Use After Free

  • CWE-590

    Free of Memory not on the Heap

  • CWE-826

    Premature Release of Resource During Expected Lifetime

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