Bug 2513400 (CVE-2026-68221) - CVE-2026-68221 kernel: media: nuvoton: npcm-video: fix memory leaks in probe and remove
Summary: CVE-2026-68221 kernel: media: nuvoton: npcm-video: fix memory leaks in probe ...
Keywords:
Status: NEW
Alias: CVE-2026-68221
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-08-10 12:35 UTC by OSIDB Bzimport
Modified: 2026-08-12 09:50 UTC (History)
2 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)

Description OSIDB Bzimport 2026-08-10 12:35:14 UTC
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.

Comment 1 Mauro Matteo Cascella 2026-08-11 18:43:07 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2026081015-CVE-2026-68221-104a@gregkh/T


Note You need to log in before you can comment on or make changes to this bug.