CVE-2026-31583
media: em28xx: fix use-after-free in em28xx_v4l2_open()
Check your servers for CVE-2026-31583
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2026-31583 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
In the Linux kernel, the following vulnerability has been resolved:
media: em28xx: fix use-after-free in em28xx_v4l2_open()
em28xx_v4l2_open() reads dev->v4l2 without holding dev->lock, creating a race with em28xx_v4l2_init()'s error path and em28xx_v4l2_fini(), both of which free the em28xx_v4l2 struct and set dev->v4l2 to NULL under dev->lock.
This race leads to two issues: - use-after-free in v4l2_fh_init() when accessing vdev->ctrl_handler, since the video_device is embedded in the freed em28xx_v4l2 struct. - NULL pointer dereference in em28xx_resolution_set() when accessing v4l2->norm, since dev->v4l2 has been set to NULL.
Fix this by moving the mutex_lock() before the dev->v4l2 read and adding a NULL check for dev->v4l2 under the lock.
Exploitation
EPSS 0.14%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 3.31% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 6 Nov 2026):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 3c0283a59e36e3707c4a81f4952e362d31f876b8 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 2cbf81f76842e46bdf25823c70e1db4044a65678 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 38a327221f7f765e7d853b7bafe47e342441ec85 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before b5d141ea15f173f15b9f0a72965902f3428c0d92 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 5fb2940327722b4684d2f964b54c1c90aa277324 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 871b8ea8ef39a6c253594649f4339378fad3d0dd affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before 6b9e66437cc6123ddedac141e1b8b6fcf57d2972 affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before dd2b888e08d3b3d6aacd65d76cd44fac11da750f affected from 8139a4d583abad45eb987b5a99b3281b6d435b7e, before a66485a934c7187ae8e36517d40615fa2e961cff
Other versions: unaffected
|
| Linux |
affected 3.16 unaffected before 3.16 unaffected from 5.10.258 up to and including 5.10.* unaffected from 5.15.209 up to and including 5.15.* unaffected from 6.1.175 up to and including 6.1.* unaffected from 6.6.136 up to and including 6.6.* unaffected from 6.12.83 up to and including 6.12.* unaffected from 6.18.24 up to and including 6.18.* unaffected from 6.19.14 up to and including 6.19.* unaffected from 7.0.1 up to and including 7.0.* unaffected 7.1 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2026-31583 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2026-31583
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2026-31583
trivy image --scanners vuln IMAGE | grep CVE-2026-31583
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/3c0283a59e36e3707c4a81f4952e362d31f876b8 git.kernel.org
- https://git.kernel.org/stable/c/2cbf81f76842e46bdf25823c70e1db4044a65678 git.kernel.org
- https://git.kernel.org/stable/c/38a327221f7f765e7d853b7bafe47e342441ec85 git.kernel.org
- https://git.kernel.org/stable/c/b5d141ea15f173f15b9f0a72965902f3428c0d92 git.kernel.org
- https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324 git.kernel.org
- https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd git.kernel.org
- https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972 git.kernel.org
- https://git.kernel.org/stable/c/dd2b888e08d3b3d6aacd65d76cd44fac11da750f git.kernel.org
- https://git.kernel.org/stable/c/a66485a934c7187ae8e36517d40615fa2e961cff git.kernel.org
- https://cert-portal.siemens.com/productcert/html/ssa-784472.html cert-portal.siemens.com
Source: the record CVE-2026-31583 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse