CVE-2024-57980·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: media: uvcvideo: Fix double free in error path If the uvc_status_init() function fails to allocate the int_urb, it will free the dev->status pointer but doesn't reset the pointer to NULL. This results in the kfree() call in uvc_status_cleanup() trying to double-free the memory. Fix it by resetting the dev->status pointer to NULL after freeing it. Reviewed by: Ricardo Ribalda <ribalda@chromium.org>
- Severity
- high
- Software
- Kernel
- Fixed in
- 6.13.2
- Published
- 2025-02-27
Affected versions
From: 6.13
Until: 6.13.2
Fixed in: 6.13.2
How to fix this CVE
Update your Linux kernel to version 6.13.2 or later to resolve a memory management flaw in the UVC video driver. The vulnerability causes a double-free condition when the USB interrupt request buffer initialization fails, potentially leading to kernel instability or privilege escalation. Apply the kernel update through your distribution's package manager and reboot to activate the patched kernel.
sudo dnf update kernel kernel-devel && sudo rebootDefensia detects this vulnerability
How to check if you are affected
- Run `uname -r` to check your current kernel version and verify if it is between 6.13 and 6.13.1 (vulnerable range)
- Verify UVC video device presence with `lsusb | grep -i video` or check `/sys/class/video4linux/` for connected video devices
- Search kernel logs for UVC initialization failures: `sudo dmesg | grep -i 'uvc\|uvc_status_init'` or `sudo journalctl -b | grep -i uvc`
- After applying the patch, confirm the new kernel is loaded with `uname -r` and check for clean UVC initialization in logs: `sudo dmesg | grep -i uvc_status`
FAQ
What is CVE-2024-57980?
A memory safety vulnerability in the Linux kernel's UVC video driver where a failed USB interrupt buffer allocation fails to null-initialize a freed pointer, enabling a double-free condition that can corrupt kernel memory or trigger a denial of service.
Is CVE-2024-57980 being actively exploited?
No, this vulnerability is not listed on the CISA KEV catalog and has no known public exploits. However, the memory corruption potential makes patching important for system stability.
What versions of Kernel are affected by CVE-2024-57980?
Linux kernel versions 6.13 through 6.13.1 are affected. Kernel 6.13.2 and later contain the fix.
How do I check if my server is vulnerable to CVE-2024-57980?
Run `uname -r` and check if the output shows a kernel version between 6.13 and 6.13.1. Additionally, verify if UVC devices are connected via `lsusb | grep -i video` to determine exposure risk.
Does Defensia detect CVE-2024-57980?
Yes — Defensia's CVE advisory scanner compares installed package versions against the NVD database. If Kernel is installed on a monitored server, CVE-2024-57980 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/3ba8884a56a3eb97c22f0ce0e4dd410d4ca4c277
- https://git.kernel.org/stable/c/6c36dcd662ec5276782838660f8533a7cb26be49
- https://git.kernel.org/stable/c/87522ef165e5b6de8ef98cc318f3335166a1512c
- https://git.kernel.org/stable/c/9232719ac9ce4d5c213cebda23d72aec3e1c4c0d
- https://git.kernel.org/stable/c/c6ef3a7fa97ec823a1e1af9085cf13db9f7b3bac
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-57980. Free for 1 server.
Get started free