Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Linux / Linux | affected 71f28f3136aff5890cd56de78abc673f8393cad9 before 4b4dff498f46e9802f71bc84258bf73065f51c6a; affected 71f28f3136aff5890cd56de78abc673f8393cad9 before 31cac6acf77ece488f29fb8f79589d9298e969c8; affected 71f28f3136aff5890cd56de78abc673f8393cad9 before dbe8e81a2ec608f87f79a34f6444cd62f6a243bb; affected 71f28f3136aff5890cd56de78abc673f8393cad9 before f75a5555e0049e7857eae25b60aee98b80e287ec; affected 71f28f3136aff5890cd56de78abc673f8393cad9 before 17d33ba7291100008360b5a354962db37ad80684; affected 71f28f3136aff5890cd56de78abc673f8393cad9 before da7e4b75e50c087d2031a92f6646eb90f7045a67 |
| Linux / Linux | affected 6.0; unaffected 0 before 6.0; unaffected 6.1.165 through 6.1.*; unaffected 6.6.128 through 6.6.*; unaffected 6.12.75 through 6.12.*; unaffected 6.18.14 through 6.18.*; unaffected 6.19.4 through 6.19.*; unaffected 7.0 through * |
CWE
No CWE identifiers supplied.
References
- 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