CVE-2023-6039: Kernel: use-after-free in drivers/net/usb/lan78xx.c in lan78xx_disconnect

Published Nov 8, 2023
·
Updated

A use-after-free flaw was found in lan78xxdisconnect in drivers/net/usb/lan78xx.c in the network sub-component, net/usb/lan78xx in the Linux Kernel. This flaw allows a local attacker to crash the system when the LAN78XX USB device detaches.

Other sources

There are use-after-free vulnerabilities in drivers/net/usb/lan78xx.c of linux that allow attacker to crash linux kernel when LAN78XX USB device is detaching.

The timer dev->statmonitor can schedule the delayed work dev->wq and the delayed work dev->wq can also arm the dev->statmonitor timer.

When the device is detaching, the netdevice will be deallocated. But the netdevice private data could still be dereferenced in delayed work or timer handler. As a result, the UAF bugs will happen.

Refer: https://github.com/torvalds/linux/commit/1e7417c188d0a83fb385ba2dbe35fd2563f2b6f3

— Red Hat

Affected Software

7 affected componentsFixes available
redhat/Kernel<6.5
6.5
Linux Linux kernel<6.5
Linux Linux kernel=6.5-rc1
Linux Linux kernel=6.5-rc2
Linux Linux kernel=6.5-rc3
Linux Linux kernel=6.5-rc4
debian/linux<=6.1.129-1, <=6.1.135-1
5.10.223-15.10.234-16.12.27-1

Event History

Nov 8, 2023
Data Sourced
via Red Hat·07:12 PM
DescriptionSeverityAffected Software
Nov 9, 2023
CVE Published
via MITRE·03:08 PM
Data Sourced
via MITRE·03:08 PM
DescriptionSeverityWeakness
Jan 12, 2024
Data Sourced
via Launchpad·12:28 AM
Description
Apr 28, 2025
Data Sourced
via Ubuntu·02:16 PM
RemedyDescriptionSeverityAffected Software

Frequently Asked Questions

1

What is CVE-2023-6039?

CVE-2023-6039 is a use-after-free vulnerability in the lan78xx_disconnect function in the drivers/net/usb/lan78xx.c file in the Linux Kernel.

2

What is the severity of CVE-2023-6039?

The severity of CVE-2023-6039 is medium with a score of 5.5.

3

How does CVE-2023-6039 affect Red Hat Kernel 6.5?

Red Hat Kernel 6.5 is affected by CVE-2023-6039.

4

How can a local attacker exploit CVE-2023-6039?

A local attacker can exploit CVE-2023-6039 by detaching the LAN78XX USB device, which causes a use-after-free flaw and may crash the system.

5

Where can I find more information about CVE-2023-6039?

More information about CVE-2023-6039 can be found at the Red Hat Security Advisory and the GitHub commit referenced in the description.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203