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 247572EC541 for ; Tue, 9 Dec 2025 01:33:02 +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=1765243982; cv=none; b=GuXp0Ue+fEiAximdWsvXYQI/vPxYjAnJLIkqhZ0K8zznVvGtUAXchkTAkVX6W1v3qNzeC4DfAogkzG4F5t7nloh6ETz4zt/tqiGMYo7vZ3aeb2L+2PzMleQClWKS4eHvwIAkznSKjkorjy1MQsmtRHIYeojnyhOweIW7d+sYmA0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765243982; c=relaxed/simple; bh=TescdkYGWPcev4Hm/qUpmGkOYpk548X3MxHDojncfRY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=LTsyb7hRyBB8pXpxf8qg2+fi06ADXiSJ7X5JcZKJz+P0922fGiUIBd5QMuzzFvFO2f8Vv/5Zdct3yVXBZuCP3TD/h/YegSCfrQamn6m4sMzl7uSgi7M5tw5uL2yb0rO8S5qTyj4U2sf6iYWEkO5laAZIAxeswNN6LvLA9pRUKnk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hDf4itVb; 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="hDf4itVb" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A30F7C4CEF1; Tue, 9 Dec 2025 01:33:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765243982; bh=TescdkYGWPcev4Hm/qUpmGkOYpk548X3MxHDojncfRY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=hDf4itVbLJWv1ElIpAV/cGRvybYLAdk8Iv+WQSRup7wllH79//TdMd0Gucn+vJg+5 FXuEO3zdeyTe9tU0mFeui7cml5gmzBA3guvtIzJoL52AHU4qbfYDtvTsUDC42J47T1 QylCPIOrT/t1DzXU0Jgrf8mheptV/QFIA89LrazM= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53847: usb-storage: alauda: Fix uninit-value in alauda_check_media() Date: Tue, 9 Dec 2025 10:31:31 +0900 Message-ID: <2025120959-CVE-2023-53847-1f94@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=4552; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=7EdSwcv73UYWrztY/eZX8qYHyWhstytqFID3tQS886M=; b=owGbwMvMwCRo6H6F97bub03G02pJDJnm1ZflmgXviVqx+l0+LnZB+tP/b46Ll1r4b6v8Vlxf/ sxU8+bXjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiI0lKGBRPWvVRrycoy/R9u ceigiW6V4h+LrQzz9K+6RGhffSm3OZBh31R2N1ujQy+DAQ== 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-storage: alauda: Fix uninit-value in alauda_check_media() Syzbot got KMSAN to complain about access to an uninitialized value in the alauda subdriver of usb-storage: BUG: KMSAN: uninit-value in alauda_transport+0x462/0x57f0 drivers/usb/storage/alauda.c:1137 CPU: 0 PID: 12279 Comm: usb-storage Not tainted 5.3.0-rc7+ #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011 Call Trace: __dump_stack lib/dump_stack.c:77 [inline] dump_stack+0x191/0x1f0 lib/dump_stack.c:113 kmsan_report+0x13a/0x2b0 mm/kmsan/kmsan_report.c:108 __msan_warning+0x73/0xe0 mm/kmsan/kmsan_instr.c:250 alauda_check_media+0x344/0x3310 drivers/usb/storage/alauda.c:460 The problem is that alauda_check_media() doesn't verify that its USB transfer succeeded before trying to use the received data. What should happen if the transfer fails isn't entirely clear, but a reasonably conservative approach is to pretend that no media is present. A similar problem exists in a usb_stor_dbg() call in alauda_get_media_status(). In this case, when an error occurs the call is redundant, because usb_stor_ctrl_transfer() already will print a debugging message. Finally, unrelated to the uninitialized memory access, is the fact that alauda_check_media() performs DMA to a buffer on the stack. Fortunately usb-storage provides a general purpose DMA-able buffer for uses like this. We'll use it instead. The Linux kernel CVE team has assigned CVE-2023-53847 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 4.14.323 with commit 153c3e85873cc3e2f387169783c3a227bad9a95a Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 4.19.292 with commit 49d380bcd6cba987c6085fae6464c9c087e8d9a0 Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 5.4.254 with commit 044f4446e06bb03c52216697b14867ebc555ad3b Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 5.10.191 with commit fe7c3a445d22783d27fe8bd0521a8aab1eb9da65 Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 5.15.127 with commit 7a11d1e2625bdb2346f6586773b20b20977278ac Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 6.1.46 with commit 0d2d5282d39aed6f27dfe1ed60a5f3934ebd21cd Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 6.4.11 with commit 373e0ab8c4c516561493f1acf367c7ee7dc053c2 Issue introduced in 2.6.16 with commit e80b0fade09ef1ee67b0898d480d4c588f124d5f and fixed in 6.5 with commit a6ff6e7a9dd69364547751db0f626a10a6d628d2 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-53847 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/storage/alauda.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/153c3e85873cc3e2f387169783c3a227bad9a95a https://git.kernel.org/stable/c/49d380bcd6cba987c6085fae6464c9c087e8d9a0 https://git.kernel.org/stable/c/044f4446e06bb03c52216697b14867ebc555ad3b https://git.kernel.org/stable/c/fe7c3a445d22783d27fe8bd0521a8aab1eb9da65 https://git.kernel.org/stable/c/7a11d1e2625bdb2346f6586773b20b20977278ac https://git.kernel.org/stable/c/0d2d5282d39aed6f27dfe1ed60a5f3934ebd21cd https://git.kernel.org/stable/c/373e0ab8c4c516561493f1acf367c7ee7dc053c2 https://git.kernel.org/stable/c/a6ff6e7a9dd69364547751db0f626a10a6d628d2