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 424B83B71B3 for ; Thu, 17 Sep 2026 16:26: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=1789662363; cv=none; b=N7On5eqe/ddB57chdFLgDAdWesOuANhnbsGCt1unYOyepm+OVPYg5vjoVGzj1XnSMLaEarXJkmM3/Yr2g2an5nMtj//Ky+94VxWUb98FQjyo1/pTxzgrk96l1AAOHQTIFdhpWQOkgvvL2mpuPdebtD9YX8j2K3/NDLHe9KIUw5M= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789662363; c=relaxed/simple; bh=sFas64AmqCixdSpPjYfoCuVATa18ASGD4PuVSGBWdho=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=gw9CdAlVBb2uAeBqkrWoFM0IPO+Vc4gkRImnbXETfaQC7vktQbyPfmBG6OtFOIA6DQEwqLHJvFnrh2LukNH92IQ2zaResXWc1w1nJDcA7oRPdWFLUX56+W3DoOsw/GONFI/rXMCYatKLuzFO3sOaMMS/sMOJ/ED/yJd6JObZwGM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=cUfk6N7M; 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="cUfk6N7M" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 823221F000FF; Thu, 17 Sep 2026 16:26:01 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789662362; bh=J3hCpEmerMH0TK598roRho/KLc3BpOCRpbxQt2OdXFQ=; h=From:To:Cc:Subject:Date:Reply-To; b=cUfk6N7Mp2c4EUAPbJAP2pdo0zZPWXC6NURu3JfF8H6dIT7B0kToXxTv9cc9180NM Hs6hxzTUjTamw0Amku5DXq4zg8/TE/V22UKUewOhJSKfaBhgu4BlSTY38m6hyhe3n3 Y9sHlZSoxwRhC0DXXjkGk0OWwsZOv0+Pw7lYnbmI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-90321: ocfs2: validate inline xattrs during inode block validation Date: Thu, 17 Sep 2026 17:12:31 +0100 Message-ID: <2026091758-CVE-2026-90321-6084@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=3228; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=CFrkh+61ha4qSq3PKShqJvllvDfCVEQVH6kQg4rFQkM=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBGb17Wz+Lbe6eb/n4X6tQh6LvU6lMz9fXSw1+03uw cbfj714O2JZGASZGGTFFFm+bOM5ur/ikKKXoe1pmDmsTCBDGLg4BWAi/3UY5qk2s6bPrnuybq3D Q1lepvVM5w34tjDMz500/xS/OGcyS8TV4mvBs7ZdXHvyCAA= 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: ocfs2: validate inline xattrs during inode block validation Patch series "ocfs2: validate xattr entry bounds", v7. This series validates OCFS2 xattr entry name/value bounds when xattr metadata is read and validated, before getxattr() or listxattr() can walk out-of-range entry arrays or offsets from corrupted metadata. This patch (of 2): ocfs2_validate_inode_block() verifies a dinode before OCFS2 users walk metadata from it, but inline xattr metadata is still checked only in operation-specific consumers. The existing ibody lookup helper validates inline header placement and entry count, but inode block validation does not reject entry name/value bounds. Add a flat xattr entry validator and call it from inode block validation for inline xattrs. Keep the operation paths on their existing header/count lookup checks; the full entry bounds check now runs when the inode block is validated at read time. Reject corrupted inline xattr metadata before ocfs2_xattr_ibody_get() or listxattr() can walk past the inline storage. Validation reproduced this kernel report: BUG: KASAN: use-after-free in ocfs2_xattr_find_entry+0x5a/0x170 Read of size 2 at addr ffff8881242a2000 by task python3/529 Call Trace: dump_stack_lvl+0x66/0xa0 print_report+0xce/0x630 kasan_report+0xe0/0x110 ocfs2_xattr_find_entry+0x5a/0x170 ocfs2_xattr_get_nolock+0x20a/0x820 ocfs2_xattr_get+0x10c/0x1e0 __vfs_getxattr+0xe2/0x130 vfs_getxattr+0x185/0x1b0 The Linux kernel CVE team has assigned CVE-2026-90321 to this issue. Affected and fixed versions =========================== Issue introduced in 2.6.28 with commit cf1d6c763fbcb115263114302485ad17e7933d87 and fixed in 7.2.6 with commit 3fd45b24879fa4885b66a582a6e47eda67f11310 Issue introduced in 2.6.28 with commit cf1d6c763fbcb115263114302485ad17e7933d87 and fixed in 7.3-rc1 with commit 8914a3330b72378136c2c02d6328a826f6abdad7 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-90321 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/ocfs2/inode.c fs/ocfs2/xattr.c fs/ocfs2/xattr.h 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/3fd45b24879fa4885b66a582a6e47eda67f11310 https://git.kernel.org/stable/c/8914a3330b72378136c2c02d6328a826f6abdad7