Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (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 0526D2DF3DA for ; Tue, 13 Jan 2026 15:31:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318278; cv=none; b=BhoqgIwxQfDHG5Llg8cGIRwG9a4XyKpFPrAfGoFuDtHsqlgWr2cBQNtZ9o6C96+V2u3Ik3t6TMhXiHTWkGJtwLaXnuxgyNnSorJV3lazK9OyGqqauA6ah/maL+sNMclm9ZI5DyA3jRucdap7N4i1n62DdAlgyCatSZXGCfLeP/k= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768318278; c=relaxed/simple; bh=breV++Z2uYrY6JTfGnwiut1t3l1j2TJGKFvsEh14T9U=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=rWl2r9xtQ+6d5z2j83MUB2I9j3ST4OkKaTvycj+UDkmG57oQtS4QeU5sjXGizvCX+Nwj4nT/U8ujYwohBwiauMMeW3wsmtRFesCVylgS9XdETjLRxj9fnO4HItCldOi/TOiHTZbI4Er+PqM+JF5tjCUxLYCzFiWFmj/J7StUWP8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tQnHxzZa; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="tQnHxzZa" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 4633BC2BC86; Tue, 13 Jan 2026 15:31:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1768318277; bh=breV++Z2uYrY6JTfGnwiut1t3l1j2TJGKFvsEh14T9U=; h=From:To:Cc:Subject:Date:Reply-To:From; b=tQnHxzZa7mIecP7gd+Um0GGlNuzYTFIvs5YYX7DSpXM0od83XrfZLt+JbFnQT4Kdb HzlGxQbYWXULCbNboHwMMS7GYQYkecLi39uASy4IJEtkWhqVCEvaR6KuB2XG4cVHMb 6niho7NOxem05kwVDXBgWyE6MJ+EvkjAAT1aIAfY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-68814: io_uring: fix filename leak in __io_openat_prep() Date: Tue, 13 Jan 2026 16:29:40 +0100 Message-ID: <2026011312-CVE-2025-68814-146a@gregkh> X-Mailer: git-send-email 2.52.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=3055; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=LmgvWBT2AvQOqwpvyKkGW7z5n7KMEQ+KnF13igv/xWE=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlpKSer7k5ssJxmVTk3dL1osnxms/Av9dPCZeLGxw9mb Th/umBmRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEyk3pJhnsVRiZsKZ3km1vIf 273/p43DtTxnbYb5TqJHvuUbLLyp89tOoGjleeOvu3U2AwA= 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: io_uring: fix filename leak in __io_openat_prep() __io_openat_prep() allocates a struct filename using getname(). However, for the condition of the file being installed in the fixed file table as well as having O_CLOEXEC flag set, the function returns early. At that point, the request doesn't have REQ_F_NEED_CLEANUP flag set. Due to this, the memory for the newly allocated struct filename is not cleaned up, causing a memory leak. Fix this by setting the REQ_F_NEED_CLEANUP for the request just after the successful getname() call, so that when the request is torn down, the filename will be cleaned up, along with other resources needing cleanup. The Linux kernel CVE team has assigned CVE-2025-68814 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit b9445598d8c60a1379887b957024b71343965f74 and fixed in 6.1.160 with commit 8f44c4a550570cd5903625133f938c6b51310c9b Issue introduced in 5.15 with commit b9445598d8c60a1379887b957024b71343965f74 and fixed in 6.6.120 with commit 18b99fa603d0df5e1c898699c17d3b92ddc80746 Issue introduced in 5.15 with commit b9445598d8c60a1379887b957024b71343965f74 and fixed in 6.12.64 with commit e232269d511566b1f80872256a48593acc1becf4 Issue introduced in 5.15 with commit b9445598d8c60a1379887b957024b71343965f74 and fixed in 6.18.3 with commit 7fbfb85b05bc960cc50e09d03e5e562131e48d45 Issue introduced in 5.15 with commit b9445598d8c60a1379887b957024b71343965f74 and fixed in 6.19-rc3 with commit b14fad555302a2104948feaff70503b64c80ac01 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-2025-68814 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: io_uring/openclose.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/8f44c4a550570cd5903625133f938c6b51310c9b https://git.kernel.org/stable/c/18b99fa603d0df5e1c898699c17d3b92ddc80746 https://git.kernel.org/stable/c/e232269d511566b1f80872256a48593acc1becf4 https://git.kernel.org/stable/c/7fbfb85b05bc960cc50e09d03e5e562131e48d45 https://git.kernel.org/stable/c/b14fad555302a2104948feaff70503b64c80ac01