CVE-2026-45962: ublk: Validate SQE128 flag before accessing the cmd
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
ublk: Validate SQE128 flag before accessing the cmd
ublk_ctrl_cmd_dump() accesses (header *)sqe->cmd before IO_URING_F_SQE128 flag check. This could cause out of boundary memory access.
Move the SQE128 flag check earlier in ublk_ctrl_uring_cmd() to return -EINVAL immediately if the flag is not set.
The Linux kernel CVE team has assigned CVE-2026-45962 to this issue.
Affected and fixed versions
===========================
Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.1.165 with commit 4b4dff498f46e9802f71bc84258bf73065f51c6a Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.6.128 with commit 31cac6acf77ece488f29fb8f79589d9298e969c8 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.12.75 with commit dbe8e81a2ec608f87f79a34f6444cd62f6a243bb Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.18.14 with commit f75a5555e0049e7857eae25b60aee98b80e287ec Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 6.19.4 with commit 17d33ba7291100008360b5a354962db37ad80684 Issue introduced in 6.0 with commit 71f28f3136aff5890cd56de78abc673f8393cad9 and fixed in 7.0 with commit da7e4b75e50c087d2031a92f6646eb90f7045a67
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-45962
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/4b4dff498f46e9802f71bc84258bf73065f51c6a https://git.kernel.org/stable/c/31cac6acf77ece488f29fb8f79589d9298e969c8 https://git.kernel.org/stable/c/dbe8e81a2ec608f87f79a34f6444cd62f6a243bb https://git.kernel.org/stable/c/f75a5555e0049e7857eae25b60aee98b80e287ec https://git.kernel.org/stable/c/17d33ba7291100008360b5a354962db37ad80684 https://git.kernel.org/stable/c/da7e4b75e50c087d2031a92f6646eb90f7045a67