Description
In the Linux kernel, the following vulnerability has been resolved:

media: nuvoton: npcm-video: fix memory leaks in probe and remove

npcm_video_probe() allocates the npcm_video structure with kzalloc_obj()
but never frees it on any probe error path or in npcm_video_remove(),
leaking the allocation on every failed probe and every normal unbind.

Additionally, when npcm_video_setup_video() fails, the reserved memory
association established by of_reserved_mem_device_init() in
npcm_video_init() is not released, leaking the rmem_assigned_device
entry on the global list.

Fix both by adding kfree(video) to all probe error paths and to
npcm_video_remove(), and adding the missing
of_reserved_mem_device_release() call when npcm_video_setup_video()
fails.
Published: 2026-08-10
Score: n/a
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The vulnerability occurs in the Nuvoton npcm-video driver of the Linux kernel. On probe failure or when the driver is removed, the allocated npcm_video structure is never freed, and the reserved memory association established by of_reserved_mem_device_init is not released on setup failure. These unchecked allocations cause kernel memory exhaustion over time, potentially degrading system stability or leading to denial of service. The weakness is a classic memory leak (CWE‑401).

Affected Systems

All Linux kernel configurations that include the npcm‑video driver, prior to the patch that adds the missing kfree and of_reserved_mem_device_release calls, are affected. No specific version ranges are enumerated, so any kernel build with the old driver code is potentially vulnerable.

Risk and Exploitability

The CVSS score is not disclosed and the EPSS score is unavailable; the vulnerability is not listed in CISA KEV. Because it depends on driver load or probe failures, it requires local or privileged access and is unlikely to be exploited remotely. However, repeated probe failures or intentional driver unloading could lead to resource exhaustion and a denial of service. The exploitation path involves triggering probe failures or failure of npcm_video_setup_video, which causes unfreed memory to accumulate in kernel memory space.

Generated by OpenCVE AI on August 10, 2026 at 15:01 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade the kernel or apply a patch that includes the missing kfree and of_reserved_mem_device_release calls for the npcm_video driver.
  • If an immediate kernel upgrade is impossible, unload or blacklist the npcm-video driver to avoid the memory leak.
  • Regularly monitor kernel memory usage and system logs for unexpected growth that might indicate a repeated probe failure.

Generated by OpenCVE AI on August 10, 2026 at 15:01 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 10 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-401

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: nuvoton: npcm-video: fix memory leaks in probe and remove npcm_video_probe() allocates the npcm_video structure with kzalloc_obj() but never frees it on any probe error path or in npcm_video_remove(), leaking the allocation on every failed probe and every normal unbind. Additionally, when npcm_video_setup_video() fails, the reserved memory association established by of_reserved_mem_device_init() in npcm_video_init() is not released, leaking the rmem_assigned_device entry on the global list. Fix both by adding kfree(video) to all probe error paths and to npcm_video_remove(), and adding the missing of_reserved_mem_device_release() call when npcm_video_setup_video() fails.
Title media: nuvoton: npcm-video: fix memory leaks in probe and remove
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-10T12:00:41.392Z

Reserved: 2026-07-30T09:28:09.375Z

Link: CVE-2026-68221

cve-icon Vulnrichment

No data.

cve-icon NVD

No data.

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-10T19:45:04Z

Weaknesses
  • CWE-401

    Missing Release of Memory after Effective Lifetime