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 3E97231BC9E for ; Sun, 25 Jan 2026 14:37:09 +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=1769351829; cv=none; b=pDhSfWKjbW2sPCkSdJxDB6ks5Z6T8qN4D6IRqZYPEXycJ2PJNPm0N1mbtVnuUCQWav6UrJBHluCnOYrQwVCLNGLb7XhEB919baA374ijrVkoR+2oRDccKhDdarg/0HLh1BJy9xx+UdWWM1bFk/5DESrBVocERGcVaJ3TH7rBGJo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1769351829; c=relaxed/simple; bh=6sSAM9pHXYD5POZyViGoEcmFV/1nPaUhaoj30m5VTMc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=c8YAy/vmb6RlUMCPRfyUvTRRE9J1TAnwb15EhmkqJoKuDK957JHGasX/WJsSyAtCTCZPIJKYv7onFkl59TvCytTHyTTz2NAZUAwbxqj//GOVaH8lR7oWFcdcm8kO/iWaCS1qheY1xa9gn7TS9EaKMBcYq3ExMrX4VrpvClrIu5g= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HIG5QaHM; 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="HIG5QaHM" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A5A58C4CEF1; Sun, 25 Jan 2026 14:37:08 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1769351829; bh=6sSAM9pHXYD5POZyViGoEcmFV/1nPaUhaoj30m5VTMc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=HIG5QaHMtPeQK/Lo94C6TLBX0Cw+Ur1XyQV1gkiX2l3Aa45WI0ZzGyg2CGZ5ihDOZ +vEwkjrmUM1m18jl6egfptyp/8v+MGdszNHUZDy38c5pgMJCaBGq2L4SQX/lsx6X3j U4clfaNrWsvNoPpPbVTKdYsjvtaJyqS+emhB0Um4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23009: xhci: sideband: don't dereference freed ring when removing sideband endpoint Date: Sun, 25 Jan 2026 15:36:45 +0100 Message-ID: <2026012537-CVE-2026-23009-7209@gregkh> X-Mailer: git-send-email 2.52.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=3040; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=PygmftcmbQqdHgJCBYDaCnQLkSwUsbStT0Rr2gixgD0=; b=owGbwMvMwCRo6H6F97bub03G02pJDJllWqVB5ytjTvC2P/HwX7x46jKP/rWvHbqvLpyf2WpYN yXPrmVbRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEwkWJ5hvmdyqFLN5g/3X0RP 7JHh3mO4MCO1g2Em497C04vsmoITjHIPHCpiPzgp+GY5AA== 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: xhci: sideband: don't dereference freed ring when removing sideband endpoint xhci_sideband_remove_endpoint() incorrecly assumes that the endpoint is running and has a valid transfer ring. Lianqin reported a crash during suspend/wake-up stress testing, and found the cause to be dereferencing a non-existing transfer ring 'ep->ring' during xhci_sideband_remove_endpoint(). The endpoint and its ring may be in unknown state if this function is called after xHCI was reinitialized in resume (lost power), or if device is being re-enumerated, disconnected or endpoint already dropped. Fix this by both removing unnecessary ring access, and by checking ep->ring exists before dereferencing it. Also make sure endpoint is running before attempting to stop it. Remove the xhci_initialize_ring_info() call during sideband endpoint removal as is it only initializes ring structure enqueue, dequeue and cycle state values to their starting values without changing actual hardware enqueue, dequeue and cycle state. Leaving them out of sync is worse than leaving it as it is. The endpoint will get freed in after this in most usecases. If the (audio) class driver want's to reuse the endpoint after offload then it is up to the class driver to ensure endpoint is properly set up. The Linux kernel CVE team has assigned CVE-2026-23009 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit de66754e9f8029f8ae955a588959b99cab56b506 and fixed in 6.18.7 with commit 34f6634dba87ef72b3c3a3a524be663adef7ab42 Issue introduced in 6.16 with commit de66754e9f8029f8ae955a588959b99cab56b506 and fixed in 6.19-rc6 with commit dd83dc1249737b837ac5d57c81f2b0977c613d9f 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-23009 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-sideband.c 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/34f6634dba87ef72b3c3a3a524be663adef7ab42 https://git.kernel.org/stable/c/dd83dc1249737b837ac5d57c81f2b0977c613d9f