Linux DVB Core Use-After-Free Could Enable Local Privilege Escalation
Attack Tradecraft · 4 sources · Updated 3mo ago · First seen May 16, 2023

CVE-2022-41218 is a medium-severity use-after-free flaw in the Linux kernel's dvb-core subsystem, affecting Digital Video Broadcasting devices. A local low-privileged attacker could race malicious code against removal of a USB DVB demultiplexer or similar device, causing freed memory in drivers/media/dvb-core/dmxdev.c to be accessed. Successful exploitation could crash the host or potentially elevate privileges, although Red Hat rated the issue CVSS 5.5 because physical device removal and a difficult-to-win race condition are required.
Kernel developers identified related DVB frontend, network, and device-registration races involving concurrent open, close, and USB-disconnect operations; KASAN reproduced the use-after-free conditions on Linux 6.1.0-rc2 and later. Fedora shipped a fix in kernel 6.0.18 stable updates, while Red Hat remediated affected RHEL 8 kernel and kernel-rt packages through RHSA-2023:2736 and RHSA-2023:2951, with subsequent coverage for RHEL 8.6 EUS and Red Hat Virtualization 4. Organizations unable to patch can mitigate exposure by preventing the dvb-core module from loading; RHEL 9 kernel-rt was marked will not fix.
Why it matters
Impact assessment
CVE-2022-41218 affects Linux systems that load and use the dvb-core subsystem with USB Digital Video Broadcasting (DVB) hardware. Impact is primarily local denial of service through a kernel crash; local privilege escalation is possible but requires low-privileged code execution, a loaded/active DVB stack, physical device removal, and a difficult race condition.
- Affected populations: Linux workstations, media appliances, lab systems, and specialized deployments using USB DVB demultiplexer or digital-TV devices.
- Severity: Red Hat rates the issue Moderate, CVSS 5.5. Availability impact is rated High; memory corruption can potentially enable privilege escalation.
- Exposure scope: Limited rather than widespread because the vulnerable module must be present and used, and exploitation depends on concurrent USB-disconnect and device-operation timing.
- Known exploitation: The supplied references report no confirmed exploitation in the wild.
- Red Hat platform status:
- RHEL 8
kernelandkernel-rtreceived fixes. - RHEL 8.6 EUS and Red Hat Virtualization 4 received subsequent fixes.
- RHEL 9
kernelis not affected; RHEL 9kernel-rtis marked will not fix. - RHEL 7 is out of support scope and should be treated as potentially exposed until upgraded or mitigated.
- RHEL 8
Structured facts
- CVE:
CVE-2022-41218 - CWE:
CWE-416(use-after-free) - Affected component: Linux kernel
dvb-core, includingdrivers/media/dvb-core/dmxdev.c - Prerequisites: Local low-privileged execution and physical removal/disconnection of a USB DVB device while relevant operations are active.


