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 9C8454A99C4 for ; Thu, 24 Sep 2026 16:12:02 +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=1790266324; cv=none; b=YuUTo6k2yZiq9Nlr32A754+3mNYbmTP5AH6DSlYWjlyQMFiFaQrKcIAH/tzhmP6BlSk9ZSxyfgoA2Cwbvxa8tAcDLRcJ0HeCeluq0ufc/zOZ2nLBv1efr6XavdOsnqd0O8vi2U/voMi0PgEUxIKNw+1M77iU9xhPhXuOBpBUNSU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1790266324; c=relaxed/simple; bh=qdxhknnr44nKWBQicpBCNsIcQFc6fNgMTuZJ/pJDdSc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ErbIT9i1sHuaLMSekwKgJ7Vm4bvubN9boUsUjqIjD8hfqforw14tLO5GMW2FsClFSMmNWvL1XdFfWgdxBNwxiALwiNK8N6vUMpySmE8yh3NuF+T0e1bEYrocYEAgiDorUFdT6GsRugiLwpaYePSCYB0vgGrE7krFbbWIfmounhE= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=dOk5eo8D; 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="dOk5eo8D" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D96CA1F000FF; Thu, 24 Sep 2026 16:12:00 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1790266322; bh=3uBHg5bBXtLTAamP82/qLAK0Wk4p2Nw/Nltep4M/qKk=; h=From:To:Cc:Subject:Date:Reply-To; b=dOk5eo8DHf3jMCWzY2hbB1jCTSxM6qQ8z3CKZo5dyDy2tYuyumuCvmpAyVpugPXh1 nXxsdl7cBaS/FSrWZqyyZqpDoF9vWSj73Hwp/y4xNOA0cG7In2YrIgIzidYRe+ckwM OZT+nZrMmAWJnPismuurvlbgbwktB3vjkCmXyg6s= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93813: btrfs: tree-checker: validate INODE_REF's namelen Date: Thu, 24 Sep 2026 18:02:49 +0200 Message-ID: <2026092421-CVE-2026-93813-01a2@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=4546; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=2WlzzNWOK0lMugl8CC7XGd+9eS0u/fRhpcVbUoDdYk8=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlbPXvPzr+s1K81y2OrzKdH0fc0qjIWZEeyH9I8zXspu tqW8WhFRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAEzknwHDglXFM4Ry7ZZpfF5x Zk4Jv+CWd52TLRnmGfhXGjCYX9K35s53DmGZHrJmf9RsAA== X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: quoted-printable From: Greg Kroah-Hartman Description =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D In the Linux kernel, the following vulnerability has been resolved: btrfs: tree-checker: validate INODE_REF's namelen [BUG] A crafted btrfs image can trigger the following crash: BUG: unable to handle page fault for address: ffffd1dc42884000 #PF: supervisor write access in kernel mode #PF: error_code(0x0002) - not-present page CPU: 9 UID: 0 PID: 1034 Comm: poc Not tainted 7.1.0-rc4-custom+ #383 PREE= MPT(full) 46af0a92938a63be7132e0dfd71e62327c51d5c2 Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS unknown 02/02/20= 22 RIP: 0010:memcpy+0xc/0x10 Call Trace: read_extent_buffer+0xe4/0x100 [btrfs 3cf0785dd58fec8c5ff84633b772f17ce1f= 92a8f] btrfs_get_name+0x15e/0x1e0 [btrfs 3cf0785dd58fec8c5ff84633b772f17ce1f92a= 8f] reconnect_path+0x165/0x390 exportfs_decode_fh_raw+0x337/0x400 ? drop_caches_sysctl_handler+0xb0/0xb0 ---[ end trace 0000000000000000 ]--- RIP: 0010:memcpy+0xc/0x10 Kernel panic - not syncing: Fatal exception [CAUSE] TThe crafted image has the following corrupted INODE_REF item: item 9 key (258 INODE_REF 257) itemoff 11544 itemsize 4106 index 2 namelen 4096 name: d\000\000\000\000\000\000\000\000\000\= 000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000= \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00= 0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0= 00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\= 000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000= \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00= 0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0= 00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\= 000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000= \000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\00= 0\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\0= 00\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\= 000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000\000= \000 The itemsize matches the namelen, but the namelen is 4096, way larger than normal name length limit (BTRFS_NAME_LEN, 255). Meanwhile the memory of the @name is only 255 byte sized, this will cause out-of-boundary access, and cause the above crash. [FIX] Add extra namelen verification for INODE_REF, just like what we have done in ROOT_REF checks. Now the crafted image can be rejected gracefully: BTRFS critical (device dm-2): corrupt leaf: root=3D5 block=3D30572544 slot= =3D14 ino=3D259, invalid inode ref name length, has 4096 expect [1, 255] BTRFS error (device dm-2): read time tree block corruption detected on log= ical 30572544 mirror 2 [ Rebase, add a Link: tag, add an simple cause analyze ] The Linux kernel CVE team has assigned CVE-2026-93813 to this issue. Affected and fixed versions =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D= =3D=3D Fixed in 6.12.111 with commit eeddee090b834a7d4b6a8214d2e3739e64c7a338 Fixed in 6.18.53 with commit 8f75c19892263bc0555fba922aefe103e841e86d Fixed in 7.2 with commit 3dc22abc21f5892406c09202fa2627196cc96967 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=3DCVE-2026-93813 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D The file(s) affected by this issue are: fs/btrfs/tree-checker.c Mitigation =3D=3D=3D=3D=3D=3D=3D=3D=3D=3D 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/eeddee090b834a7d4b6a8214d2e3739e64c7a338 https://git.kernel.org/stable/c/8f75c19892263bc0555fba922aefe103e841e86d https://git.kernel.org/stable/c/3dc22abc21f5892406c09202fa2627196cc96967