Bug 2528642 (CVE-2026-80824) - CVE-2026-80824 kernel: usb: usbfs: fix use-after-free of usb_device in usbdev_release()
Summary: CVE-2026-80824 kernel: usb: usbfs: fix use-after-free of usb_device in usbdev...
Keywords:
Status: NEW
Alias: CVE-2026-80824
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-09-04 16:08 UTC by OSIDB Bzimport
Modified: 2026-11-11 11:33 UTC (History)
17 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:89082 0 None None None 2026-10-24 16:39:38 UTC
Red Hat Product Errata RHSA-2026:89083 0 None None None 2026-10-24 16:48:48 UTC
Red Hat Product Errata RHSA-2026:90365 0 None None None 2026-10-26 21:02:52 UTC
Red Hat Product Errata RHSA-2026:91565 0 None None None 2026-10-28 03:11:59 UTC
Red Hat Product Errata RHSA-2026:94537 0 None None None 2026-11-09 14:40:03 UTC
Red Hat Product Errata RHSA-2026:95346 0 None None None 2026-11-06 18:09:26 UTC
Red Hat Product Errata RHSA-2026:98608 0 None None None 2026-11-11 11:33:30 UTC

Description OSIDB Bzimport 2026-09-04 16:08:22 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: usbfs: fix use-after-free of usb_device in usbdev_release()

usbdev_release() drops its reference to the struct usb_device before
draining the list of completed async URBs, but that drain path reads back
through the same object: free_async() calls dec_usb_memory_use_count()
for any URB whose buffer came from the usbfs mmap() region, and its first
statement is bus_to_hcd(ps->dev->bus).

After a disconnect the usbfs reference can be the last one, in which case
usb_put_dev() frees the device and the subsequent loop reads offset 80 of
freed memory and uses the result as a struct usb_hcd *, which
hcd_buffer_free_pages() then dereferences.

This is reachable by an unprivileged process that has read/write access to
a /dev/bus/usb node: mmap() the fd, submit one URB with a buffer inside the
mapping, wait for the device to be unplugged, then munmap() and close().
It reproduces on every attempt rather than being a race, because a live
MAP_SHARED vma holds a reference on the struct file, so usbdev_release()
cannot run until the last vma is gone and the freeing branch of
dec_usb_memory_use_count() is always taken.

  BUG: KASAN: slab-use-after-free in dec_usb_memory_use_count+0x3ae/0x410
  Read of size 8 at addr ffff8880122ee050 by task poc/769
  CPU: 1 UID: 1000 PID: 769 Comm: poc Tainted: G    B    6.12.94 #3

  Call Trace:
   dec_usb_memory_use_count+0x3ae/0x410
   free_async+0x2aa/0x4f0
   usbdev_release+0x375/0x460
   __fput+0x3ea/0xb50
   __x64_sys_close+0x86/0x100

  Allocated by task 11:
   usb_alloc_dev+0x55/0xd90
   hub_event+0x2524/0x43d0

  Freed by task 769:
   kfree+0x121/0x360
   device_release+0xd2/0x280
   usb_put_dev+0x23/0x30
   usbdev_release+0x2d8/0x460

Release the device reference after the drain loop instead. Nothing between
the two points requires it to have been dropped.

Comment 5 Jon Orris 2026-10-24 16:39:36 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:89082 https://access.redhat.com/errata/RHSA-2026:89082

Comment 6 Jon Orris 2026-10-24 16:48:46 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8

Via RHSA-2026:89083 https://access.redhat.com/errata/RHSA-2026:89083

Comment 7 Jon Orris 2026-10-26 21:02:50 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:90365 https://access.redhat.com/errata/RHSA-2026:90365

Comment 8 Jon Orris 2026-10-28 03:11:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:91565 https://access.redhat.com/errata/RHSA-2026:91565

Comment 9 Jon Orris 2026-11-06 18:09:24 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 4.22

Via RHSA-2026:95346 https://access.redhat.com/errata/RHSA-2026:95346

Comment 10 errata-xmlrpc 2026-11-09 14:39:55 UTC
This issue has been addressed in the following products:

  Red Hat OpenShift Container Platform 5.0

Via RHSA-2026:94537 https://access.redhat.com/errata/RHSA-2026:94537

Comment 11 errata-xmlrpc 2026-11-11 11:33:28 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:98608 https://access.redhat.com/errata/RHSA-2026:98608


Note You need to log in before you can comment on or make changes to this bug.