This is a kernel bug in the driver for USB webcams, so the first question for your web server is a simple one: can anyone plug anything into it?
At a glance
- CVE: CVE-2024-53104 — an out-of-bounds write in the Linux kernel’s USB Video Class driver (
uvcvideo). - Severity: 7.8 (High) at NVD. Red Hat rates it Moderate (7.3) and treats it as a physical USB attack.
- Affected: Linux kernels from 2.6.26 up to (but not including) 4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8 and 6.12.1, depending on your branch. Mainline is fixed from 6.13.
- Known exploited: Yes — it’s been on CISA’s KEV list since 2025-02-05, and Google’s February 2025 Android bulletin said it may be under limited, targeted exploitation.
What’s going on
When you plug in a USB camera, the kernel reads a set of descriptors from the device that list the video formats and frame sizes it supports. The uvcvideo driver works out how big a buffer it needs for those frames, then parses them into it. The catch: frames of an “undefined” type weren’t counted when sizing the buffer, but they were still parsed. A device that reports them makes the driver write past the end of the buffer, and a rigged device can use that to corrupt kernel memory and potentially take over the machine.
So who’s actually at risk? Red Hat sums it up well: no login is needed once the attacker can present a malicious USB device, and the bug isn’t reachable over the network. It fires while the kernel is reading a newly attached device’s descriptors. On a cloud VPS or a managed server in someone’s data centre, nobody can walk up and plug in a fake webcam, so the realistic risk to a hosted website is low. Where it matters more is hardware people can physically touch: office or on-prem servers, kiosks, laptops and dev workstations — and Android phones, which is where the targeted attacks were seen.
It’s also not new. The fix landed in late 2024 and patched kernels have been out for about two years, so if you install kernel updates and reboot regularly, you very likely have it already.
Timeline
- Fix committed upstream: 2024-11-09 (commit
ecf2b43018da, released in 6.13-rc1) - Disclosed (CVE published): 2024-12-02
- Android bulletin flags targeted exploitation: 2025-02-03
- Added to CISA KEV: 2025-02-05
- Red Hat kernel updates for RHEL 8 and 9: 2025-02-11
== UPDATE ==
Patches have been around for a long time — this is mostly a “make sure you rebooted into them” check.
- Patch available: Yep.
- Fixed in: upstream 4.19.324, 5.4.286, 5.10.230, 5.15.172, 6.1.117, 6.6.61, 6.11.8, 6.12.1 and 6.13. Distro packages: Debian 11
linux5.10.234-1 (orlinux-6.16.1.119-1~deb11u1), Debian 12 6.1.119-1; RHEL 8kernel-4.18.0-553.40.1.el8_10, RHEL 9kernel-5.14.0-503.23.2.el9_5, RHEL 10kernel-6.12.0-55.13.1.el10_0. Later kernels include it too. - How to apply: install your distro’s kernel update and reboot — a new kernel only takes effect after a restart. On Debian/Ubuntu that’s
sudo apt update && sudo apt upgrade; on RHEL, Alma, Rocky or Fedora it’ssudo dnf upgrade --refresh. Thensudo reboot, and checkuname -rto confirm you’re on the new kernel. Your distro’s security tracker (linked below) has the exact fixed package for your release. - If you can’t patch yet: Red Hat’s suggested mitigation is to stop the
uvcvideomodule from loading. That also stops USB webcams and video-capture devices from working, which on a server with no camera attached costs you nothing. You can check whether it’s loaded withlsmod | grep uvcvideo, and block it withecho "install uvcvideo /bin/false" | sudo tee /etc/modprobe.d/disable-uvcvideo.conf(then reboot if it was loaded).
References
- https://nvd.nist.gov/vuln/detail/CVE-2024-53104
- https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2024-53104
- https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=ecf2b43018da9579842c774b7f35dbe11b5c38dd
- https://source.android.com/docs/security/bulletin/2025-02-01
- https://security-tracker.debian.org/tracker/CVE-2024-53104
- https://access.redhat.com/security/cve/CVE-2024-53104