vduse: return compat ioctl results directly
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 |
|
|
7.2.77.3In the Linux kernel, the following vulnerability has been resolved:
vduse: return compat ioctl results directly
The compat handler handles VDUSE_IOTLB_GET_FD and VDUSE_VQ_GET_INFO, but then calls the native handler. Their different command sizes make native dispatch return -ENOIOCTLCMD.
For GET_FD, this overwrites receive_fd()'s return value after the descriptor is installed, leaking one fd per call. Return handled compat results directly and use native dispatch only for other commands.
From the CVE record · Linux
The Linux kernel's vduse compat ioctl handler processes VDUSE_IOTLB_GET_FD and VDUSE_VQ_GET_INFO, then incorrectly calls the native handler. For VDUSE_IOTLB_GET_FD, this can leak one file descriptor per call when the compat ioctl is invoked; authentication and user-interaction requirements are not specified.
Engineers running Linux kernels with the vduse component should check their versions; affected versions were not specified.