Skip to contentSkip to conversation

CVE-2023-53269: block: ublk: make sure that block size is set correctly

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 16, 2025

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

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