{"api_version":"1","generated_at":"2026-12-01T13:19:08+00:00","cve":"CVE-2026-139560","urls":{"html":"https://cve.report/CVE-2026-139560","api":"https://cve.report/api/cve/CVE-2026-139560.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139560","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139560"},"summary":{"title":"media: em28xx: hold the vb2 queue lock when releasing the queue on close","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: hold the vb2 queue lock when releasing the queue on close\n\nCommit de626073dfcb (\"media: em28xx: drop 'users' field\") replaced the\nvb2_fop_release() call in em28xx_v4l2_close() with\n_vb2_fop_release(filp, NULL) under dev->lock. vb2_fop_release() took\nthe vb2 queue lock, but the new call takes no lock at all.\n\nThe video and VBI queues have their own locks (vb_queue_lock and\nvb_vbi_queue_lock), and v4l2_ioctl_get_lock() serializes the queue\nioctls with those rather than dev->lock. The queue can therefore be\nreleased on close while another file handle is in the middle of\nVIDIOC_REQBUFS. __vb2_queue_alloc() adds each buffer to the queue before\nallocating its planes, so the release can find an MMAP buffer whose\nmem_priv is still NULL and hand it to vb2_vmalloc_put():\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000020\n  RIP: 0010:vb2_vmalloc_put+0xe/0x50 [videobuf2_vmalloc]\n  Call Trace:\n   __vb2_queue_free+0x14e/0x350 [videobuf2_common]\n   vb2_core_queue_release+0x3b/0x80 [videobuf2_common]\n   _vb2_fop_release+0x44/0x70 [videobuf2_v4l2]\n   em28xx_v4l2_close+0x60/0x140 [em28xx_v4l]\n   v4l2_release+0x9d/0xf0 [videodev]\n   __fput+0xfd/0x280\n\nThis was hit with OBS on a MyGica iGrabber (card=105).\n\nPass the queue lock to _vb2_fop_release(). Taking it while holding\ndev->lock matches the existing order in em28xx_v4l2_fini(), where\nvb2_video_unregister_device() takes the queue lock under dev->lock.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:19:36","updated_at":"2026-11-30 14:19:36"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/37f4b2004b9a22e70a289be77451f9f2b278142a","name":"https://git.kernel.org/stable/c/37f4b2004b9a22e70a289be77451f9f2b278142a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/748b6ef3cb9785b8774f406a8bc33e7cee297373","name":"https://git.kernel.org/stable/c/748b6ef3cb9785b8774f406a8bc33e7cee297373","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139560","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139560","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected de626073dfcbb06441f1a9755715941c0c375fe3 748b6ef3cb9785b8774f406a8bc33e7cee297373 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected de626073dfcbb06441f1a9755715941c0c375fe3 37f4b2004b9a22e70a289be77451f9f2b278142a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 7.3","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["drivers/media/usb/em28xx/em28xx-video.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"748b6ef3cb9785b8774f406a8bc33e7cee297373","status":"affected","version":"de626073dfcbb06441f1a9755715941c0c375fe3","versionType":"git"},{"lessThan":"37f4b2004b9a22e70a289be77451f9f2b278142a","status":"affected","version":"de626073dfcbb06441f1a9755715941c0c375fe3","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["drivers/media/usb/em28xx/em28xx-video.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"7.3"},{"lessThan":"7.3","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"7.3","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"7.3","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: hold the vb2 queue lock when releasing the queue on close\n\nCommit de626073dfcb (\"media: em28xx: drop 'users' field\") replaced the\nvb2_fop_release() call in em28xx_v4l2_close() with\n_vb2_fop_release(filp, NULL) under dev->lock. vb2_fop_release() took\nthe vb2 queue lock, but the new call takes no lock at all.\n\nThe video and VBI queues have their own locks (vb_queue_lock and\nvb_vbi_queue_lock), and v4l2_ioctl_get_lock() serializes the queue\nioctls with those rather than dev->lock. The queue can therefore be\nreleased on close while another file handle is in the middle of\nVIDIOC_REQBUFS. __vb2_queue_alloc() adds each buffer to the queue before\nallocating its planes, so the release can find an MMAP buffer whose\nmem_priv is still NULL and hand it to vb2_vmalloc_put():\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000020\n  RIP: 0010:vb2_vmalloc_put+0xe/0x50 [videobuf2_vmalloc]\n  Call Trace:\n   __vb2_queue_free+0x14e/0x350 [videobuf2_common]\n   vb2_core_queue_release+0x3b/0x80 [videobuf2_common]\n   _vb2_fop_release+0x44/0x70 [videobuf2_v4l2]\n   em28xx_v4l2_close+0x60/0x140 [em28xx_v4l]\n   v4l2_release+0x9d/0xf0 [videodev]\n   __fput+0xfd/0x280\n\nThis was hit with OBS on a MyGica iGrabber (card=105).\n\nPass the queue lock to _vb2_fop_release(). Taking it while holding\ndev->lock matches the existing order in em28xx_v4l2_fini(), where\nvb2_video_unregister_device() takes the queue lock under dev->lock."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:35:53.382Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/748b6ef3cb9785b8774f406a8bc33e7cee297373"},{"url":"https://git.kernel.org/stable/c/37f4b2004b9a22e70a289be77451f9f2b278142a"}],"title":"media: em28xx: hold the vb2 queue lock when releasing the queue on close","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139560","datePublished":"2026-11-30T13:35:53.382Z","dateReserved":"2026-11-30T13:22:15.940Z","dateUpdated":"2026-11-30T13:35:53.382Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:19:36","lastModifiedDate":"2026-11-30 14:19:36","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139560","Ordinal":"1","Title":"media: em28xx: hold the vb2 queue lock when releasing the queue ","CVE":"CVE-2026-139560","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139560","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: hold the vb2 queue lock when releasing the queue on close\n\nCommit de626073dfcb (\"media: em28xx: drop 'users' field\") replaced the\nvb2_fop_release() call in em28xx_v4l2_close() with\n_vb2_fop_release(filp, NULL) under dev->lock. vb2_fop_release() took\nthe vb2 queue lock, but the new call takes no lock at all.\n\nThe video and VBI queues have their own locks (vb_queue_lock and\nvb_vbi_queue_lock), and v4l2_ioctl_get_lock() serializes the queue\nioctls with those rather than dev->lock. The queue can therefore be\nreleased on close while another file handle is in the middle of\nVIDIOC_REQBUFS. __vb2_queue_alloc() adds each buffer to the queue before\nallocating its planes, so the release can find an MMAP buffer whose\nmem_priv is still NULL and hand it to vb2_vmalloc_put():\n\n  BUG: kernel NULL pointer dereference, address: 0000000000000020\n  RIP: 0010:vb2_vmalloc_put+0xe/0x50 [videobuf2_vmalloc]\n  Call Trace:\n   __vb2_queue_free+0x14e/0x350 [videobuf2_common]\n   vb2_core_queue_release+0x3b/0x80 [videobuf2_common]\n   _vb2_fop_release+0x44/0x70 [videobuf2_v4l2]\n   em28xx_v4l2_close+0x60/0x140 [em28xx_v4l]\n   v4l2_release+0x9d/0xf0 [videodev]\n   __fput+0xfd/0x280\n\nThis was hit with OBS on a MyGica iGrabber (card=105).\n\nPass the queue lock to _vb2_fop_release(). Taking it while holding\ndev->lock matches the existing order in em28xx_v4l2_fini(), where\nvb2_video_unregister_device() takes the queue lock under dev->lock.","Type":"Description","Title":"media: em28xx: hold the vb2 queue lock when releasing the queue "}]}}}