io_uring/kbuf: hold io_buffer_list reference over mmap
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
06.6.266.8.56.9In the Linux kernel, the following vulnerability has been resolved:
io_uring/kbuf: hold io_buffer_list reference over mmap
If we look up the kbuf, ensure that it doesn't get unregistered until after we're done with it. Since we're inside mmap, we cannot safely use the io_uring lock. Rely on the fact that we can lookup the buffer list under RCU now and grab a reference to it, preventing it from being unregistered until we're done with it. The lookup returns the io_buffer_list directly with it referenced.
From the CVE record · Linux
The Linux kernel’s io_uring/kbuf code can use a buffer list during mmap without holding a reference to it, allowing the list to be unregistered while it is in use. This requires a local mmap operation; the input does not specify authentication requirements or a concrete attacker outcome.
Anyone running the Linux kernel should check their kernel version against the vendor advisory; affected versions are not specified in the input.