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 08D7C264F81 for ; Tue, 16 Sep 2025 08:12:01 +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=1758010322; cv=none; b=K50Xqke9oNEOsmlcmrXm85krVEou+ExOlm2uqAPD2kTact1j/coJjRCJ3G422VpEH6S/OSC6ox4Te6jB2q5G7yJ8+WH92FyoNAfaM01nw1ANVA8LDb3SEhEbqrNRG0k12jq69u7eSZK4gTqicZQ0VYt3x1xiv1xSuqkiUWwZebc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1758010322; c=relaxed/simple; bh=oY/NziRSem8kESYvKKyq4FpS4Wzrsi41ASe3PmlCRv4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cuIpqxBe6xcKnspiGP/2uEFnCFRmc9R2HuzW7eY/5ZCesF3b0S47FerC40vFPzHj1NFAyBQyQ/VfNgNS25dk5N5CFOC8xNUBDt/GcoB5ahLXEC87k0q2Ue/3dAGh7dobaD80FGhEkTch0ImCp9YVoIPAHAlR700tsYuqHaVIzew= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=KhAPOuLP; 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="KhAPOuLP" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 741B8C4CEEB; Tue, 16 Sep 2025 08:12:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1758010321; bh=oY/NziRSem8kESYvKKyq4FpS4Wzrsi41ASe3PmlCRv4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=KhAPOuLPmy2uxLRlVXr1DmejIDkq1AiHK9gYlgJA36kPik26GEg0hjRW/YcZKjdux I8hQQvWQGdouJXGDDNHmtAvDJqtsYU16T3m+jAqhzP/6tk2qJ1KU4BOQKXFJdoP6aM e3bgfVN5+KkmRE7eUINs4bGHe44utECr9GJ8MKPg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2023-53269: block: ublk: make sure that block size is set correctly Date: Tue, 16 Sep 2025 10:07:07 +0200 Message-ID: <2025091603-CVE-2023-53269-4dc7@gregkh> X-Mailer: git-send-email 2.51.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=2239; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cY7bOPTsrEdyvEXMU+Iljc5E9Btws3B1pFpxif3Zp/w=; b=owGbwMvMwCRo6H6F97bub03G02pJDBknpZZr3tTclFPt8+ndEe+8E0ukKxfY9XTHsdvMbZE3/ cC7c6tSRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzknCjDgunlDxWswlUWsV+X 1jJp+vqpnUPgAsMcrr7Ky6JTbmRam9410dxYdKDH5L0LAA== 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: block: ublk: make sure that block size is set correctly block size is one very key setting for block layer, and bad block size could panic kernel easily. Make sure that block size is set correctly. Meantime if ublk_validate_params() fails, clear ub->params so that disk is prevented from being added. The Linux kernel CVE team has assigned CVE-2023-53269 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.1.24 with commit 231a49460ac0203270da2471928d392e5586370f Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.2.11 with commit 9dbe85ac618ef6ae60abe5dd17ae2b29065d9c1e Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.3 with commit 1d1665279a845d16c93687389e364386e3fe0f38 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-53269 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/231a49460ac0203270da2471928d392e5586370f https://git.kernel.org/stable/c/9dbe85ac618ef6ae60abe5dd17ae2b29065d9c1e https://git.kernel.org/stable/c/1d1665279a845d16c93687389e364386e3fe0f38