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 1A00E4F30E3 for ; Wed, 16 Sep 2026 10:45:58 +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=1789555576; cv=none; b=o29JYBtq+7C7mFW9MF30yt6i2sig4cqqljY2srpL6VXsy97pn5IUDUA/fDM2q/qLHKOO+1IkCkGYJ2Xmy3XW0w7ljXKvWoVuigqtCXMzd4piCUA30UrH+JiGRPPppHoohCPRbKxOX+YL566IHtGuoG+Mb+mNIa20JzCVcIX5U+A= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555576; c=relaxed/simple; bh=cX5WJK8XM760w2xmd+0iOHglbtw5N1pKNY3FSy7Ubg0=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=OvAhCt6Ooxu2gEr3S7v7/NvLu3+XoAaEr2PoO4wIvP3/AIvkJeQm8nK1sSMoF5kAzr6aRMikEjA4qy6uQCGmhKOu8FmqPjwpHl/fp8p8RJJgkx6R2WQh81llMmZrS/48Pv4uNx4Uq2NUTgsZhiQ18ub3/oFyVIaxhnPUxP7U1Jw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=1dCO2fcf; 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="1dCO2fcf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id EA6FB1F00898; Wed, 16 Sep 2026 10:45:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555556; bh=kw+SIJN3hltueCOeK59w1g4DxK9tlA5r8ArST1R3utU=; h=From:To:Cc:Subject:Date:Reply-To; b=1dCO2fcfepO3RN40eeqlPXHEhXB46p2zvmF8dGY5EokCc4Mtx1H2HgcCJLkSO0tdh DuqvM6//gHHDV7eOeEqsBw2KbtVFEQhkRoDrBgKbHXEB1ooaKDTFq71i3uXj8IhiGb fyCK6pG/iEeaMy8aUQX4OwpdGWMV4ia9O3VGrev8= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90023: usb: gadget: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers() Date: Wed, 16 Sep 2026 11:32:33 +0100 Message-ID: <2026091604-CVE-2026-90023-b80d@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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7cgYvhLKU+mpbcN+Xd86/u11EbQQ0xpxR/ddLqyDopU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8tfYPpWf411ilSa0/++n1CUaXyWfNm9S1mYuF1/0Y eGEF9XfOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiRpEMC5qDLhlaL295Y9Oh EFxn+Lt6uubhlwzzU9v5+/5dq2A5nsA0P5L9G+uHpIpsAA== 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: f_mass_storage: fix null pointer dereference in fsg_common_set_num_buffers() Previously fsg_num_buffers_validate() was removed as it was not necessary due to Kconfig setting the limits for n from 2 to 256 with default as 2. However, setting the page content in such a way that kstrtou8() reflects n value as either 0 or 1 bypasses these restrictions leading to a null pointer dereference if n is 0. Fix this by adding a check for n < 2 and returning -EINVAL if n is either 0 or 1 consistent with Kconfig logic. The Linux kernel CVE team has assigned CVE-2026-90023 to this issue. Affected and fixed versions =========================== Issue introduced in 4.8 with commit fe5a6c48fd954489f51aab151d5dad9254c76419 and fixed in 6.18.52 with commit 9e8dd2a7a8ccbb756771ad985b0ad3387ed3c957 Issue introduced in 4.8 with commit fe5a6c48fd954489f51aab151d5dad9254c76419 and fixed in 7.2.5 with commit b9b5b5df5b8dd3c1572ed267200276a44cc67d8e Issue introduced in 4.8 with commit fe5a6c48fd954489f51aab151d5dad9254c76419 and fixed in 7.3-rc2 with commit 2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc 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-90023 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_mass_storage.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/9e8dd2a7a8ccbb756771ad985b0ad3387ed3c957 https://git.kernel.org/stable/c/b9b5b5df5b8dd3c1572ed267200276a44cc67d8e https://git.kernel.org/stable/c/2c0f5ca48674a5b5f9fa4a9c3325aa48053af0bc