Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 0B1E84F85AA for ; Thu, 17 Sep 2026 16:39:01 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663143; cv=none; b=lzffRj3MG4lvK85rYMEDXwJNmlEm6sDy3z0q1AFc1Ri+x4w6e58ixl4PGuTzGUTO+A7a3Zlb09VlhuyFr4+Bpr9AFgD4OAqCD7mu8IlUSk8cXK0VnfECzZIHPCraBZiiQGYqTcRjxtuC9RrmlFSARnCnYVl9hF7OhXSZvqGyxrk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663143; c=relaxed/simple; bh=iNVlzMtFiAKCRc+vWCEcpG/8h87EMpE/as2tX3LBU84=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m3yWQJUNJcB0Jr4MhfddBRtKjEaO4uwrVOAO5SmdjgQbuK7xzrJU62cdkpadcewxhZ9twFIjKBpA1uAJbBqptvvOTShhotNMVoT4oZVAR1yXx6+B2gSbA2NLJ5rM15zTJ/xJkkpcQf1Skgn3pPUnn+agT7vnHRgGF7518EGsKqs= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=PAOvkbCY; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="PAOvkbCY" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 29FBB1F00893; Thu, 17 Sep 2026 16:39:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663141; bh=9ohPOPUYvC+Dkx+rZoBW4bRvs7OXBfYgubvhYzCBGsc=; h=From:To:Cc:Subject:Date:Reply-To; b=PAOvkbCY8a++gsfv9QtdUf21MYgSF2u3OV9LXScbAIAqnLYI5BTxoxjVaWFUxWK0G pRsjEjmyPDCSs+YuinoM4OUhyvdiyg4UHQ2nmz5YlW+OhwK+n5fNPc0ZqWEAQ+Tv3h O+h64W3zoF8JxYAijkfPJbY98qcIpP01gzpGB+l8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93141: usb: gadget: r8a66597: avoid double free of ep0_req in probe error path Date: Thu, 17 Sep 2026 17:16:58 +0100 Message-ID: <2026091753-CVE-2026-93141-48c8@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3549; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=8ffsFsX+hwHu0pVFG5CRa2Uu1deMc8hJKM5W58hP7tA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBC5OnDqnrdppwqH3l9K8S6I/F66w+mF/i3/WtdPVy 8ISpjFXdsSwMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEzJQZpjs/WzVH4G3Dm4WT n3muiFVc8/PSHIYFR/0KGOZtut/oq1q4+lZ6t1D0M0NDAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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. The Linux kernel CVE team has assigned CVE-2026-93141 to this issue. Affected and fixed versions =========================== Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 5.10.270 with commit c9e93290ffe7db22a8131a5f5fd026335090fbbe Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 5.15.221 with commit 7721cf32efa428bd9649f4a9b89fc85601df87de Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 6.1.188 with commit f9c43246128a2dd0f2bbad71decf153910ce3606 Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 6.6.157 with commit 150d3f3c461345b6c9ae784912cf1e49c8e5ff6b Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 6.12.110 with commit b2e68583c7c51eea2aafb8f1793e0d285c56ac82 Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 6.18.52 with commit 6648c470918371766f6d368113dd2a4faebac93f Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 7.2.6 with commit 6be64cca6527f7fc99b05abf54f22db91bbc116f Issue introduced in 3.17 with commit 776976a67ae25d18be42794fd783a50757402cbe and fixed in 7.3-rc1 with commit 41d541e3718db01668a4cd29815ee4b3b55f76d2 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-93141 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/udc/r8a66597-udc.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: 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