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 5C68E50AC1A for ; Wed, 16 Sep 2026 10:45:44 +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=1789555562; cv=none; b=p6J/wSXVyGkr9Dpq7tMHxcCe7MP9L9UG70cFcAOU8vcp7hvjHfp3FygqwJw022avgmSXxmqC1KkzqFbd6WmfV0dUsvwQOutI9obH5zIo3ynJkD+7Bi/TemHmFebquZcOrIVDL4ZqUaCmZs9NnHncL5KxWBpRPtvHcYsG08viT0M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555562; c=relaxed/simple; bh=mmWj7lo8REWb1jTsAffpn4bt/jIF4O4OLo0S54z8o5g=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=VFwa6D25BsDLo0Moioflw/fvdfoMOWG7BbixGxG2MJYAoW8129RHHesmX5QmHXTOl9a6V5rz+yaxMZZ7/QqjzU4tyIMrDD1giriYuq3Iv4qV33IZQy2jGefXURwD9bq8xNm3SBbXNl0CpCvEdGuu3UQWA9gBhaihN8QcYr9B6hw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IFfLueic; 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="IFfLueic" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E0EB11F000FF; Wed, 16 Sep 2026 10:45:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555544; bh=MJRwl973QyONZ9yqKZJLVQAtZENAnT94HUa/fSO0r4c=; h=From:To:Cc:Subject:Date:Reply-To; b=IFfLueicpCNCkk6mooSLpLVVzXYJ/nRX3z4fiUkrYsoEIewlZgln1fcfc0CqY3zPL 6sASGJyyCP1c+ypPKFres42KFwBfQrZoGRQ48KXiR+d+am4/5KSDPiY8Rrvl3HXvu8 oTTj6fZ8ZJJMo8NDEs5eCkgn6jPSpqMWh4am++k4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90019: usb: gadget: fix null pointer dereference in usb_put_function_instance() Date: Wed, 16 Sep 2026 11:32:29 +0100 Message-ID: <2026091603-CVE-2026-90019-c401@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=3507; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=J1A41wjmMAZFsR+JCeK8dRgI1zSgv7fwQ31OpwjHBMU=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8lc/l++fs1LAyHfRifmpW6MaFz15pFM3PUknKudmx bSOqBkrOmJZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAiklsZ5hdeC5Vw/37Y9mWI ysT1DPWR65sWnGJYMHHdtCLTEIHlN19zzxPdVObSdyjwHAA= 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 usb_put_function_instance() usb_put_function_instance() attempts to dereference fd inside fi struct to get mod in uvc_alloc_inst() error path. However, fd is not allocated until later in try_get_usb_function_instance() after allocating fi in uvc_alloc_inst() and thus guranteed to be null in error path. Fix this by adding a null check for fi->fd that returns if fd is null. The Linux kernel CVE team has assigned CVE-2026-90019 to this issue. Affected and fixed versions =========================== Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 5.10.270 with commit 0fc54a00954f9f4c3e3d4ffa64a530685d99a39b Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 5.15.221 with commit 6e6736c049683380f5e20becde498986e9293ca4 Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 6.1.188 with commit 3a9691fff79bcce95338435599df6d3ae433cfdc Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 6.6.157 with commit 7a4f4ca7ff32ae24807c83e2a06d62b13378d53c Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 6.12.110 with commit 6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0 Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 6.18.51 with commit d3a7fa61997db3bf6dadef4c1bd87a4fa782a817 Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 7.2.5 with commit 5117f236e9e30744338b425395d55913c4500897 Issue introduced in 3.9 with commit 0062f6e56f70bd2230ba1ebd1667d1b32a1af3b2 and fixed in 7.3-rc2 with commit 6e74ac5c596fd246e37eadfc354567179ccbe9aa 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-90019 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/functions.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/0fc54a00954f9f4c3e3d4ffa64a530685d99a39b https://git.kernel.org/stable/c/6e6736c049683380f5e20becde498986e9293ca4 https://git.kernel.org/stable/c/3a9691fff79bcce95338435599df6d3ae433cfdc https://git.kernel.org/stable/c/7a4f4ca7ff32ae24807c83e2a06d62b13378d53c https://git.kernel.org/stable/c/6ea3a073ca97716d4a73df49a3bec1c3ccf8e2a0 https://git.kernel.org/stable/c/d3a7fa61997db3bf6dadef4c1bd87a4fa782a817 https://git.kernel.org/stable/c/5117f236e9e30744338b425395d55913c4500897 https://git.kernel.org/stable/c/6e74ac5c596fd246e37eadfc354567179ccbe9aa