ublk: check import_ubuf() return value
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ublk: check import_ubuf() return value
import_ubuf() can fail if the address range (provided by the userspace ublk server) is outside the allowed user address space. Return that 0 bytes were copied if import_ubuf() fails rather than passing an uninitialized struct iov_iter to ublk_copy_user_pages().
From the CVE record · Linux
The Linux kernel’s ublk code did not check whether import_ubuf() failed. If a userspace ublk server supplies an address range outside the allowed user address space, the kernel can pass an uninitialized iterator to ublk_copy_user_pages().
Engineers running Linux kernels with ublk should check their kernel versions; affected versions were not specified.