Description
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 products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
776976a67ae25d18be42794fd783a50757402cbe to < c9e93290ffe7db22a8131a5f5fd026335090fbbeaffected776976a67ae25d18be42794fd783a50757402cbe to < 7721cf32efa428bd9649f4a9b89fc85601df87deaffected776976a67ae25d18be42794fd783a50757402cbe to < f9c43246128a2dd0f2bbad71decf153910ce3606affected776976a67ae25d18be42794fd783a50757402cbe to < 150d3f3c461345b6c9ae784912cf1e49c8e5ff6baffected776976a67ae25d18be42794fd783a50757402cbe to < b2e68583c7c51eea2aafb8f1793e0d285c56ac82affected776976a67ae25d18be42794fd783a50757402cbe to < 6648c470918371766f6d368113dd2a4faebac93faffected776976a67ae25d18be42794fd783a50757402cbe to < 6be64cca6527f7fc99b05abf54f22db91bbc116faffected776976a67ae25d18be42794fd783a50757402cbe to < 41d541e3718db01668a4cd29815ee4b3b55f76d2affected
Linux Linux
Default version status: affected
3.17affected0 to < 3.17unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.110 to ≤ 6.12.*unaffected6.18.52 to ≤ 6.18.*unaffected7.2.6 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/c9e93290ffe7db22a8131a5f5fd026335090fbbe ↗
- https://git.kernel.org/stable/c/7721cf32efa428bd9649f4a9b89fc85601df87de ↗
- https://git.kernel.org/stable/c/f9c43246128a2dd0f2bbad71decf153910ce3606 ↗
- https://git.kernel.org/stable/c/150d3f3c461345b6c9ae784912cf1e49c8e5ff6b ↗
- https://git.kernel.org/stable/c/b2e68583c7c51eea2aafb8f1793e0d285c56ac82 ↗
- https://git.kernel.org/stable/c/6648c470918371766f6d368113dd2a4faebac93f ↗
- https://git.kernel.org/stable/c/6be64cca6527f7fc99b05abf54f22db91bbc116f ↗
- https://git.kernel.org/stable/c/41d541e3718db01668a4cd29815ee4b3b55f76d2 ↗