{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-31583","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","state":"PUBLISHED","assignerShortName":"Linux","dateReserved":"2026-03-09T15:48:24.120Z","datePublished":"2026-04-24T14:42:12.923Z","dateUpdated":"2026-05-11T22:11:35.902Z"},"containers":{"cna":{"providerMetadata":{"orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux","dateUpdated":"2026-05-11T22:11:35.902Z"},"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nmedia: em28xx: fix use-after-free in em28xx_v4l2_open()\n\nem28xx_v4l2_open() reads dev->v4l2 without holding dev->lock,\ncreating a race with em28xx_v4l2_init()'s error path and\nem28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct\nand set dev->v4l2 to NULL under dev->lock.\n\nThis race leads to two issues:\n - use-after-free in v4l2_fh_init() when accessing vdev->ctrl_handler,\n   since the video_device is embedded in the freed em28xx_v4l2 struct.\n - NULL pointer dereference in em28xx_resolution_set() when accessing\n   v4l2->norm, since dev->v4l2 has been set to NULL.\n\nFix this by moving the mutex_lock() before the dev->v4l2 read and\nadding a NULL check for dev->v4l2 under the lock."}],"affected":[{"product":"Linux","vendor":"Linux","defaultStatus":"unaffected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/em28xx/em28xx-video.c"],"versions":[{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"b5d141ea15f173f15b9f0a72965902f3428c0d92","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"5fb2940327722b4684d2f964b54c1c90aa277324","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"871b8ea8ef39a6c253594649f4339378fad3d0dd","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"6b9e66437cc6123ddedac141e1b8b6fcf57d2972","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"dd2b888e08d3b3d6aacd65d76cd44fac11da750f","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"a66485a934c7187ae8e36517d40615fa2e961cff","status":"affected","versionType":"git"}]},{"product":"Linux","vendor":"Linux","defaultStatus":"affected","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["drivers/media/usb/em28xx/em28xx-video.c"],"versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"6.6.136","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.83","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.18.24","lessThanOrEqual":"6.18.*","status":"unaffected","versionType":"semver"},{"version":"6.19.14","lessThanOrEqual":"6.19.*","status":"unaffected","versionType":"semver"},{"version":"7.0.1","lessThanOrEqual":"7.0.*","status":"unaffected","versionType":"semver"},{"version":"7.1-rc1","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.6.136"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.12.83"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.18.24"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"6.19.14"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"7.0.1"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"3.16","versionEndExcluding":"7.1-rc1"}]}]}],"references":[{"url":"https://git.kernel.org/stable/c/b5d141ea15f173f15b9f0a72965902f3428c0d92"},{"url":"https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324"},{"url":"https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd"},{"url":"https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972"},{"url":"https://git.kernel.org/stable/c/dd2b888e08d3b3d6aacd65d76cd44fac11da750f"},{"url":"https://git.kernel.org/stable/c/a66485a934c7187ae8e36517d40615fa2e961cff"}],"title":"media: em28xx: fix use-after-free in em28xx_v4l2_open()","x_generator":{"engine":"bippy-1.2.0"}}}}