
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2023-6039 is a use-after-free vulnerability discovered in the Linux Kernel's network sub-component, specifically in the lan78xx_disconnect function within drivers/net/usb/lan78xx.c. The vulnerability was reported on November 9, 2023, and affects Linux Kernel versions up to (excluding) 6.5. This security flaw impacts systems using the Microchip USB Ethernet driver (NVD, Ubuntu).
The vulnerability stems from a race condition during device removal that leads to a use-after-free condition. The issue occurs because the timer dev->stat_monitor can schedule the delayed work dev->wq, and the delayed work dev->wq can also arm the dev->stat_monitor timer. When the device is detaching, the net_device gets deallocated, but the net_device private data could still be dereferenced in delayed work or timer handler, resulting in use-after-free bugs. The vulnerability has been assigned a CVSS v3.1 base score of 5.5 (Medium) with vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H (Bugzilla, NVD).
When exploited, this vulnerability allows a local attacker to crash the system when the LAN78XX USB device detaches. The impact is limited to denial of service through system crashes, requiring physical proximity or access to unload the lan78xx driver (Ubuntu).
The vulnerability was fixed in Linux Kernel 6.5-rc5 through a patch that reorders cleanup operations. The fix implements timer_shutdown_sync() to shutdown the timer before using cancel_delayed_work_sync() to cancel the delayed work, ensuring the net_device can be deallocated safely. Additionally, the dev->flags setting was moved to occur after timer_shutdown_sync() (GitHub).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."