From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 5AAC32F8EA0 for ; Fri, 8 May 2026 14:25:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250323; cv=none; b=sYhi8VSvIDfmiZ7T69Bg3wjHk6984grvC8Ed0+3A7R08UWIriJcSo0vC3nZrGzd/73p/YCIjie1cXmTvWdv10cBCy5JhB7qL3TbLSVMcDU0XLP6OgtfWJTraFs743nsuocZcngZ7nmYTf7hwnZ2wT+LiAlNoT53LLPPoJ1TADcs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1778250323; c=relaxed/simple; bh=QPtYIYZhsnqGFTGpY08gwgsRQJuCBUBHEhzUcT2B8QU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=m09xmI+eVIg1dRgNYLxiWgU4FZGZBvbVwV9+oYD3JMrfZOCCmiYiWILl+DezkryI2tu34Cyq32r69DK089CxT2Z56fw01GsHJx2tLgzCmtFD+anAtk4UiumATN9jw3U2psarVoacwBEutzn5//kwOPEAxKzPb3osfF1ZKAfjzOE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HwgecZmF; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="HwgecZmF" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E61D9C2BCB0; Fri, 8 May 2026 14:25:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1778250323; bh=QPtYIYZhsnqGFTGpY08gwgsRQJuCBUBHEhzUcT2B8QU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=HwgecZmFpQncbC7Fsc4gRaF/ZEyjAxiz/NEdekzsMIz4P9GSdG/cNwFdNgVapcpzM MF9Mr14QJ9IviUTGHGQ36/yExjSULE/NiGnMhJHkg7pP20ti+XYa6VsudnAqn3nvXI F1CCZio3K+UAIT8RUd0Y3bNrXkoa3hl7XWVwUdmA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-43432: usb: xhci: Fix memory leak in xhci_disable_slot() Date: Fri, 8 May 2026 16:22:41 +0200 Message-ID: <2026050851-CVE-2026-43432-18dd@gregkh> X-Mailer: git-send-email 2.54.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=4667; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=ImTUy7QCprq/tD0dmzg1wWFy/8Db66ARL10FM95BcR0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJl/P9bzrmbdqNi9sHupTUirmsLbZqV7NkFSgrc9maz0w n0NjDU7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCKd+xjm8LsqT9iYonkioHeq YFln5fnnOWGmDAt2XDB+dmXj29XLV67456diY9SXF3AZAA== 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: xhci: Fix memory leak in xhci_disable_slot() xhci_alloc_command() allocates a command structure and, when the second argument is true, also allocates a completion structure. Currently, the error handling path in xhci_disable_slot() only frees the command structure using kfree(), causing the completion structure to leak. Use xhci_free_command() instead of kfree(). xhci_free_command() correctly frees both the command structure and the associated completion structure. Since the command structure is allocated with zero-initialization, command->in_ctx is NULL and will not be erroneously freed by xhci_free_command(). This bug was found using an experimental static analysis tool we are developing. The tool is based on the LLVM framework and is specifically designed to detect memory management issues. It is currently under active development and not yet publicly available, but we plan to open-source it after our research is published. The bug was originally detected on v6.13-rc1 using our static analysis tool, and we have verified that the issue persists in the latest mainline kernel. We performed build testing on x86_64 with allyesconfig using GCC=11.4.0. Since triggering these error paths in xhci_disable_slot() requires specific hardware conditions or abnormal state, we were unable to construct a test case to reliably trigger these specific error paths at runtime. The Linux kernel CVE team has assigned CVE-2026-43432 to this issue. Affected and fixed versions =========================== Issue introduced in 5.10.85 with commit fee8be5bde562d4f5f9a100ca80c6d7072ed34c8 and fixed in 5.10.253 with commit 1e800e26d54ccf2ddf2ea6d6cbe021c804d8aa62 Issue introduced in 5.15.8 with commit 02d5a2a48bb44e7404b794df87e57588b2fd604e and fixed in 5.15.203 with commit 6288baf0c8c4dcfbf206773aede9c1f2269cec28 Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 6.1.167 with commit 46aea90763832cd6e9b0c2e1c00e6a9512156d4b Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 6.6.130 with commit 2e2baa8fb5aa4d080cbfeb84c51eff797529f413 Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 6.12.78 with commit 807e4fb5140c73eb5dba1e399a990db5c1f3cdf8 Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 6.18.19 with commit c65f1b840ab8ce72ba68f1b63bab7960f8fdfa89 Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 6.19.9 with commit 078b446efc0f5e496c31bccb72b98af979963a83 Issue introduced in 5.16 with commit 7faac1953ed1f658f719cdf7bb7303fa5eef822c and fixed in 7.0 with commit c1c8550e70401159184130a1afc6261db01fc0ce Issue introduced in 4.19.221 with commit cc7c2818c71ebace207df40cc586c8c74e3d1a59 Issue introduced in 5.4.165 with commit ec0cddcc2454ab08193beb473978f8f8889b7e24 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-43432 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/host/xhci.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/1e800e26d54ccf2ddf2ea6d6cbe021c804d8aa62 https://git.kernel.org/stable/c/6288baf0c8c4dcfbf206773aede9c1f2269cec28 https://git.kernel.org/stable/c/46aea90763832cd6e9b0c2e1c00e6a9512156d4b https://git.kernel.org/stable/c/2e2baa8fb5aa4d080cbfeb84c51eff797529f413 https://git.kernel.org/stable/c/807e4fb5140c73eb5dba1e399a990db5c1f3cdf8 https://git.kernel.org/stable/c/c65f1b840ab8ce72ba68f1b63bab7960f8fdfa89 https://git.kernel.org/stable/c/078b446efc0f5e496c31bccb72b98af979963a83 https://git.kernel.org/stable/c/c1c8550e70401159184130a1afc6261db01fc0ce