Bug 2365012 (CVE-2025-37813) - CVE-2025-37813 kernel: usb: xhci: Fix invalid pointer dereference in Etron workaround
Summary: CVE-2025-37813 kernel: usb: xhci: Fix invalid pointer dereference in Etron wo...
Keywords:
Status: NEW
Alias: CVE-2025-37813
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2025-05-08 07:01 UTC by OSIDB Bzimport
Modified: 2025-05-08 12:54 UTC (History)
4 users (show)

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


Attachments (Terms of Use)

Description OSIDB Bzimport 2025-05-08 07:01:27 UTC
In the Linux kernel, the following vulnerability has been resolved:

usb: xhci: Fix invalid pointer dereference in Etron workaround

This check is performed before prepare_transfer() and prepare_ring(), so
enqueue can already point at the final link TRB of a segment. And indeed
it will, some 0.4% of times this code is called.

Then enqueue + 1 is an invalid pointer. It will crash the kernel right
away or load some junk which may look like a link TRB and cause the real
link TRB to be replaced with a NOOP. This wouldn't end well.

Use a functionally equivalent test which doesn't dereference the pointer
and always gives correct result.

Something has crashed my machine twice in recent days while playing with
an Etron HC, and a control transfer stress test ran for confirmation has
just crashed it again. The same test passes with this patch applied.

Comment 1 Avinash Hanwate 2025-05-08 12:05:55 UTC
Upstream advisory:
https://lore.kernel.org/linux-cve-announce/2025050817-CVE-2025-37813-8f2b@gregkh/T


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