{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-31583","id":"CVE-2026-31583","title":"media: em28xx: fix use-after-free in em28xx_v4l2_open()","description":"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 ","descriptionLong":"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.","published":"2026-04-24T14:42:12.923Z","updated":"2026-11-13T02:30:46.941742711Z","reserved":"2026-03-09T15:48:24.120Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},"metrics":[{"version":"3.1","score":7.8,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"}],"rating":"high","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"3c0283a59e36e3707c4a81f4952e362d31f876b8","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"2cbf81f76842e46bdf25823c70e1db4044a65678","status":"affected","versionType":"git"},{"version":"8139a4d583abad45eb987b5a99b3281b6d435b7e","lessThan":"38a327221f7f765e7d853b7bafe47e342441ec85","status":"affected","versionType":"git"},{"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"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"3.16","status":"affected"},{"version":"0","lessThan":"3.16","status":"unaffected","versionType":"semver"},{"version":"5.10.258","lessThanOrEqual":"5.10.*","status":"unaffected","versionType":"semver"},{"version":"5.15.209","lessThanOrEqual":"5.15.*","status":"unaffected","versionType":"semver"},{"version":"6.1.175","lessThanOrEqual":"6.1.*","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","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":["CWE-416"],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/3c0283a59e36e3707c4a81f4952e362d31f876b8","tags":["web"]},{"url":"https://git.kernel.org/stable/c/2cbf81f76842e46bdf25823c70e1db4044a65678","tags":["web"]},{"url":"https://git.kernel.org/stable/c/38a327221f7f765e7d853b7bafe47e342441ec85","tags":["web"]},{"url":"https://git.kernel.org/stable/c/b5d141ea15f173f15b9f0a72965902f3428c0d92","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/dd2b888e08d3b3d6aacd65d76cd44fac11da750f","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/a66485a934c7187ae8e36517d40615fa2e961cff","tags":["Patch","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-784472.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/31xxx/CVE-2026-31583.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31583","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial"},"epss":0.00131,"epssPercentile":0.02808,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-31583","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-31583","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-31583","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-31583","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}