CVE-2024-53213 net: usb: lan78xx: Fix double free issue with interrupt buffer allocation
A double free vulnerability in the Linux kernel's lan78xx USB driver allows attackers to cause a denial of service or potentially execute arbitrary code.
- Exploited in the wild
- Not known
- Login needed
- Any signed-in user
- Attackable
- Local or same network only
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2024-53213?
CVE-2024-53213 is a high-severity use after free vulnerability in Linux kernel, published on 27 Dec 2024. It can only be exploited from the same machine or local network, with no action from the victim.
Official description
In the Linux kernel, the following vulnerability has been resolved:
net: usb: lan78xx: Fix double free issue with interrupt buffer allocation
In lan78xx_probe(), the buffer `buf` was being freed twice: once implicitly through `usb_free_urb(dev->urb_intr)` with the `URB_FREE_BUFFER` flag and again explicitly by `kfree(buf)`. This caused a double free issue.
To resolve this, reordered `kmalloc()` and `usb_alloc_urb()` calls to simplify the initialization sequence and removed the redundant `kfree(buf)`. Now, `buf` is allocated after `usb_alloc_urb()`, ensuring it is correctly managed by `usb_fill_int_urb()` and freed by `usb_free_urb()` as intended.
Weakness: CWE-415
Which versions are affected by CVE-2024-53213?
It affects 1 product.
Products include Linux kernel.
How do I fix CVE-2024-53213?
Apply the vendor's patch.
Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.
Is CVE-2024-53213 being exploited?
There is no known exploitation of CVE-2024-53213 in the wild and no public exploit code.
Other vulnerabilities in Linux kernel
Sources
Also known as AZL-55407, BELL-CVE-2024-53213, DEBIAN-CVE-2024-53213, GHSA-2hwq-42hc-rhqv, ROOT-OS-DEBIAN-11-CVE-2024-53213, UBUNTU-CVE-2024-53213.