CVE-2026-31583·Kernel vulnerability
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.
- Severity
- high
- Software
- Kernel
- Fixed in
- 7.0.1
- Published
How likely is exploitation
FIRST's Exploit Prediction Scoring System puts the probability of this CVE being exploited in the next 30 days at 0.18% — higher than 7% of all published CVEs. EPSS is an independent forecast of exploitation, not a severity rating: it says nothing about how much damage a successful attack does, which is what a CVSS score measures.
Read the two together. CVE-2026-31583 scores 7.8 on CVSS, so a successful attack would be serious — but at 0.18%, almost nobody is currently attempting it. That is a different situation from a flaw under mass exploitation, and it is usually the difference between patching on your next maintenance window and patching tonight.
Affected versions
From: 7.0
Until: 7.0.1
Fixed in: 7.0.1
How to fix this CVE
Update your Linux kernel to version 7.0.1 or later to resolve a use-after-free race condition in the em28xx video driver that can cause system crashes or memory corruption. This vulnerability affects the v4l2 subsystem initialization and requires a kernel upgrade followed by a system reboot to take effect.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run 'uname -r' to check the current kernel version; versions 7.0 through 7.0.0 are vulnerable
- Check if em28xx driver is loaded: 'lsmod | grep em28xx' — presence indicates the vulnerable component is active
- Search kernel logs for crash signatures: 'sudo dmesg | grep -i "use.after.free\|UAF\|em28xx\|v4l2"' to identify exploitation attempts
- After patching, verify the updated kernel is running: 'uname -r' should show version 7.0.1 or higher
FAQ
What is CVE-2026-31583?
This is a race condition in the Linux kernel's em28xx video driver that allows concurrent access to freed memory when the v4l2 subsystem initializes or shuts down, potentially causing kernel crashes or data corruption.
Is CVE-2026-31583 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and there are no known public exploits currently available.
What versions of Kernel are affected by CVE-2026-31583?
Linux kernel versions 7.0 and 7.0.0 are vulnerable; kernel version 7.0.1 and later contain the fix.
How do I check if my server is vulnerable to CVE-2026-31583?
Run 'uname -r' to display your kernel version. If it shows 7.0 or 7.0.0, you are vulnerable. Additionally, verify if the em28xx driver is in use with 'lsmod | grep em28xx'.
Does Defensia detect CVE-2026-31583?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If the Linux kernel is installed on a monitored server, CVE-2026-31583 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/2cbf81f76842e46bdf25823c70e1db4044a65678
- https://git.kernel.org/stable/c/38a327221f7f765e7d853b7bafe47e342441ec85
- https://git.kernel.org/stable/c/3c0283a59e36e3707c4a81f4952e362d31f876b8
- https://git.kernel.org/stable/c/5fb2940327722b4684d2f964b54c1c90aa277324
- https://git.kernel.org/stable/c/6b9e66437cc6123ddedac141e1b8b6fcf57d2972
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2026-31583. Free for 1 server.
Get started free