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 D3A912E22B5 for ; Tue, 9 Dec 2025 01:32:39 +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=1765243959; cv=none; b=U1+uCz3/3+xhRKvQZGnGoNbsEHMoKes7G1pODG6L1sKBPtCMIXF04TI98L6w9kv93XEGu+M5/yGk5GYvbzJYYMlZz6MPskDK62UgY28IRzUvzpE7CKapt6vIRQoRkTMGXliFQSFCf8Tqfw8cteI5pla0q3NjOFP0ojslpACmxn8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243959; c=relaxed/simple; bh=pabbcwiJ97pHNmzigeLd3uIiTqbwzkBmAx5c+v2XaEU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NxcAZCH5V6akcQuu7NJwaBWyS5y5YS7LxgSBIHw4Nxqr9gYnIf5JeliXP/V4C6M3HywBz0c04Q96Ha/Ok42mEWiSgq6nZ3m+bmDKMaYwrhcsdN14OrMx0MgwPSW8AhnWAqcOZRft7CVPsHCHzm25hn837b09YEC5FWXTodeR0NQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=OwWz0nV1; 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="OwWz0nV1" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70555C4CEF1; Tue, 9 Dec 2025 01:32:39 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243959; bh=pabbcwiJ97pHNmzigeLd3uIiTqbwzkBmAx5c+v2XaEU=; h=From:To:Cc:Subject:Date:Reply-To:From; b=OwWz0nV1qZitLig+krc4SVBrfkPjA7UHhh0U5MTxZRGF6ucSbIjQABn86j1Uoa7lA cFFbglOJvouOS94z9UUDLuFc38YkCqgwZEnV0+xj+OuNtd/fxlm1G7HMg5krYLRMRH PAG6u8Kkl7znnBhc2quudRwS8Mnlzukvza6ajUxY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53840: usb: early: xhci-dbc: Fix a potential out-of-bound memory access Date: Tue, 9 Dec 2025 10:31:24 +0900 Message-ID: <2025120957-CVE-2023-53840-797d@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=2523; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=HHa4jw85mHUqGMoXY4SL7Pcst/C5cOTeoQJ6g9StAgc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1RffZb+90q45d7qe01UGlg2VtU2r3FJ79CLmudgLP H4Yz5nWEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABM5WcIwz74p86i+f5GpjvxM uycxfUIPOZ7MY5inzdXlIW838/30ef4bY5naZfb3FoYCAA== 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: early: xhci-dbc: Fix a potential out-of-bound memory access If xdbc_bulk_write() fails, the values in 'buf' can be anything. So the string is not guaranteed to be NULL terminated when xdbc_trace() is called. Reserve an extra byte, which will be zeroed automatically because 'buf' is a static variable, in order to avoid troubles, should it happen. The Linux kernel CVE team has assigned CVE-2023-53840 to this issue. Affected and fixed versions =========================== Issue introduced in 4.12 with commit aeb9dd1de98c1a5f2007ea5d2a154c1244caf8a0 and fixed in 5.15.99 with commit e8fb0f13e45cf361fd06593d3cb2d89915cd3bd0 Issue introduced in 4.12 with commit aeb9dd1de98c1a5f2007ea5d2a154c1244caf8a0 and fixed in 6.1.16 with commit 351c8d8650d1ccc006255fa01f98b6c6496a02e5 Issue introduced in 4.12 with commit aeb9dd1de98c1a5f2007ea5d2a154c1244caf8a0 and fixed in 6.2.3 with commit df7c8aba7309f4dc55df94e06b67f576c0f52406 Issue introduced in 4.12 with commit aeb9dd1de98c1a5f2007ea5d2a154c1244caf8a0 and fixed in 6.3 with commit a4a97ab3db5c081eb6e7dba91306adefb461e0bd 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-2023-53840 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/early/xhci-dbc.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/e8fb0f13e45cf361fd06593d3cb2d89915cd3bd0 https://git.kernel.org/stable/c/351c8d8650d1ccc006255fa01f98b6c6496a02e5 https://git.kernel.org/stable/c/df7c8aba7309f4dc55df94e06b67f576c0f52406 https://git.kernel.org/stable/c/a4a97ab3db5c081eb6e7dba91306adefb461e0bd