CVE-2023-6039
Linux Kernel vulnerability analysis and mitigation

Overview

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).

Technical details

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).

Impact

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).

Mitigation and workarounds

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).

Additional resources


SourceThis report was generated using AI

Related Linux Kernel vulnerabilities:

CVE ID

Severity

Score

Technologies

Component name

CISA KEV exploit

Has fix

Published date

CVE-2025-68753HIGH7.8
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68756HIGH7.1
  • Linux KernelLinux Kernel
  • linux-oracle
NoYesJan 05, 2026
CVE-2025-68764MEDIUM5.5
  • Linux KernelLinux Kernel
  • linux-realtime
NoYesJan 05, 2026
CVE-2025-68758MEDIUM5.5
  • Linux KernelLinux Kernel
  • kernel-zfcpdump-core
NoYesJan 05, 2026
CVE-2025-68762N/AN/A
  • Linux KernelLinux Kernel
  • kernel
NoYesJan 05, 2026

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management