From mboxrd@z Thu Jan 1 00:00:00 1970 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 00446503BDC for ; Wed, 16 Sep 2026 10:45:50 +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=1789555567; cv=none; b=Jp1yhWlmHgaPB1u2uAK1SB2ON2Ekfm7ojEog6G3HHnLQ4TENKi+/Andc3JbDvT/5k76EAk0iyM2E8gQwHgV/N/XwmKyW2Cjz6HWGRWP+mHjR90qxOSipUJjOQj29piWARiggBknYhg57LO5Ad3ShObzjqqqq8r/DTx13qImwlik= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555567; c=relaxed/simple; bh=NXCEtKlateq3/hwLhiwQWeABNaNDo7V/1C6NujaOHaI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=jV5kQlc1m+7qUz/T3k4EINWEnzg1tsKm5PWPH/KvKXGkUDh/02xv97bDYLgEWC/LiVQXeVFWgtKVqxhxhzmlgLqftJ6o5fwTtws7v5zxbMGVabusKb6mBUeTqIUYt2YaGN84lAQmWd02jkxD/UtzjsNjycPgPmR858erj5daik8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=jxxyOhcu; 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="jxxyOhcu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id DCDEE1F00893; Wed, 16 Sep 2026 10:45:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555547; bh=5d6LYhsLveWICY9spP+s93Qk4GWVJs41SWglu1MCJDA=; h=From:To:Cc:Subject:Date:Reply-To; b=jxxyOhcuO145F2ejpaofuQuo6rhyxKIpQmXuZC+LFvy4hhXeeh3ujHAKzvm6N8SJo ldAmKJEtqzYmwxyCnZFKdgneZOL/Bksp63aBzvcnWo/gO48FQ+dduJXS7/zM2UuoCk LQW5fScxqt9LJKlmKrZQtmq2f3bnLzsi1RII7Hyk= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90020: USB: gadget: fix NULL pointer dereference in gadget_dev_ioctl() Date: Wed, 16 Sep 2026 11:32:30 +0100 Message-ID: <2026091604-CVE-2026-90020-e6bc@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=2937; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=9OCGaUdPHxhj4tmFGIuWC8AsaHOet0P+qXhGYoBlw0M=; b=kA0DAAIRMUfUDdst+ykByyZiAGqqb6yi4lMpEWBLYTDqCzI4gPMZ4o+eo4CqrpRwbCNEQPwVV YhdBAARAgAdFiEE9LYMxb94wiFKMT3LMUfUDdst+ykFAmqqb6wACgkQMUfUDdst+ykMvACfR3dS U5IaMoYPe8Wy7fAlySuRnBoAoKTDtMxcw+2iJLfQGFtO0vDQRvK1 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: fix NULL pointer dereference in gadget_dev_ioctl() gadget_dev_ioctl() reads dev->gadget before acquiring dev->lock, but dev->state is checked after acquiring the lock. Therefore a concurrent bind can change the device state between these operations, which can leave ioctl with a stale NULL gadget pointer and causing a NULL pointer dereference at gadget->ops->ioctl. Read dev->gadget while holding dev->lock so that the gadget pointer and device state are sampled consistently. The Linux kernel CVE team has assigned CVE-2026-90020 to this issue. Affected and fixed versions =========================== Fixed in 5.10.270 with commit 8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1 Fixed in 5.15.221 with commit e8219accce2f6d3502ed71f5b5e854ecf27249a6 Fixed in 6.1.188 with commit 87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c Fixed in 6.6.157 with commit 162178ca83c3de986900385a0477eb539f8e1a7e Fixed in 6.12.110 with commit ebd916fdfefaacbc0e577f7037ec96b31a105e5f Fixed in 6.18.51 with commit c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb Fixed in 7.2.5 with commit 64ec019bf9a8b12f53b9f2777d65aadb730b5a84 Fixed in 7.3-rc2 with commit dd0eed9e165b1a6292f49e622e3dd0b7d99b106d 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-90020 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/legacy/inode.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/8be30959be31b4205e3bdd2e2a6221f3a2ee7ea1 https://git.kernel.org/stable/c/e8219accce2f6d3502ed71f5b5e854ecf27249a6 https://git.kernel.org/stable/c/87cbf9410b12f5c2d659bb01e8ecf6517cb9f28c https://git.kernel.org/stable/c/162178ca83c3de986900385a0477eb539f8e1a7e https://git.kernel.org/stable/c/ebd916fdfefaacbc0e577f7037ec96b31a105e5f https://git.kernel.org/stable/c/c29a83c1ff3f06d5751f6d365b606c9f81ccc4cb https://git.kernel.org/stable/c/64ec019bf9a8b12f53b9f2777d65aadb730b5a84 https://git.kernel.org/stable/c/dd0eed9e165b1a6292f49e622e3dd0b7d99b106d