io_uring/af_unix: disable sending io_uring over sockets
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 0091bfc81741b8d3aeb3b7ab8636f911b2de6e80 · < 705318a99a138c29a512a72c3e0043b3cd7f55f4| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
io_uring/af_unix: disable sending io_uring over sockets
File reference cycles have caused lots of problems for io_uring in the past, and it still doesn't work exactly right and races with unix_stream_read_generic(). The safest fix would be to completely disallow sending io_uring files via sockets via SCM_RIGHT, so there are no possible cycles invloving registered files and thus rendering SCM accounting on the io_uring side unnecessary.
From the CVE record · Linux
The Linux kernel's io_uring handling of AF_UNIX sockets can create file reference cycles and race with unix_stream_read_generic(). This can occur when io_uring files are sent over sockets using SCM_RIGHT; the input does not specify an attacker outcome or authentication requirements.
Check systems running the Linux kernel; affected versions are not specified.