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 1EA1E2F5479 for ; Fri, 12 Dec 2025 17:58:53 +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=1765562334; cv=none; b=Nt10PvoI0gl0rJUJaRaNTjKae3CTu4+ZegGcHFqGR7chkiXI0+S5bXxX4Z3m3kCXzkpsxIcdrC7v6Xc26mc6vw0g3oC6u35L9wZWaBAn1setD8Oq5OUeyhXwC1RLF45sS6X4hRk4B2b4+byQCmsk4KrHtK9YmRWo9VAS1smwRnA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1765562334; c=relaxed/simple; bh=K094Q3Q+RJBjH13VMWnBFafl7EmfFNNV34WobSWeMwY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=nKfji0EfxxFgb/uNR0P94uJkAAipb0SpHnf6PTZVylK4ajoMqFkoBAwjOCyXd/GXTKk44Y4lW+8pGp1EnGi8SOqYZZnG0ihp57V42pGPGzwu3aadZ7ub1csZufKW9ULjQ8Zq0EI1sM9gk0vyxL/bw3MiXaz2wx4CqBxOgU0VK5E= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=14wrfz3n; 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="14wrfz3n" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 506E3C4CEF1; Fri, 12 Dec 2025 17:58:53 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1765562333; bh=K094Q3Q+RJBjH13VMWnBFafl7EmfFNNV34WobSWeMwY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=14wrfz3ndR3ehcc+m0g1VadjHgF5WrZxLBYUcrnA45g6qAAOwWon84ZCbwy/PMTrF C4EPVWTQTLY8FzIxhX1rU18q4/apLvCfAa3SN4EP4wpCz1FvDZLWF2mVqSpBeDdEvk G3fAW07m4tBmP3T2UuxT7yi2WOAwCXk4QtOk0lZY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40345: usb: storage: sddr55: Reject out-of-bound new_pba Date: Fri, 12 Dec 2025 18:58:49 +0100 Message-ID: <2025121248-CVE-2025-40345-1796@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=2758; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=xHUyGzA02o1Z5Lmo9Zf/o9OvF79ItWE62OXkBgl6Uwc=; b=owGbwMvMwCRo6H6F97bub03G02pJDJk24TduPkwPL7m50uipWAFnd1tl60afX6lvXk6ZM3dP0 2p2sZWtHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRKBGG+f4R2vy9nf4iah0L bJwOWtvUzFl/l2F+YFM6C+/5FLX3z/WZ75RfMj+fzB8LAA== 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: sddr55: Reject out-of-bound new_pba Discovered by Atuin - Automated Vulnerability Discovery Engine. new_pba comes from the status packet returned after each write. A bogus device could report values beyond the block count derived from info->capacity, letting the driver walk off the end of pba_to_lba[] and corrupt heap memory. Reject PBAs that exceed the computed block count and fail the transfer so we avoid touching out-of-range mapping entries. The Linux kernel CVE team has assigned CVE-2025-40345 to this issue. Affected and fixed versions =========================== Fixed in 5.10.247 with commit d00a6c04a502cd52425dbf35588732c652b16490 Fixed in 5.15.197 with commit 26e9b5da3231da7dc357b363883b5b7b51a64092 Fixed in 6.1.159 with commit aa64e0e17e3a5991a25e6a46007770c629039869 Fixed in 6.6.119 with commit 04a8a6393f3f2f471e05eacca33282dd30b01432 Fixed in 6.12.61 with commit a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f Fixed in 6.17.11 with commit 5ebe8d479aaf4f41ac35e6955332304193c646f6 Fixed in 6.18 with commit b59d4fda7e7d0aff1043a7f742487cb829f5aac1 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-2025-40345 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/sddr55.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/d00a6c04a502cd52425dbf35588732c652b16490 https://git.kernel.org/stable/c/26e9b5da3231da7dc357b363883b5b7b51a64092 https://git.kernel.org/stable/c/aa64e0e17e3a5991a25e6a46007770c629039869 https://git.kernel.org/stable/c/04a8a6393f3f2f471e05eacca33282dd30b01432 https://git.kernel.org/stable/c/a20f1dd19d21dcb70140ea5a71b1f8cbe0c7e68f https://git.kernel.org/stable/c/5ebe8d479aaf4f41ac35e6955332304193c646f6 https://git.kernel.org/stable/c/b59d4fda7e7d0aff1043a7f742487cb829f5aac1