CVE-2026-90044
Severity CVSS v4.0:
Pending analysis
Type:
Unavailable / Other
Publication date:
16/09/2026
Last modified:
30/10/2026
Description
In the Linux kernel, the following vulnerability has been resolved:<br />
<br />
usb: gadget: f_fs: Fix Use-After-Free in AIO error path<br />
<br />
In ffs_epfile_write_iter() and ffs_epfile_read_iter(), when ffs_epfile_io()<br />
fails with an error other than -EIOCBQUEUED, the io_data structure (`p`) is<br />
freed. However, for AIO operations, the kiocb cancel function was already<br />
armed and kiocb->private was set to `p`.<br />
<br />
If a concurrent cancel operation (such as sys_io_cancel()) executes after<br />
ffs_epfile_io() fails but before the function frees `p`, a Use-After-Free<br />
can occur when the cancellation handler accesses the freed pointer.<br />
<br />
To securely fix this race condition, we must properly un-arm the<br />
cancellation. Invoking `kiocb->ki_complete()` does exactly this by<br />
acquiring `ctx->ctx_lock` and safely removing the kiocb from the active<br />
sequence. In doing so, it ensures that a parallel io_cancel can no longer<br />
discover the kiocb, effectively closing the race window.<br />
<br />
We then return -EIOCBQUEUED to notify the VFS layer that the kiocb has been<br />
consumed and it should avoid attempting to complete the request again or<br />
triggering subsequent completion handlers.
Impact
Base Score 3.x
7.80
Severity 3.x
HIGH
References to Advisories, Solutions, and Tools
- https://git.kernel.org/stable/c/0a2f71ccf9c2053de725e9a7922d081f3f3a3804
- https://git.kernel.org/stable/c/153b5ecd29ed055562400bc17c91df3fd869b0ce
- https://git.kernel.org/stable/c/4a2fb2d12b87b43724230abb52a1440617c7b6cc
- https://git.kernel.org/stable/c/922a29e1f8573fd405eea1a73a52112c4e7fcfc4
- https://git.kernel.org/stable/c/b5f0e80a03e87bd932487e03248eae3ba3ed7b45
- https://git.kernel.org/stable/c/e78dcb1f7ec271449c54984dc90c62a5ba272de7


