{"id":"CVE-2026-139031","state":"PUBLISHED","title":"media: nuvoton: npcm-video: quiesce VCD IRQ before teardown","description":"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->vcd_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.","publishedAt":"2026-11-30T13:27:13.783Z","updatedAt":"2026-11-30T13:27:13.783Z","severity":null,"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"8937d384205b6d385ce1c1bea6c16145de72d9b4","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"79800ff17a5f487c8cb75481eb71f14ab949eaa4","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"c39241f34edf70e5150e69c71597651e168f3946","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"ae8a4b51df30e39c07704efd5500361d8138c4d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/nuvoton/npcm-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/nuvoton/npcm-video.c"]}],"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"],"weaknesses":[],"ingestedAt":"2026-11-30T13:40:04.421Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/139xxx/CVE-2026-139031.json","commit":"5317bbbde1916a58cb1fadabb726eb126daf44c1","baselineCommit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-139031","state":"PUBLISHED","datePublished":"2026-11-30T13:27:13.783Z","dateUpdated":"2026-11-30T13:27:13.783Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-11-30T13:22:15.910Z"},"containers":{"cna":{"title":"media: nuvoton: npcm-video: quiesce VCD IRQ before teardown","descriptions":[{"lang":"en","value":"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->vcd_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."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"8937d384205b6d385ce1c1bea6c16145de72d9b4","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"79800ff17a5f487c8cb75481eb71f14ab949eaa4","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"c39241f34edf70e5150e69c71597651e168f3946","versionType":"git"},{"version":"46c15a4ff1f4fe078c5b250fb2570020211eab38","status":"affected","lessThan":"ae8a4b51df30e39c07704efd5500361d8138c4d0","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/nuvoton/npcm-video.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"6.7","status":"affected"},{"version":"0","status":"unaffected","lessThan":"6.7","versionType":"semver"},{"version":"6.12.117","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.63","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.3.4","status":"unaffected","lessThanOrEqual":"7.3.*","versionType":"semver"},{"version":"7.4-rc1","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/platform/nuvoton/npcm-video.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/8937d384205b6d385ce1c1bea6c16145de72d9b4"},{"url":"https://git.kernel.org/stable/c/79800ff17a5f487c8cb75481eb71f14ab949eaa4"},{"url":"https://git.kernel.org/stable/c/c39241f34edf70e5150e69c71597651e168f3946"},{"url":"https://git.kernel.org/stable/c/ae8a4b51df30e39c07704efd5500361d8138c4d0"}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-11-30T13:27:13.783Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.12.117"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"6.18.63"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.3.4"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"6.7","versionEndExcluding":"7.4-rc1"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}