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 8208233E350 for ; Wed, 18 Feb 2026 14:54:31 +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=1771426471; cv=none; b=BwPdjb3GIo2Xuibt5PMMzNOlIJATLMKEDh8R82t3RRXuLED4lFvwPTP/1QGcXGR/HjyDTQoOi7g9beJ4dyIIw1fy5iqoLHu8wGwx/dW5GhKMb5SCj+xu3/GJLpAnJQf5iTpnkt6FekJdK91NDwjrReuCtp1Lh4T1s+utqa0sK8E= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1771426471; c=relaxed/simple; bh=0SRR/opjcr77z3kqruc+/nXHdRV8KdQhmiD9gKYSnjY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=NMmJK49p4JL8saqCUyimV90TVfM+fJ1owT6gxqkQw35lXc+UgFlSyGSHYpNqlgv8Nt4hZ+C2qDfinD7SW2X15/vYoNKPq3JpUZIFOCPYtN2O8GSGPBjPBC9F6KQVrJoOC1DTAT4lpoXTNBh/8ZYX4DGyvss4ycptBH5f3kCGEVc= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=rqolrQnu; 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="rqolrQnu" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C63A3C19424; Wed, 18 Feb 2026 14:54:30 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1771426471; bh=0SRR/opjcr77z3kqruc+/nXHdRV8KdQhmiD9gKYSnjY=; h=From:To:Cc:Subject:Date:Reply-To:From; b=rqolrQnusxEjShY2JLNlmwj/P/XA5kxgdMiOAASCEaa0TSh6f4P56xNLLJqDRWDfy ZSMcFlO2lYE4VKZ4UtmDnvOc+EtEtB0UvqddGhSNbeAAbyKT63D+mwBnw+D37uqvL+ ZwEvseCAPfxLRAMdKvH85bI6ofKQbPb4kYX/UdNA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23224: erofs: fix UAF issue for file-backed mounts w/ directio option Date: Wed, 18 Feb 2026 15:54:13 +0100 Message-ID: <2026021807-CVE-2026-23224-b534@gregkh> X-Mailer: git-send-email 2.53.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=3884; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=n1JbF1+u81G/e+V3lX4m7vOhGG/dVGlEGYPvEl/oc1s=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlTL/Xvn3d3eZus1+9Qqbb1c17H7FA7llm6ySO5Iu9fu OPdnjlaHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRbXEMC2Z37p+wgvHnzSM9 vHrLE0Me/YqaycewoNvQoFE38WbixxgZLx71j16Lbm9fCgA= 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: erofs: fix UAF issue for file-backed mounts w/ directio option [ 9.269940][ T3222] Call trace: [ 9.269948][ T3222] ext4_file_read_iter+0xac/0x108 [ 9.269979][ T3222] vfs_iocb_iter_read+0xac/0x198 [ 9.269993][ T3222] erofs_fileio_rq_submit+0x12c/0x180 [ 9.270008][ T3222] erofs_fileio_submit_bio+0x14/0x24 [ 9.270030][ T3222] z_erofs_runqueue+0x834/0x8ac [ 9.270054][ T3222] z_erofs_read_folio+0x120/0x220 [ 9.270083][ T3222] filemap_read_folio+0x60/0x120 [ 9.270102][ T3222] filemap_fault+0xcac/0x1060 [ 9.270119][ T3222] do_pte_missing+0x2d8/0x1554 [ 9.270131][ T3222] handle_mm_fault+0x5ec/0x70c [ 9.270142][ T3222] do_page_fault+0x178/0x88c [ 9.270167][ T3222] do_translation_fault+0x38/0x54 [ 9.270183][ T3222] do_mem_abort+0x54/0xac [ 9.270208][ T3222] el0_da+0x44/0x7c [ 9.270227][ T3222] el0t_64_sync_handler+0x5c/0xf4 [ 9.270253][ T3222] el0t_64_sync+0x1bc/0x1c0 EROFS may encounter above panic when enabling file-backed mount w/ directio mount option, the root cause is it may suffer UAF in below race condition: - z_erofs_read_folio wq s_dio_done_wq - z_erofs_runqueue - erofs_fileio_submit_bio - erofs_fileio_rq_submit - vfs_iocb_iter_read - ext4_file_read_iter - ext4_dio_read_iter - iomap_dio_rw : bio was submitted and return -EIOCBQUEUED - dio_aio_complete_work - dio_complete - dio->iocb->ki_complete (erofs_fileio_ki_complete()) - kfree(rq) : it frees iocb, iocb.ki_filp can be UAF in file_accessed(). - file_accessed : access NULL file point Introduce a reference count in struct erofs_fileio_rq, and initialize it as two, both erofs_fileio_ki_complete() and erofs_fileio_rq_submit() will decrease reference count, the last one decreasing the reference count to zero will free rq. The Linux kernel CVE team has assigned CVE-2026-23224 to this issue. Affected and fixed versions =========================== Fixed in 6.12.72 with commit ae385826840a3c8e09bf38cac90adcd690716f57 Fixed in 6.18.11 with commit d741534302f71c511eb0bb670b92eaa7df4a0aec Fixed in 6.19.1 with commit b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa 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-23224 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: fs/erofs/fileio.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/ae385826840a3c8e09bf38cac90adcd690716f57 https://git.kernel.org/stable/c/d741534302f71c511eb0bb670b92eaa7df4a0aec https://git.kernel.org/stable/c/b2ee5e4d5446babd23ff7beb4e636be0fb3ea5aa https://git.kernel.org/stable/c/1caf50ce4af096d0280d59a31abdd85703cd995c