CVE-2026-139031

media: nuvoton: npcm-video: quiesce VCD IRQ before teardown

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: nuvoton: npcm-video: quiesce VCD IRQ before teardown

The VCD IRQ is devm-requested, but npcm_video_remove() frees the video
object before devres releases that IRQ. The threaded handler dereferences
video->vcd_regmap before checking VIDEO_STREAMING, so an interrupt in that
interval can access freed memory.

Request the IRQ with IRQF_NO_AUTOEN. Enable it after starting capture and
setting VIDEO_STREAMING, and disable it first in stop_streaming().
disable_irq() waits for an in-flight threaded handler to finish, after
which stop_streaming() can mask and reset the VCD without a handler
re-enabling it.

Use vb2_video_unregister_device() during remove. It releases the vb2
queue and calls stop_streaming() for an active stream, ensuring that the
IRQ is disabled before the video object is freed. Do not release the queue
separately.

If streaming is never started, IRQF_NO_AUTOEN keeps the IRQ disabled
until devres releases it.

This issue was found by an in-house static analysis tool.

Analysis

AI-generated

Technical impact

A use‑after‑free flaw exists in the Nuvoton npcm-video driver within the Linux kernel. The driver deregisters the video object before the devres subsystem releases the VCD IRQ. If an interrupt occurs during this window, the threaded IRQ handler dereferences a pointer that has already been freed, enabling an attacker to trigger memory corruption in kernel space. Such corruption could allow arbitrary code execution with kernel privileges or system crash. The issue was discovered by a static analysis tool.

Affected Systems

All Linux kernel releases that include the Nuvoton npcm-video media driver and have not yet applied the patch that changes the IRQ request procedure and removes the video object only after the queue is unregistered. The exact version range is unspecified in the data, so all affected kernels should be assumed vulnerable until the fix is present.

Risk and Exploitability

The EPSS score is not available and the vulnerability is not listed in CISA’s KEV catalog, but the nature of the bug – a use‑after‑free during interrupt processing – suggests a high severity. Exploitation would likely require local privilege or direct interaction with the device, but a kernel‑level compromise can have full system compromise potential. The attacker could trigger the fault by generating an interrupt to the VCD IRQ while the device is in teardown, leading to execution of attacker code in the kernel context.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Apply the kernel patch that requests the VCD IRQ with IRQF_NO_AUTOEN and disables the interrupt only after the streaming has been stopped and the video object is safely unregistered.
  • Use vb2_video_unregister_device() during device removal to ensure the vb2 queue is released and the IRQ is disabled before the video object is freed.
  • If the patch cannot be applied immediately, manually disable the VCD IRQ in stop_streaming() and avoid freeing the video object until after the IRQ is masked and the threaded handler has terminated.

Generated by OpenCVE AI on November 30, 2026 at 19:15 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Weaknesses CWE-416
Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: media: nuvoton: npcm-video: quiesce VCD IRQ before teardown The VCD IRQ is devm-requested, but npcm_video_remove() frees the video object before devres releases that IRQ. The threaded handler dereferences video->vcd_regmap before checking VIDEO_STREAMING, so an interrupt in that interval can access freed memory. Request the IRQ with IRQF_NO_AUTOEN. Enable it after starting capture and setting VIDEO_STREAMING, and disable it first in stop_streaming(). disable_irq() waits for an in-flight threaded handler to finish, after which stop_streaming() can mask and reset the VCD without a handler re-enabling it. Use vb2_video_unregister_device() during remove. It releases the vb2 queue and calls stop_streaming() for an active stream, ensuring that the IRQ is disabled before the video object is freed. Do not release the queue separately. If streaming is never started, IRQF_NO_AUTOEN keeps the IRQ disabled until devres releases it. This issue was found by an in-house static analysis tool.
Title media: nuvoton: npcm-video: quiesce VCD IRQ before teardown
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References
Weaknesses

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