CVE-2024-40934·Kernel vulnerability
In the Linux kernel, the following vulnerability has been resolved: HID: logitech-dj: Fix memory leak in logi_dj_recv_switch_to_dj_mode() Fix a memory leak on logi_dj_recv_send_report() error path.
- Severity
- medium
- Software
- Kernel
- Fixed in
- 6.9.6
- Published
- 2024-07-12
Affected versions
From: 6.7
Until: 6.9.6
Fixed in: 6.9.6
How to fix this CVE
Update your Linux kernel to version 6.9.6 or later to resolve a memory leak vulnerability in the Logitech DJ HID driver that could lead to denial of service. Systems running kernel versions 6.7 through 6.9.5 should prioritize this update to prevent potential resource exhaustion from the affected code path.
sudo dnf update kernel kernel-coreDefensia detects this vulnerability
How to check if you are affected
- Step 1: Check your kernel version by running `uname -r`. If the version is between 6.7 and 6.9.5, your system is vulnerable.
- Step 2: Verify if a Logitech DJ receiver is connected by running `lsusb | grep -i logitech` or checking `dmesg | grep hid_logitech_dj`.
- Step 3: Search system logs for memory allocation errors using `grep -i 'logi_dj_recv' /var/log/kern.log` or `journalctl -g 'logi_dj'` to identify exploitation attempts.
- Step 4: After patching, confirm the new kernel version with `uname -r` and reboot if necessary with `sudo reboot`.
FAQ
What is CVE-2024-40934?
CVE-2024-40934 is a memory leak vulnerability in the Linux kernel's Logitech DJ HID (Human Interface Device) driver that occurs when the device mode switching function fails to properly release allocated memory on error conditions, potentially leading to denial of service through resource exhaustion.
Is CVE-2024-40934 being actively exploited?
No, CVE-2024-40934 is not currently listed in CISA's Known Exploited Vulnerabilities (KEV) catalog and no public exploits are available, though systems should still be patched promptly as a precaution.
What versions of Kernel are affected by CVE-2024-40934?
Linux kernel versions 6.7, 6.8, 6.9, and 6.9.5 and earlier are vulnerable. The vulnerability was resolved in kernel version 6.9.6.
How do I check if my server is vulnerable to CVE-2024-40934?
Run `uname -r` to display your kernel version. If it shows a version between 6.7 and 6.9.5, your system is vulnerable. Additionally, check if Logitech HID devices are present with `lsusb | grep -i logitech`.
Does Defensia detect CVE-2024-40934?
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-2024-40934 will appear in your dashboard with remediation steps.
Related Kernel CVEs
References
- https://git.kernel.org/stable/c/15122dc140d82c51c216535c57b044c4587aae45
- https://git.kernel.org/stable/c/1df2ead5dfad5f8f92467bd94889392d53100b98
- https://git.kernel.org/stable/c/789c99a1d7d2c8f6096d75fc2930505840ec9ea0
- https://git.kernel.org/stable/c/a0503757947f2e46e59c1962326b53b3208c8213
- https://git.kernel.org/stable/c/caa9c9acb93db7ad7b74b157cf101579bac9596d
Track CVEs across your fleet automatically
Defensia scans your Linux servers and tells you exactly which ones are running vulnerable versions — including CVE-2024-40934. Free for 1 server.
Get started free