High severity · published Apr 24, 2026
CVE-2026-31583
media: em28xx: fix use-after-free in em28xx_v4l2_open()
7.8
CVSS
0.1%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
High
Integrity
High
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.1% · higher than 3% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
before 6.6.136; 6.12 before 6.12.83; 6.13 before 6.18.24; 6.19 before 6.19.14; 7.0 before 7.0.1 · source: NVD
LI
Linux · Linux
8139a4d583abad45eb987b5a99b3281b6d435b7e before 3c0283a59e36e3707c4a81f4952e362d31f876b8; 8139a4d583abad45eb987b5a99b3281b6d435b7e before 2cbf81f76842e46bdf25823c70e1db4044a65678; 8139a4d583abad45eb987b5a99b3281b6d435b7e before 38a327221f7f765e7d853b7bafe47e342441ec85; 8139a4d583abad45eb987b5a99b3281b6d435b7e before b5d141ea15f173f15b9f0a72965902f3428c0d92; 8139a4d583abad45eb987b5a99b3281b6d435b7e before 5fb2940327722b4684d2f964b54c1c90aa277324; 8139a4d583abad45eb987b5a99b3281b6d435b7e before 871b8ea8ef39a6c253594649f4339378fad3d0dd; +4 more · source: vendor
SS
SIMATIC S7-1500 TM MFP - GNU/Linux subsystem · Siemens
0 · source: CISA
In the news
VulnerabilityHigh
ZDI-26-692: Linux Kernel eMPIA USB Device Driver Race Condition Code Execution Vulnerability
This vulnerability allows physically present attackers to execute arbitrary code on affected installations of Linux Kernel. Authentication is not required to exploit this vulnerability. The ZDI has assigned a CVSS rating of 7.1. The following CVEs are assigned: CVE-2026-31583.
Sep 14, 2026·Zero Day Initiative
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-31583
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-31583
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/3c0283a59e36e3707c4a81f4952e362d31f876b8
Patch
https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324
Patch
https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972
Patch
https://git.kernel.org/stable/c/871b8ea8ef39a6c253594649f4339378fad3d0dd
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
