usb: gadget: r8a66597: avoid double free of ep0_req in probe error path
- Published
- Last modified
- Where the record stands: published, rejected by its publisher, or superseded by another id.What do these mean? →
- published
- Whether CISA lists it in its Known Exploited Vulnerabilities catalog: proof that attackers are using it.What do these mean? →
- Not listed in CISA KEV
- Fix
- Fixed in 5.10.270, 5.15.221, 6.1.188, 6.6.157, 6.12.110, and 2 more
- Whether working attack code is public (Exploit-DB, Metasploit, Nuclei or GitHub). Public code makes attacks easier.What do these mean? →
- None on Exploit-DB, Metasploit or GitHub
Summary
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.
Timeline
- CVE published
- Record last updated
Affected versions
- Linux Linux
From 776976a67ae25d18be42794fd783a50757402cbe · fixed in c9e93290ffe7db22a8131a5f5fd026335090fbbe; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in 7721cf32efa428bd9649f4a9b89fc85601df87de; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in f9c43246128a2dd0f2bbad71decf153910ce3606; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in 150d3f3c461345b6c9ae784912cf1e49c8e5ff6b; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in b2e68583c7c51eea2aafb8f1793e0d285c56ac82; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in 6648c470918371766f6d368113dd2a4faebac93f; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in 6be64cca6527f7fc99b05abf54f22db91bbc116f; From 776976a67ae25d18be42794fd783a50757402cbe · fixed in 41d541e3718db01668a4cd29815ee4b3b55f76d2
- Linux Linux
3.17
- KernelLinux
From 3.17.0 · fixed in 5.10.270; From 5.11.0 · fixed in 5.15.221; From 5.16.0 · fixed in 6.1.188; From 6.2.0 · fixed in 6.6.157; From 6.7.0 · fixed in 6.12.110; From 6.13.0 · fixed in 6.18.52; From 6.19.0 · fixed in 7.2.6
References 8
git.kernel.org
- stable/c/c9e93290ffe7db22a8131a5f5fd026335090fbbe
- stable/c/7721cf32efa428bd9649f4a9b89fc85601df87de
- stable/c/f9c43246128a2dd0f2bbad71decf153910ce3606
- stable/c/150d3f3c461345b6c9ae784912cf1e49c8e5ff6b
- stable/c/b2e68583c7c51eea2aafb8f1793e0d285c56ac82
- stable/c/6648c470918371766f6d368113dd2a4faebac93f
- stable/c/6be64cca6527f7fc99b05abf54f22db91bbc116f
- stable/c/41d541e3718db01668a4cd29815ee4b3b55f76d2