CVE-2024-58002·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Remove dangling pointers When an async control is written, we copy a pointer to the file handle that started the operation. That pointer will be used when the device is done. Which could be anytime in the future. If the user closes that file descriptor, its structure will be freed, and there will be one dangling pointer per pending async control, that the driver will try to use. Clean all the dangling pointers during release(). To avoid adding a performance penalty in the most common case (no async operation), a counter has been introduced with some logic to make sure that it is properly handled.
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.3
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.3
Fixed in: 6.13.3
How to fix this CVE
Update your Linux kernel to version 6.13.3 or later to resolve a memory safety issue in the uvcvideo driver where dangling pointers could be dereferenced after a file descriptor is closed. This vulnerability affects kernel versions 6.13 through 6.13.2 and requires immediate patching on systems using USB video device controllers.
sudo dnf check-update kernel && sudo dnf update kernelDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check kernel version with `uname -r` and compare against 6.13.0 - 6.13.2
- Step 2: Verify uvcvideo driver is loaded with `lsmod | grep uvcvideo`
- Step 3: Review kernel logs for use-after-free errors with `sudo dmesg | grep -i 'uvc\|use-after-free\|dangling'`
- Step 4: After patching, confirm new kernel version with `uname -r` and reboot if kernel was updated
FAQ
What is CVE-2024-58002?
This vulnerability in the Linux kernel's uvcvideo driver allows dangling pointer references when asynchronous control operations are pending and a file descriptor is closed without proper cleanup, potentially leading to memory corruption or denial of service.
Is CVE-2024-58002 being actively exploited?
No, there is no evidence of active exploitation or public exploits available for this vulnerability at this time.
What versions of Kernel are affected by CVE-2024-58002?
Linux kernel versions 6.13.0 through 6.13.2 are affected; the fix is included in 6.13.3 and later.
How do I check if my server is vulnerable to CVE-2024-58002?
Run `uname -r` and check if the kernel version falls between 6.13.0 and 6.13.2. Also verify `lsmod | grep uvcvideo` to confirm the affected driver is present.
Does Defensia detect CVE-2024-58002?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-58002 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/117f7a2975baa4b7d702d3f4830d5a4ebd0c6d50
- https://git.kernel.org/stable/c/221cd51efe4565501a3dbf04cc011b537dcce7fb
- https://git.kernel.org/stable/c/2a29413ace64627e178fd422dd8a5d95219a2c0b
- https://git.kernel.org/stable/c/438bda062b2c40ddd7df23b932e29ffe0a448cac
- https://git.kernel.org/stable/c/4dbaa738c583a0e947803c69e8996e88cf98d971
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-58002. Free for 1 server.
Get started free