Shellfeed logo Shellfeed

CVE-2026-93141 · UNKNOWN

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

EPSS: 0.2% probability of exploitation in the next 30 days (percentile 12.6).

Details

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

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

If usb_add_gadget_udc() fails, r8a66597_probe() jumps to err_add_udc
and frees ep0_req, then falls through to clean_up2 where ep0_req is
freed again when it is non-NULL.

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

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

Affected packages

  • GIT git.kernel.org/pub/scm/linux/kernel/git/stable/linux [776976a67ae25d18be42794fd783a50757402cbe – c9e93290ffe7db22a8131a5f5fd026335090fbbe]
  • Linux Kernel [3.17.0 – 5.10.270] [5.11.0 – 5.15.221] [5.16.0 – 6.1.188] [6.2.0 – 6.6.157] [6.7.0 – 6.12.110] [6.13.0 – 6.18.52] [6.19.0 – 7.2.6]

References