Skip to contentSkip to conversation

CVE-2026-90323: ublk: validate auto buf reg before taking uring_cmd

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

ublk: validate auto buf reg before taking uring_cmd

With UBLK_F_AUTO_BUF_REG, invalid sqe->addr can fail after ublk_fill_io_cmd() has set UBLK_IO_FLAG_ACTIVE. The uring_cmd is completed while the tag stays active, which can hang teardown.

Split validation from buffer apply so the check has no side effects, then take the uring_cmd and store the already-validated buffer. Apply the same order in FETCH so io->buf is not written before __ublk_fetch() state checks.

The Linux kernel CVE team has assigned CVE-2026-90323 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.17 with commit 52460dda3a775a73f226312b43c0a0211e8665ea and fixed in 7.2.6 with commit 653d22269a8b83b491f7f186a5d7872f14e6ddca
	Issue introduced in 6.17 with commit 52460dda3a775a73f226312b43c0a0211e8665ea and fixed in 7.3-rc1 with commit ca5a01eee34c7cbe0f531a613b0292a3ad1a419b

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-2026-90323

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/653d22269a8b83b491f7f186a5d7872f14e6ddca
	https://git.kernel.org/stable/c/ca5a01eee34c7cbe0f531a613b0292a3ad1a419b