# CVE-2026-139031: media: nuvoton: npcm-video: quiesce VCD IRQ before teardown

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 11% of CVEs (2026-12-01)
- Published: 2026-11-30T13:27:13.783Z
- Modified: 2026-11-30T14:18:07.230Z
- Assigned by: Linux

## 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.

(As written by CVE List.)

## Affected

- Linux Linux: from 46c15a4ff1f4fe078c5b250fb2570020211eab38 before 8937d384205b6d385ce1c1bea6c16145de72d9b4; from 46c15a4ff1f4fe078c5b250fb2570020211eab38 before 79800ff17a5f487c8cb75481eb71f14ab949eaa4; from 46c15a4ff1f4fe078c5b250fb2570020211eab38 before c39241f34edf70e5150e69c71597651e168f3946; from 46c15a4ff1f4fe078c5b250fb2570020211eab38 before ae8a4b51df30e39c07704efd5500361d8138c4d0; 6.7 (not affected: before 6.7; from 6.12.117 up to 6.12.*; from 6.18.63 up to 6.18.*; from 7.3.4 up to 7.3.*; from 7.4-rc1 up to *)

## References

- <https://git.kernel.org/stable/c/8937d384205b6d385ce1c1bea6c16145de72d9b4>
- <https://git.kernel.org/stable/c/79800ff17a5f487c8cb75481eb71f14ab949eaa4>
- <https://git.kernel.org/stable/c/c39241f34edf70e5150e69c71597651e168f3946>
- <https://git.kernel.org/stable/c/ae8a4b51df30e39c07704efd5500361d8138c4d0>

## Sources

- CVE List: [CVE-2026-139031](https://www.cve.org/CVERecord?id=CVE-2026-139031), CVE Terms of Use, modified 2026-11-30
- NVD: [CVE-2026-139031](https://nvd.nist.gov/vuln/detail/CVE-2026-139031), Public domain, modified 2026-11-30

---

Page: https://cve.day/CVE-2026-139031 · Whole record: https://cve.day/CVE-2026-139031.json · Rebuilt by cve.day 2026-11-30T14:32:31.237Z
