{"id":"CVE-2026-139031","summary":"media: nuvoton: npcm-video: quiesce VCD IRQ before teardown","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: nuvoton: npcm-video: quiesce VCD IRQ before teardown\n\nThe VCD IRQ is devm-requested, but npcm_video_remove() frees the video\nobject before devres releases that IRQ.  The threaded handler dereferences\nvideo-\u003evcd_regmap before checking VIDEO_STREAMING, so an interrupt in that\ninterval can access freed memory.\n\nRequest the IRQ with IRQF_NO_AUTOEN.  Enable it after starting capture and\nsetting VIDEO_STREAMING, and disable it first in stop_streaming().\ndisable_irq() waits for an in-flight threaded handler to finish, after\nwhich stop_streaming() can mask and reset the VCD without a handler\nre-enabling it.\n\nUse vb2_video_unregister_device() during remove.  It releases the vb2\nqueue and calls stop_streaming() for an active stream, ensuring that the\nIRQ is disabled before the video object is freed.  Do not release the queue\nseparately.\n\nIf streaming is never started, IRQF_NO_AUTOEN keeps the IRQ disabled\nuntil devres releases it.\n\nThis issue was found by an in-house static analysis tool.","modified":"2026-11-30T15:01:49.466398712Z","published":"2026-11-30T13:27:13.783Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139031.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/79800ff17a5f487c8cb75481eb71f14ab949eaa4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/8937d384205b6d385ce1c1bea6c16145de72d9b4"},{"type":"WEB","url":"https://git.kernel.org/stable/c/ae8a4b51df30e39c07704efd5500361d8138c4d0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/c39241f34edf70e5150e69c71597651e168f3946"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139031.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139031"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"46c15a4ff1f4fe078c5b250fb2570020211eab38"},{"fixed":"8937d384205b6d385ce1c1bea6c16145de72d9b4"},{"fixed":"79800ff17a5f487c8cb75481eb71f14ab949eaa4"},{"fixed":"c39241f34edf70e5150e69c71597651e168f3946"},{"fixed":"ae8a4b51df30e39c07704efd5500361d8138c4d0"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139031.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"6.7.0"},{"fixed":"6.12.117"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.63"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.4"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-139031.json"}}],"schema_version":"1.9.2"}