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 B4E8D52CCE6 for ; Thu, 17 Sep 2026 16:37:59 +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=1789663081; cv=none; b=AxBGroHBkfDZ9fLd/3Qdb5mKoXf0HWlWCU+O8LB9fSOIKYvVnNG4GmNIg28X/uZ1DtEp4gPcIZr8SVtjbgDiEJpUtyMGJee19NiI3ZAN3I00VFK2S68cmnGut6S4Dvyw5rbeJ+gVgeUQ0kMIuNZ8fakYBPXjBwLxlUjnfcOtCkU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663081; c=relaxed/simple; bh=sikwNrgYCDVeR1K0YM28ij21g/98fYMqHQydCAsY528=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OXRZoiyq8JiDx3qEWFHmzXn/t0vgSLG/dbn/e1tk30xKqP6tYT/jLxb64M9MjPsmAj/I1Sx2UlulbGmy9wBC7/uPOxkSM/epgj1dE9D1ufD5/DHz011C7lLQ2/uysiFQ+y+WkdgtTACIl2osyLIcxLvTD7NpkWa297OEHiwN6Ys= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ki9pc+cB; 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="ki9pc+cB" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 11C551F000FF; Thu, 17 Sep 2026 16:37:58 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663079; bh=KbLxK1KSTm9D+tsobHTD8l52ofzaxNC0esqknE9TWTM=; h=From:To:Cc:Subject:Date:Reply-To; b=ki9pc+cBQtvDpavNd6U4r7/cmKiSDydLobFIKugtvsTrZKmzGl/RUrilCmVgyMGOO zFmrgZ+t/aXFJmkkw+pAq2eQKpO9ENddu4HsLuaI+aj7B+0rcOsZ6RsAFNPYDA+Dov miBh/P8jpaFdQSdod1QfoguE5bwo+w6DUT1ff8+k= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93122: usb: gadget: uac: validate rate list length before storing Date: Thu, 17 Sep 2026 17:16:39 +0100 Message-ID: <2026091749-CVE-2026-93122-af44@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=3285; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Zsr5ZuvFZkvIWJsxWLm4tTcbwOuEQ2YnTBBMwKO0NsQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBM42rym6+nFv8YPnx7l2pl1vntV6/rml8LuPE9axq yj7aPju7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJiGxgmKfyvux+//R/94Qc S6Rl1n2QnPHZ8hrDgpndUvI7f9y8qnF3MuflrrPOC1TbtwIA 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: uac: validate rate list length before storing UAC1 and UAC2 configfs rate-list attributes parse a comma-separated list of sampling rates and store each parsed value in fixed-size arrays. The arrays have UAC_MAX_RATES entries, but the store paths do not check that the input contains at most that many tokens before writing through opts->name##s[i++]. Writing more than ten rates therefore writes past the end of the p_srates[] or c_srates[] array in struct f_uac1_opts or struct f_uac2_opts. With CONFIG_UBSAN_BOUNDS enabled, writing an 11-entry rate list to the UAC1 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac1.c:1669:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac1_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 The same reproducer against the UAC2 p_srate attribute reports: UBSAN: array-index-out-of-bounds drivers/usb/gadget/function/f_uac2.c:2087:1 index 10 is out of range for type 'int [10]' __ubsan_handle_out_of_bounds.cold f_uac2_opts_p_srate_store configfs_write_iter vfs_write ksys_write do_syscall_64 Reject additional tokens once UAC_MAX_RATES entries have been parsed. Also keep the original kstrdup() pointer for kfree(), because strsep() advances the parsing cursor. Freeing the advanced cursor leaks the original buffer on successful parses and can free an interior pointer on some error paths. The Linux kernel CVE team has assigned CVE-2026-93122 to this issue. Affected and fixed versions =========================== Issue introduced in 5.18 with commit a7339e4f5788bd088bb0be1f96a6cce459676ed0 and fixed in 7.2.6 with commit 3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb Issue introduced in 5.18 with commit a7339e4f5788bd088bb0be1f96a6cce459676ed0 and fixed in 7.3-rc1 with commit 844d83d5964b87919b958ff48405188c6ddae9cc 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-93122 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/function/f_uac1.c drivers/usb/gadget/function/f_uac2.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/3819c6f255a37c4d085ce9f264f9f11bf3c2c6bb https://git.kernel.org/stable/c/844d83d5964b87919b958ff48405188c6ddae9cc