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 B7CDC37DAC2 for ; Sun, 18 Oct 2026 15:26:56 +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=1792337219; cv=none; b=Z55p4TaY9+RzF+vyiLiVwonJRqC/AdMVELpUkw5xmVeekk7AZJ3mYKavPNOvd9x6hH/G8HiVRy4I4lZg9H/E7Ra5o/v7qJNYWWjSHEpnmJeqA1cB4riob+H6BgFqr8UliQOzYwlxc5HcUzTyWfPBrPgI7iaviHzpZBB9TQ4rfOQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1792337219; c=relaxed/simple; bh=0jQOoa0FlFXznj18LRrX6HWTZH0jX08hHNBE7AkLekI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iZJHws9tOJfBrHzA6BnN5Rrt2DP7iY3sRPyjOPYzgGQgNcThGxEO+soxdTp+SID37WHzcHOKEHJ3agVkEpvyd4lc0vIZOh4g8FzDyQ63BRyi8+LuJ/nS7UVxuhx4OKN9TNaMks/9HOrmPpOMYgyo25cF5zFNIVEIGbeVpSbjW0Y= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=XHsevAe3; 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="XHsevAe3" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 8C6BA1F000C4; Sun, 18 Oct 2026 15:26:55 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1792337216; bh=c1P3YVOlk/PqF8nsFbP9X/GLrT4QGGHc5oPT90sgmrA=; h=From:To:Cc:Subject:Date:Reply-To; b=XHsevAe3wmgUqPzL24TquEYtsjxRfKINOmdY4888SiiT4tQe+k7XS7fpI4x05+P+r PWtq3MtA6qLK9WSS88Pe61D6zB0ZDUoK0cCVKjze5hfvXZknp5WGQo0xwhcfF5gApY RGZBgrTSLRH+EgCEdDqhx8n017t9dOnVaJulBNnI= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-98543: bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir Date: Sun, 18 Oct 2026 17:16:47 +0200 Message-ID: <2026101826-CVE-2026-98543-24d3@gregkh> X-Mailer: git-send-email 2.56.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=2634; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=XDgV4e2vxQzF3keBLzYl+393XXWk7/WbjGbY0H8NHvQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlXHvWd8j1vXl4WeSl2cY2b38wzPpU3mi/O6LNfckfpH U/gi8P+HbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRRnaG+aHOXl9m/PRkOSB/ zsB7y9JlXgpHNjMsmMDbx9d545X8R/vJFtd/O/qe26Q2HwA= 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: bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir bpf_lsm_has_d_inode_locked() makes the verifier rewrite bpf_[set|remove]_dentry_xattr() to the _locked variants, which assume that the caller already holds the inode's i_rwsem. The path_unlink and path_rmdir hooks are listed, but security_path_unlink() and security_path_rmdir() run before vfs_unlink()/vfs_rmdir() take the victim inode's i_rwsem, so a sleepable BPF LSM program attached to either hook mutates the victim's xattrs without the lock held. Drop the two path hooks from d_inode_locked_hooks so that the verifier keeps the locking bpf_[set|remove]_dentry_xattr() variants, which take the lock themselves. The Linux kernel CVE team has assigned CVE-2026-98543 to this issue. Affected and fixed versions =========================== Issue introduced in 6.15 with commit 56467292794b800164df20c076c409ac548e56ec and fixed in 6.18.55 with commit 7504b677c4370c9e4b153c553ff8831c093b1ff6 Issue introduced in 6.15 with commit 56467292794b800164df20c076c409ac548e56ec and fixed in 7.2.9 with commit 640d37fbd34d03af727dbc567f48c0203d1de6b4 Issue introduced in 6.15 with commit 56467292794b800164df20c076c409ac548e56ec and fixed in 7.3-rc5 with commit 35d442ed1f86465e49df3119fb898f985186db13 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-98543 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/bpf_fs_kfuncs.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/7504b677c4370c9e4b153c553ff8831c093b1ff6 https://git.kernel.org/stable/c/640d37fbd34d03af727dbc567f48c0203d1de6b4 https://git.kernel.org/stable/c/35d442ed1f86465e49df3119fb898f985186db13