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 900683815E7 for ; Sat, 25 Jul 2026 08:58:36 +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=1784969917; cv=none; b=qIr+vkEAzrcQY+e9CVok2XGDsWYjBAKnUOMWX03ciY/pSg+o6mexXoFCSf8wipM4upXzP3ev+BP2sJAUu7s92oEo8pDBoxUKxtd6DsiYrPynY+smCEKL+LaxzuuziK4ygbWxE0dtP64XPJZOIctzWm3WCJ+pepnZ5KgyxD9/Ve0= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784969917; c=relaxed/simple; bh=Q7eQDZXpLaeu1LdlvaCMGyO/SuWllBf4T7Of83j3xvM=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Dl4iEmkncXIZzxcy2PzTPdYGfY4MhJ/6sOPD/Kqj8hQy5HQ94TXuG1kq6P6gKm9NFmx63DdKCB6ZSOs7V7z/msdVPaQH/X8Ki/xFDENbJDc+DJeoN2f/olihDM5nkwyquffXoQijgBLEjw1mk8m6VHgHv/Opxty2P8xstxUrNjE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=RNTzllAG; 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="RNTzllAG" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D774B1F000E9; Sat, 25 Jul 2026 08:58:35 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784969916; bh=g6jUgcM9QoujsTh+ZElI8O8k6Wio3DMObR0wwHGzRog=; h=From:To:Cc:Subject:Date:Reply-To; b=RNTzllAGcSfUpg5eVRFq2W9KQVoyUEuPU1/9JJ8oxCHjsSEUamw9Mo2tg+MB854WH jP9xRz05HTIZ+DAqt7XGBekZI+8RdHCZVP9Ptry1LpwVoElC/Rv0Pts6spoas/ouB0 siMsHWYOjE2pgACvfmtd3QuoyqERA/gjSKLFl0y4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-64426: io_uring/nop: fix file reference leak with IOSQE_FIXED_FILE Date: Sat, 25 Jul 2026 10:50:43 +0200 Message-ID: <2026072535-CVE-2026-64426-cd00@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=3119; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=3j0k2+0KGYEIyrRAox7mLeRmQQh2DnEVduqTpGUm+q8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkpFckfpgnbSP+cVCLIkPur/rC0ZesTvm2WFqtLWdlUn Tt5xSU7YlkYBJkYZMUUWb5s4zm6v+KQopeh7WmYOaxMIEMYuDgFYCJB3QwLziU8EqlXvbops2nJ QhFOrqcRa/SOM8x3PrORYW1a3td9vM1XJNMf/F27+887AA== 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/nop: fix file reference leak with IOSQE_FIXED_FILE NOP file-acquisition support choses between a fixed (registered) file and a normal fget()'d file based on its own IORING_NOP_FIXED_FILE flag in sqe->nop_flags. However, a request's REQ_F_FIXED_FILE is set independently from the generic IOSQE_FIXED_FILE sqe flag during request init, before the issue handler runs. If a NOP is submitted with IOSQE_FIXED_FILE set (so REQ_F_FIXED_FILE is set) but without IORING_NOP_FIXED_FILE, io_nop() takes the normal path and grabs a real reference via io_file_get_normal(). On completion, io_put_file() only drops the reference when REQ_F_FIXED_FILE is clear, so the fget()'d file is never released and leaks: BUG: memory leak unreferenced object 0xffff88800f42c240 (size 176): kmem_cache_alloc_noprof+0x358/0x440 alloc_empty_file+0x57/0x180 path_openat+0x44/0x1e50 do_file_open+0x121/0x200 do_sys_openat2+0xa7/0x150 __x64_sys_openat+0x82/0xf0 Decide between fixed and normal file acquisition from REQ_F_FIXED_FILE, the same way io_assign_file() does for every other opcode, and fold IORING_NOP_FIXED_FILE into REQ_F_FIXED_FILE at prep time. The Linux kernel CVE team has assigned CVE-2026-64426 to this issue. Affected and fixed versions =========================== Issue introduced in 6.13 with commit a85f31052bce52111b4e9d5a536003481d0421d0 and fixed in 6.18.39 with commit 722869fcff598fad20d5ab79c305897a7534708b Issue introduced in 6.13 with commit a85f31052bce52111b4e9d5a536003481d0421d0 and fixed in 7.1.4 with commit 7267717f35787167fcce4bc14f6ef3fa06682dcf Issue introduced in 6.13 with commit a85f31052bce52111b4e9d5a536003481d0421d0 and fixed in 7.2-rc1 with commit 2564ca2e31bd8ee8348362941af2ee4671e487ca 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-64426 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/nop.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/722869fcff598fad20d5ab79c305897a7534708b https://git.kernel.org/stable/c/7267717f35787167fcce4bc14f6ef3fa06682dcf https://git.kernel.org/stable/c/2564ca2e31bd8ee8348362941af2ee4671e487ca