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.
Published: 2026-10-18
Score: n/a
EPSS: n/a
KEV: No
Impact: Race condition allowing unauthorized modification of inode xattrs
Action: Apply patch
AI Analysis

Impact

A race condition exists in the Linux kernel’s BPF LSM where BPF programs can modify extended attributes of a file’s inode without holding the inode’s read‑write semaphore. The path_unlink and path_rmdir hooks are invoked before the kernel takes the victim inode’s lock, so a sleepable BPF LSM program attached to these hooks can change or delete xattrs in the interval where the lock is not held. This can result in unintended alteration of file metadata and may compromise data integrity.

Affected Systems

Any Linux kernel that implements BPF LSM hooks for unlink or rmdir operations is potentially affected. The affected product is the Linux kernel; no specific released versions are listed, so kernels containing the vulnerable implementation – until the patch that removes the insecure hooks is applied – should be considered at risk.

Risk and Exploitability

The CVSS score is not disclosed in the available data, and the EPSS score is not available, so the precise severity and exploitation likelihood are unknown. The vulnerability is not listed in the CISA KEV catalog. Exploitation requires local kernel access to load a BPF LSM program that targets the unlink or rmdir hooks; such capability is typically limited to privileged users or compromised processes. The attack vector is local, with the potential to cause integrity problems if successfully triggered.

Generated by OpenCVE AI on October 18, 2026 at 18:11 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Linux kernel to include commit 35d442ed1f86465e49df3119fb898f985186db13 or later, which removes the insecure path hooks and enforces proper locking for BPF set/remove dentry xattr functions.
  • If an immediate kernel update is not possible, disable or remove BPF LSM programs that target unlink or rmdir hooks, ensuring no untrusted code can invoke set or remove dentry xattr operations without holding the necessary lock.
  • Implement system controls to restrict loading of BPF LSM programs, such as limiting BPF program creation to privileged users and auditing BPF program signatures to prevent unauthorized manipulation of inode attributes.

Generated by OpenCVE AI on October 18, 2026 at 18:11 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Sun, 18 Oct 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-410

Sun, 18 Oct 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title bpf: fs/xattr: don't assume the inode is locked in path_unlink/path_rmdir
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-10-18T15:18:10.823Z

Reserved: 2026-09-25T10:25:14.356Z

Link: CVE-2026-98543

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-10-18T16:17:06.200

Modified: 2026-10-18T16:17:06.200

Link: CVE-2026-98543

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-10-18T18:15:15Z

Weaknesses
  • CWE-410

    Insufficient Resource Pool