Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 79AB74F4738 for ; Wed, 16 Sep 2026 10:45:26 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555541; cv=none; b=Be1OhCLpWxtDMjbvrRz13rKUnGdNJ83KXDu4ujfu4tEpYsSSi3moadQW6QlqRlC3cviLfxsx8Vu3KgQ4iwI+3KbUmzse18XjalKpdre3VS7dWmjqR4ciZNStgjg9wQsDqL/zBa9Pf5+RbiwH/rgj5ZN/sLuE6VmJZL+CS0usHMY= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789555541; c=relaxed/simple; bh=Yvj6lE9+NaHTmQS7siRDMJLopLIVnOb/aybe31QeNA8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sG3x0ukQQ371aQFwmcJMS8+oXFShkBiXsR6C43/zooQ1qbgHVBQtSqDc9Xd89LGHihVg1nVYoKtXf2XnRgx6g76fj3pbmzYlWqQc1Ew2XiyZVnibiFG1N149rAXncBSdE6AqkQs4TNmLtabwSrZYK1+78Goz9zHavE86hpmAKsg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=n1dnrDzr; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="n1dnrDzr" Received: by smtp.kernel.org (Postfix) with ESMTPSA id AC4491F000FF; Wed, 16 Sep 2026 10:45:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789555523; bh=78eNgEVnoL8GW2pVCDyeCVZ+jfThL5MUU7f3yYmcV3E=; h=From:To:Cc:Subject:Date:Reply-To; b=n1dnrDzrgEfYORZnje6Hz3UrBO/QNBb0NZRLyZbvcPpiJUbI15Nw5Ugxd8jJtdjD9 KhPBNqB27S5aerbmr9t8hDF73T86IXTtDmhpMXBcfd9Lef+WIU5UBI6ySPc/oh9Lwv LTsDQdnF3THqj/rPO0bWMZvjcmqUUsZlJWU0OvHA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90044: usb: gadget: f_fs: Fix Use-After-Free in AIO error path Date: Wed, 16 Sep 2026 11:32:54 +0100 Message-ID: <2026091609-CVE-2026-90044-faa1@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3030; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=mfFyQt3wTeWyZAxGP0/SC+rEKNVEVmaRIhJQd6Ik6oc=; b=owGbwMvMwCRo6H6F97bub03G02pJDFmr8jd+Kji4iX/tMatNR65/f+wZX/T4deF+/XP8Kt1Wi ysEVjxj7YhlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJVFgwzJVeELV0C3dv+uLz mxX4cvIuTKiX+8gwT2lNUoy1kPOtq8YxLy2MTj13C6taDgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman Description =========== In the Linux kernel, the following vulnerability has been resolved: usb: gadget: f_fs: Fix Use-After-Free in AIO error path In ffs_epfile_write_iter() and ffs_epfile_read_iter(), when ffs_epfile_io() fails with an error other than -EIOCBQUEUED, the io_data structure (`p`) is freed. However, for AIO operations, the kiocb cancel function was already armed and kiocb->private was set to `p`. If a concurrent cancel operation (such as sys_io_cancel()) executes after ffs_epfile_io() fails but before the function frees `p`, a Use-After-Free can occur when the cancellation handler accesses the freed pointer. To securely fix this race condition, we must properly un-arm the cancellation. Invoking `kiocb->ki_complete()` does exactly this by acquiring `ctx->ctx_lock` and safely removing the kiocb from the active sequence. In doing so, it ensures that a parallel io_cancel can no longer discover the kiocb, effectively closing the race window. We then return -EIOCBQUEUED to notify the VFS layer that the kiocb has been consumed and it should avoid attempting to complete the request again or triggering subsequent completion handlers. The Linux kernel CVE team has assigned CVE-2026-90044 to this issue. Affected and fixed versions =========================== Issue introduced in 4.0 with commit de2080d41b5d584205e408d72021f0f335a046fc and fixed in 6.18.51 with commit 153b5ecd29ed055562400bc17c91df3fd869b0ce Issue introduced in 4.0 with commit de2080d41b5d584205e408d72021f0f335a046fc and fixed in 7.2.5 with commit 4a2fb2d12b87b43724230abb52a1440617c7b6cc Issue introduced in 4.0 with commit de2080d41b5d584205e408d72021f0f335a046fc and fixed in 7.3-rc1 with commit e78dcb1f7ec271449c54984dc90c62a5ba272de7 Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2026-90044 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: drivers/usb/gadget/function/f_fs.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/153b5ecd29ed055562400bc17c91df3fd869b0ce https://git.kernel.org/stable/c/4a2fb2d12b87b43724230abb52a1440617c7b6cc https://git.kernel.org/stable/c/e78dcb1f7ec271449c54984dc90c62a5ba272de7