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 3C4D237E317 for ; Sun, 18 Oct 2026 16:13:17 +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=1792339999; cv=none; b=r611tAZiE53FAYtA7TojscintorP93zp+sAvjaUuqTrGUkaiFD75bz1HDp7ljqaDE8KKhb/qqEYAPrMiXog+dWxGkwzzTd9LlWltZ27u1Sw2T+uYu7oZh07TIotUxsKgxSpWhTdpqY0WA9tx+T+akTH41jjG/DUBLLCGh08rUEc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792339999; c=relaxed/simple; bh=JNp+o3IAXwrDtia/VrbdjWA6JdLzXiF2FlBZE629MUw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=XxkR/PdW4SIi8em9oynCUmh1fQ304bnkFujnnQqPfx7YxSNOBrnV/N+kbXHstLjcCYxeQahlPwo+yIahvVA6bVl+Is8yxc/U7otKgc62Erwm9qOk6ws2TLJE9er8OdRu6tLKX3RzxBINpCF9gMlNY3jxkwfE6clUALHfie8wTSU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Fp7xL31i; 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="Fp7xL31i" Received: by smtp.kernel.org (Postfix) with ESMTPSA id ACA241F000C4; Sun, 18 Oct 2026 16:13:16 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792339997; bh=ENVJ/yNLd8bqCd6wq0vo5+m/h/Q0JITrh3CGKf6178o=; h=From:To:Cc:Subject:Date:Reply-To; b=Fp7xL31iierfAAaA7Kdaj1r9JSbblebQGx/Z1LleSyhgr16WPJHNgyGttDnbIxRYJ idfyp4mGkLF3i25xH5tTSwzPYz6vc+nQ1z0qid/IlyANi98B3ml46v0Mkp2TdpeA6G HugXgJW4X4mmxsalgedNx2bh3iCC627JDCnxPmGQ= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98770: usb: gadget: midi2: Fix the jack descriptor array sizes Date: Sun, 18 Oct 2026 17:45:45 +0200 Message-ID: <2026101819-CVE-2026-98770-8054@gregkh> X-Mailer: git-send-email 2.56.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=2828; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ZgemTacxj29TcsniyybY2jaxmXYsin5+WGRDt8yTPxs=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXXgYnnQwq3/Bz7eFDCzWK/3r1Pz4jm7BoX2mhyF2zB 9Zp6Ur3OmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiK/4yzLN5edn+0crOO7+Y fGTnTb/BUHj6dwzDgtmz5cPcfzk8PCKhsrI2xF0y2zw3DgA= 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: midi2: Fix the jack descriptor array sizes The jack in/out descriptor arrays in struct f_midi2_usb_config have the size of MAX_CABLES, which look reasonable -- but it turned out to be incorrect. Namely, the entries for those arrays are added from both inputs and outputs, hence for each loop cycle, it adds two, ended up with as twice as the expected size. This inconsistency may result in potential OOB when a large number of jacks are set up via configfs, although the max number of cables (the loop count) is limited to MAX_CABLES. For addressing it, correct the jack_ins & jack_outs array sizes to twice, MAX_CABLES * 2. The Linux kernel CVE team has assigned CVE-2026-98770 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit 856fa444b0982746f95e801bab0e586533eb29a3 and fixed in 6.12.113 with commit 8294ff75a9de23f7cc641e5e5ca31fa6ea72a574 Issue introduced in 6.6 with commit 856fa444b0982746f95e801bab0e586533eb29a3 and fixed in 6.18.56 with commit 87f2185423e01f113811301878f2f67eccec960d Issue introduced in 6.6 with commit 856fa444b0982746f95e801bab0e586533eb29a3 and fixed in 7.2.10 with commit 223c3bd02a582776d8ee47dae7b69d3258420694 Issue introduced in 6.6 with commit 856fa444b0982746f95e801bab0e586533eb29a3 and fixed in 7.3-rc6 with commit 310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1 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-98770 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_midi2.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/8294ff75a9de23f7cc641e5e5ca31fa6ea72a574 https://git.kernel.org/stable/c/87f2185423e01f113811301878f2f67eccec960d https://git.kernel.org/stable/c/223c3bd02a582776d8ee47dae7b69d3258420694 https://git.kernel.org/stable/c/310c2d4608d8c1a2baa57db1dfd319c5c40cf4a1