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-&gt;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-&gt;ki_complete()` does exactly this by<br /> acquiring `ctx-&gt;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.