CVE-2026-31583
media: em28xx: fix use-after-free in em28xx_v4l2_open()
Mitigation
- No fix listed yet: follow the vendor advisory.
Who should check
- Anyone running Linux >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 3c0283a59e36e3707c4a81f4952e362d31f876b8; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 2cbf81f76842e46bdf25823c70e1db4044a65678; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 38a327221f7f765e7d853b7bafe47e342441ec85; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < b5d141ea15f173f15b9f0a72965902f3428c0d92; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 5fb2940327722b4684d2f964b54c1c90aa277324; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 871b8ea8ef39a6c253594649f4339378fad3d0dd; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 6b9e66437cc6123ddedac141e1b8b6fcf57d2972; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < dd2b888e08d3b3d6aacd65d76cd44fac11da750f; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < a66485a934c7187ae8e36517d40615fa2e961cff
- Anyone running Linux 3.16
Vulnerability facts
- Affected
- Linux >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 3c0283a59e36e3707c4a81f4952e362d31f876b8; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 2cbf81f76842e46bdf25823c70e1db4044a65678; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 38a327221f7f765e7d853b7bafe47e342441ec85; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < b5d141ea15f173f15b9f0a72965902f3428c0d92; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 5fb2940327722b4684d2f964b54c1c90aa277324; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 871b8ea8ef39a6c253594649f4339378fad3d0dd; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 6b9e66437cc6123ddedac141e1b8b6fcf57d2972; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < dd2b888e08d3b3d6aacd65d76cd44fac11da750f; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < a66485a934c7187ae8e36517d40615fa2e961cff; Linux 3.16
- Fixed in
- Linux 3c0283a59e36e3707c4a81f4952e362d31f876b8, Linux 2cbf81f76842e46bdf25823c70e1db4044a65678, Linux 38a327221f7f765e7d853b7bafe47e342441ec85, Linux 5fb2940327722b4684d2f964b54c1c90aa277324, Linux 871b8ea8ef39a6c253594649f4339378fad3d0dd, Linux 6b9e66437cc6123ddedac141e1b8b6fcf57d2972
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Not remotely exploitable (local or adjacent access needed)
- CVSS
- 7.8 (v3.1, NVD)CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:HOpen in CVSS calculator
Show all 8 CVSS metrics
- Attack vector: Local
- Attack complexity: Low
- Privileges required: Low
- User interaction: None
- Scope: Unchanged
- Confidentiality impact: High
- Integrity impact: High
- Availability impact: High
- EPSS
- 0.19% chance of exploitation in 30 days (percentile 5, 2026-11-26)
- CWE
- CWE-416
- Modified
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Linux | >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 3c0283a59e36e3707c4a81f4952e362d31f876b8; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 2cbf81f76842e46bdf25823c70e1db4044a65678; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 38a327221f7f765e7d853b7bafe47e342441ec85; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < b5d141ea15f173f15b9f0a72965902f3428c0d92; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 5fb2940327722b4684d2f964b54c1c90aa277324; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 871b8ea8ef39a6c253594649f4339378fad3d0dd; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 6b9e66437cc6123ddedac141e1b8b6fcf57d2972; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < dd2b888e08d3b3d6aacd65d76cd44fac11da750f; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < a66485a934c7187ae8e36517d40615fa2e961cff | — | cvelist |
| Linux | 3.16 | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2026-31583. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2026-31583.md Affected: Linux >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 3c0283a59e36e3707c4a81f4952e362d31f876b8; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 2cbf81f76842e46bdf25823c70e1db4044a65678; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 38a327221f7f765e7d853b7bafe47e342441ec85; >= 8139a4d583abad45eb987b5… Fixed in: Linux 3c0283a59e36e3707c4a81f4952e362d31f876b8, Linux 2cbf81f76842e46bdf25823c70e1db4044a65678, Linux 38a327221f7f765e7d853b7bafe47e342441ec85, Linux 5fb2940327722b4684d2f964b54c1c90aa277324, Linux 871b8ea8ef39a6c253594649f4339378fad3d0dd, Linux 6b9e66437cc6123ddedac141e1b8b6fcf57d2972 Steps: 1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Patches
- https://git.kernel.org/stable/c/b5d141ea15f173f15b9f0a72965902f3428c0d92
- https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324
- https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd
- https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972
- https://git.kernel.org/stable/c/dd2b888e08d3b3d6aacd65d76cd44fac11da750f
- https://git.kernel.org/stable/c/a66485a934c7187ae8e36517d40615fa2e961cff
FAQ
Is CVE-2026-31583 being exploited?
There is no confirmed exploitation: CVE-2026-31583 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.19% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2026-31583?
High: CVSS 7.8 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).
Which versions are affected by CVE-2026-31583?
Linux >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 3c0283a59e36e3707c4a81f4952e362d31f876b8; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 2cbf81f76842e46bdf25823c70e1db4044a65678; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 38a327221f7f765e7d853b7bafe47e342441ec85; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < b5d141ea15f173f15b9f0a72965902f3428c0d92; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 5fb2940327722b4684d2f964b54c1c90aa277324; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 871b8ea8ef39a6c253594649f4339378fad3d0dd; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < 6b9e66437cc6123ddedac141e1b8b6fcf57d2972; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < dd2b888e08d3b3d6aacd65d76cd44fac11da750f; >= 8139a4d583abad45eb987b5a99b3281b6d435b7e, < a66485a934c7187ae8e36517d40615fa2e961cff; Linux 3.16.
Is there a fix for CVE-2026-31583?
Yes. Fixed in Linux 3c0283a59e36e3707c4a81f4952e362d31f876b8, Linux 2cbf81f76842e46bdf25823c70e1db4044a65678, Linux 38a327221f7f765e7d853b7bafe47e342441ec85, Linux 5fb2940327722b4684d2f964b54c1c90aa277324, Linux 871b8ea8ef39a6c253594649f4339378fad3d0dd, Linux 6b9e66437cc6123ddedac141e1b8b6fcf57d2972. No fix listed yet: follow the vendor advisory.
How do I check if I'm affected by CVE-2026-31583?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.