In the Linux kernel, the following vulnerability has been...
High severity
Unreviewed
Published
Dec 27, 2024
to the GitHub Advisory Database
•
Updated Jan 10, 2025
Description
Published by the National Vulnerability Database
Dec 27, 2024
Published to the GitHub Advisory Database
Dec 27, 2024
Last updated
Jan 10, 2025
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: onceimplicitly through
usb_free_urb(dev->urb_intr)
with theURB_FREE_BUFFER
flag and again explicitly bykfree(buf)
. This causeda double free issue.
To resolve this, reordered
kmalloc()
andusb_alloc_urb()
calls tosimplify the initialization sequence and removed the redundant
kfree(buf)
. Now,buf
is allocated afterusb_alloc_urb()
, ensuringit is correctly managed by
usb_fill_int_urb()
and freed byusb_free_urb()
as intended.References