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 C64D43254A2 for ; Wed, 18 Mar 2026 17:02:02 +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=1773853322; cv=none; b=bxRuLnXoJWR7yooE5WliQhyfDdE3rDpEpDYKMHhtNNRhy+MkQuKEvIemX33weFrBKGQcSFzcf0ONX/M/3T15uxZHxHJvKN6HRAHsD1JTzJEtYxqUHDypqQd6Q4/WcwOFDhIiP10s4oDvgMuETY+N+4QEvRH1g8L1ghTubiMTdA8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1773853322; c=relaxed/simple; bh=V2Js49lmxbMr9pI7TZCFaqV2wc+9CdgIbpxMfWe3SZc=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=W8FyC2qphiHEfq4b8Qqtyz9i3FctNxrWxk/MZQ8eN5jJcWVHmVVigQsgubytaC3PcO+cW1SB1H6GkLkXyIZWyjqD4L5KzDAz56BwmUWLKKDZLBlu1ZJ1sbtR644w5Yx20WuUXl3yQzxY6kAgp+rrwtuiPWeaJf3UMKCFCL0LqXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=2QhDYV9R; 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="2QhDYV9R" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 1DE26C19421; Wed, 18 Mar 2026 17:02:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1773853322; bh=V2Js49lmxbMr9pI7TZCFaqV2wc+9CdgIbpxMfWe3SZc=; h=From:To:Cc:Subject:Date:Reply-To:From; b=2QhDYV9RQ4AlnssyzeFSU7CWgs3qosW0KN14t15dOSe39yff24eCyO41GvvFZ6BA2 k6IBzG2x9NkYCaNxBb9LjuVlNg+tNngyOugY8DZ6F5rbIXf/gUOmOL/IX0wwr95WV5 Szo/ElkZ8b5MCafT2fdWBw2EpolPGoEnpBIYDU/M= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-23252: xfs: get rid of the xchk_xfile_*_descr calls Date: Wed, 18 Mar 2026 18:01:47 +0100 Message-ID: <2026031846-CVE-2026-23252-6bef@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=3036; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=KRG32JLHyAXFWHGMsytDpIjHhf8ojgmJ7lDhLVldwug=; b=owGbwMvMwCRo6H6F97bub03G02pJDJm7blXxTHba/elem8ncBWGLM9ZGu/3beF58UqMzS2NPs RzTDRPZjlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZhI3nqGBZN/yyi8ON6vuOaF 8o63y4LevF5w9STD/BxG+62vRZ/tW2R91/n6q9pFoUaK+QA= 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: xfs: get rid of the xchk_xfile_*_descr calls The xchk_xfile_*_descr macros call kasprintf, which can fail to allocate memory if the formatted string is larger than 16 bytes (or whatever the nofail guarantees are nowadays). Some of them could easily exceed that, and Jiaming Zhang found a few places where that can happen with syzbot. The descriptions are debugging aids and aren't required to be unique, so let's just pass in static strings and eliminate this path to failure. Note this patch touches a number of commits, most of which were merged between 6.6 and 6.14. The Linux kernel CVE team has assigned CVE-2026-23252 to this issue. Affected and fixed versions =========================== Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.18.16 with commit 18e9cf2259b4157fd282b323514375f2f6a59edb Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 6.19.6 with commit 2d8afee89262762fe0e5547772708c75f320c957 Issue introduced in 6.10 with commit ab97f4b1c030750f2475bf4da8a9554d02206640 and fixed in 7.0-rc1 with commit 60382993a2e18041f88c7969f567f168cd3b4de3 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-23252 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/xfs/scrub/agheader_repair.c fs/xfs/scrub/alloc_repair.c fs/xfs/scrub/attr_repair.c fs/xfs/scrub/bmap_repair.c fs/xfs/scrub/common.h fs/xfs/scrub/dir.c fs/xfs/scrub/dir_repair.c fs/xfs/scrub/dirtree.c fs/xfs/scrub/ialloc_repair.c fs/xfs/scrub/nlinks.c fs/xfs/scrub/parent.c fs/xfs/scrub/parent_repair.c fs/xfs/scrub/quotacheck.c fs/xfs/scrub/refcount_repair.c fs/xfs/scrub/rmap_repair.c fs/xfs/scrub/rtbitmap_repair.c fs/xfs/scrub/rtrefcount_repair.c fs/xfs/scrub/rtrmap_repair.c fs/xfs/scrub/rtsummary.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/18e9cf2259b4157fd282b323514375f2f6a59edb https://git.kernel.org/stable/c/2d8afee89262762fe0e5547772708c75f320c957 https://git.kernel.org/stable/c/60382993a2e18041f88c7969f567f168cd3b4de3