CVE-2026-93141: usb: gadget: r8a66597: avoid double free of ep0_req in probe error path

Published Sep 17, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

usb: gadget: r8a66597: avoid double free of ep0req in probe error path

If usbaddgadgetudc() fails, r8a66597probe() jumps to erraddudc and frees ep0req, then falls through to cleanup2 where ep0req is freed again when it is non-NULL.

Remove the redundant free from erraddudc and keep the cleanup in cleanup2 so the request is released exactly once.

Issue found using a prototype static analysis tool and confirmed by code review.

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 17, 2026
CVE Published
via MITRE·04:11 PM
Data Sourced
via MITRE·04:11 PM
Description

Frequently Asked Questions

1

When can the double free occur?

It occurs only when usb_add_gadget_udc() fails during r8a66597_probe(). That error path frees ep0_req and then reaches a later cleanup block that frees the same non-NULL request again.

2

How was this issue identified?

The issue was found using a prototype static analysis tool and then confirmed by code review.

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