Skip to main content

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… (CVE-2026-98543)

0
Medium
Published: 10/18/2026 (10/18/2026, 18:31:53 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel related to BPF LSM programs attached to path_unlink and path_rmdir hooks allows mutation of victim inode extended attributes (xattrs) without holding the required inode lock. This occurs because the verifier incorrectly assumes the inode is locked, leading to potential unsafe modifications. The issue has been resolved by dropping the problematic hooks from the locked inode hooks list, ensuring the locking variants of the functions are used.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/18/2026, 20:48:34 UTC

Technical Analysis

The Linux kernel vulnerability CVE-2026-98543 involves the BPF LSM verifier incorrectly assuming that the inode is locked in the path_unlink and path_rmdir hooks. The functions bpf_[set|remove]_dentry_xattr() are rewritten by the verifier to their _locked variants, which require the caller to hold the inode's i_rwsem lock. However, security_path_unlink() and security_path_rmdir() hooks run before the victim inode's i_rwsem is taken by vfs_unlink()/vfs_rmdir(), allowing a sleepable BPF LSM program attached to these hooks to mutate the victim's xattrs without the lock held. The fix involves removing these two path hooks from the d_inode_locked_hooks list so that the verifier retains the locking variants of the functions, which internally take the lock themselves.

Potential Impact

This vulnerability allows a BPF LSM program to modify inode extended attributes without holding the necessary inode lock, potentially leading to race conditions or inconsistent filesystem state. The impact is limited to scenarios where a BPF LSM program is attached to the affected hooks and can execute such mutations. There is no indication of known exploits in the wild.

Mitigation Recommendations

A fix has been implemented in the Linux kernel by removing the path_unlink and path_rmdir hooks from the d_inode_locked_hooks list, ensuring proper locking is enforced by the verifier. Users should update to the fixed kernel version once available. Patch status is not explicitly confirmed in the provided data; check the vendor advisory for current remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Gcve Source
db.gcve.eu
Osv Id
GHSA-mhp5-jj6j-c7m7
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98543"]

Threat ID: 6ad520af2cdf04f656993ac3

Added to database: 10/18/2026, 19:40:31 UTC

Last enriched: 10/18/2026, 20:48:34 UTC

Last updated: 10/18/2026, 22:08:10 UTC

Views: 2

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses