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 B0065306DD8 for ; Fri, 4 Jul 2025 13:43: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=1751636603; cv=none; b=eeI3a5rX/Mn8yJVRQ2+SczUGKu7xlpSUhJgUxIDybKmhBAJpxz6fHLqnhwKzJPyEY4x0xoS5D5gIWzhal722f26SfNzir+M7dbGLp6ZdzJ48r4nbM4qzbScQ2HwJvolOIW5d7t5DBX+6U3Bm0QPRwSuVdkmqFYGEX5aR3RAE4+4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751636603; c=relaxed/simple; bh=0Pl3uBa6TIHnE7VU2XiLBVDa6iRaHC/Pk/NqjsW+ZuE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Zwg0/KUfXU2tJRD4imI3KxebFH3ImQ4UDqYLQK7Ka8ph0+R3Zej22PaHwmS5NTVrstI3+wJuK6pJ6KJWisWXSU57nmJH6v4MHEvj0saQ7kwCpcly+p26IlEkGARQOFtanUCOePwxnzlg584R7yxnWYMCnBvUldtuJlT3MCWxGCA= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=DDddqVXJ; 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="DDddqVXJ" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 205A9C4CEEE; Fri, 4 Jul 2025 13:43:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751636603; bh=0Pl3uBa6TIHnE7VU2XiLBVDa6iRaHC/Pk/NqjsW+ZuE=; h=From:To:Cc:Subject:Date:Reply-to:From; b=DDddqVXJf+HcSYXCINrXXuNloJJNpi9cXN7r9+gZx57n/qlvgCVcNRLa2O+tLRTPZ SzOpglrp7MX8lDW+bJGaS5k91kvY9eqU54kaf8Ymkg/UD/Jpw3rUGuf7LBvfk0bhIr 79uKvIVs3pnKmggCAbVKUG59rNx+3BkRaxlWhyyg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38182: ublk: santizize the arguments from userspace when adding a device Date: Fri, 4 Jul 2025 15:37:11 +0200 Message-ID: <2025070411-CVE-2025-38182-fd0c@gregkh> X-Mailer: git-send-email 2.50.0 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2335; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=rk8yHttH2LAqTK0U9oLHzAFqcTV2pdleSWPgYotpHK4=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnpN9kv9rz1fbpS0rxNzlfeY3awx9qnf9b92nfpbtqzZ UpqhvrBHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjARiy8Ms9k3rP8xt6a3S9Gy dBGfMgunv9jnFQzzjGLaubRsppetWb6z87nQG8UKxvvJAA== 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: ublk: santizize the arguments from userspace when adding a device Sanity check the values for queue depth and number of queues we get from userspace when adding a device. The Linux kernel CVE team has assigned CVE-2025-38182 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.6.95 with commit 3162d8235c8c4d585525cee8a59d1c180940a968 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.12.35 with commit 0f8df5d6f25ac17c52a8bc6418e60a3e63130550 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.15.4 with commit e2b2b7cf6368580114851cb3932f2ad9fbf23386 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.16-rc3 with commit 8c8472855884355caf3d8e0c50adf825f83454b2 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-38182 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/block/ublk_drv.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/3162d8235c8c4d585525cee8a59d1c180940a968 https://git.kernel.org/stable/c/0f8df5d6f25ac17c52a8bc6418e60a3e63130550 https://git.kernel.org/stable/c/e2b2b7cf6368580114851cb3932f2ad9fbf23386 https://git.kernel.org/stable/c/8c8472855884355caf3d8e0c50adf825f83454b2