ublk: Validate SQE128 flag before accessing the cmd
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 71f28f3136aff5890cd56de78abc673f8393cad9 · < da7e4b75e50c087d2031a92f6646eb90f7045a67| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel's ublk control-command path can access sqe->cmd before checking the IO_URING_F_SQE128 flag, potentially causing an out-of-bounds memory access when the flag is absent. The input does not specify whether exploitation requires local access, authentication, or user interaction.
Engineers running the Linux kernel should check their kernel versions; affected versions are not specified.