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 AF47E391512 for ; Sun, 19 Jul 2026 12:03:38 +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=1784462619; cv=none; b=MMhAlXcdKA9tTN4k2SJRYNo5H2WFOAYyTED3FZy8iSTfCUL17RJakWpEN1L02/u2ub5Azx/bWnIcFZnomLqPAigfUEPr/ypnKU410GPB1+xUGGU48TdxJ2frhVppWWT/Gd1oLJs7PcxzWvjVxx3m9nbAELBaKpTNTSOaaJAzTN8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1784462619; c=relaxed/simple; bh=YHj4m2fZnEIW0ggx0v8x8O8onj2OU4XSxTjmprK5Bf4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=P2UPqEJ6C6OoMwyOgygznp5ppqwfMzCxZ4s5w5N+eMILvq4+PuQdLTNjyZsqoZA8YVkHh4mmNxe+tAl3/g+xImMPZEnEktGOXS46RYjeRBzw10h4Axepjxr4dOhf5HtyGF/YMVPgMjJRbnhZRj0dMKlS5ABjASCNEaRtDfZds6w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=h68HZAro; 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="h68HZAro" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 0D54D1F000E9; Sun, 19 Jul 2026 12:03:37 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1784462618; bh=SntLMe9IamTlBVJy9+WwN5H9Aifno1I1EtFqG+E1xyY=; h=From:To:Cc:Subject:Date:Reply-To; b=h68HZAro7x6oxupfsBucEtIdGUf5VLQ9Pzns25zyx5806X44bFJM3X00TRmkuW8jG nduzKBIICrq3C0ZgdO97hcz5161tvZaARTxE1DU3ji9mG54T5Rh/iaIIb8LqhZOJPj E05zTJeTW9FXupRoEr9p2WHvtbH/xnpAHDJsUJmE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-63816: f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode Date: Sun, 19 Jul 2026 14:02:33 +0200 Message-ID: <2026071904-CVE-2026-63816-0e95@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=3058; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=v1Degzk05GO48Ek/o0KBLPBRLXlSW3oW7MopOr++En0=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkxe/bqPHsh9Pkhx9p9O97u2FP8SEfggKZL0fsb0orlu 9atmfN6T0csC4MgE4OsmCLLl208R/dXHFL0MrQ9DTOHlQlkCAMXpwBMZMoXhjl8XCf5moWD3xRu S6t8IL++d+PPOdsYFmxN+rjPaWW129SGgOC2T39Loo5f+wUA 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: f2fs: atomic: fix UAF issue on f2fs_inode_info.atomic_inode - ioctl(F2FS_IOC_GARBAGE_COLLECT_RANGE) - shrink - f2fs_gc - gc_data_segment - ra_data_block(cow_inode) - mapping = F2FS_I(inode)->atomic_inode->i_mapping : f2fs_is_cow_file(cow_inode) is true - f2fs_evict_inode(atomic_inode) - clear_inode_flag(fi->cow_inode, FI_COW_FILE) - F2FS_I(fi->cow_inode)->atomic_inode = NULL ... - truncate_inode_pages_final(atomic_inode) - f2fs_grab_cache_folio(mapping) : create folio in atomic_inode->mapping - clear_inode(atomic_inode) - BUG_ON(atomic_inode->i_data.nrpages) We need to add a reference on fi->atomic_inode before using its mapping field during garbage collection, otherwise, it will cause UAF issue. The Linux kernel CVE team has assigned CVE-2026-63816 to this issue. Affected and fixed versions =========================== Issue introduced in 5.19 with commit 3db1de0e582c358dd013f3703cd55b5fe4076436 and fixed in 6.12.96 with commit 56038756aae68312df00d4aa1d97e51ef3aca725 Issue introduced in 5.19 with commit 3db1de0e582c358dd013f3703cd55b5fe4076436 and fixed in 6.18.39 with commit a499f77c06050a28c897bdbd86cd2f0721ae0743 Issue introduced in 5.19 with commit 3db1de0e582c358dd013f3703cd55b5fe4076436 and fixed in 7.1.3 with commit a805fec35c201c59643ddcde713bce4051c8ee27 Issue introduced in 5.19 with commit 3db1de0e582c358dd013f3703cd55b5fe4076436 and fixed in 7.2-rc1 with commit e0288584baa5dc41df4a829a023c4c1b33fe53d7 Issue introduced in 5.18.18 with commit 6db52f1944417c2601182a591a704e2f119c5215 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-63816 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/f2fs/gc.c fs/f2fs/inode.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/56038756aae68312df00d4aa1d97e51ef3aca725 https://git.kernel.org/stable/c/a499f77c06050a28c897bdbd86cd2f0721ae0743 https://git.kernel.org/stable/c/a805fec35c201c59643ddcde713bce4051c8ee27 https://git.kernel.org/stable/c/e0288584baa5dc41df4a829a023c4c1b33fe53d7