Skip to main content

In the Linux kernel, the following vulnerability has been resolved: btrfs: fix xattr replace when multiple xattrs are packed in the same item If we… (CVE-2026-98959)

0
Medium
Published: 10/23/2026 (10/23/2026, 15:31:32 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's Btrfs filesystem was resolved involving the replacement of extended attributes (xattrs) when multiple xattrs are packed in the same directory item. The issue occurs when replacing an xattr value with a different size, leading to an uninitialized directory item and filesystem corruption detected during extent buffer writeback. This can cause transaction aborts and loss of xattr data.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 10/23/2026, 18:59:10 UTC

Technical Analysis

The vulnerability in the Linux kernel's Btrfs filesystem arises when a btrfs_dir_item packs multiple xattrs due to hash collisions. When one xattr's value is replaced with a differently sized value using setxattr(2) syscalls, the deletion and insertion process shifts data in the leaf node. However, the new btrfs_dir_item is placed in an uninitialized section of the leaf, and only partial fields (value data and length) are set, leaving critical fields like name, name length, key, flags, and transaction ID uninitialized. This leads to filesystem corruption detected by the tree checker during extent buffer writeback, causing transaction aborts and loss of the replaced xattr. The issue can be reproduced by adding two xattrs with colliding hashes and then replacing one with a larger value, resulting in the loss of that xattr and kernel warnings.

Potential Impact

The vulnerability causes filesystem corruption in Btrfs when replacing extended attributes with differently sized values in certain conditions. This corruption triggers transaction aborts and can result in loss of extended attribute data. It may also cause kernel warnings and instability during filesystem operations involving xattrs. There is no indication of remote code execution or privilege escalation from the provided data.

Mitigation Recommendations

A fix for this vulnerability has been implemented in the Linux kernel. Users should update to a kernel version that includes this fix to prevent filesystem corruption when modifying extended attributes in Btrfs. Since no vendor advisory or patch links are provided, check the Linux kernel release notes or trusted sources for the specific fixed version. Until patched, avoid replacing xattrs with differently sized values when multiple xattrs are packed in the same item.

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-cf5f-cwf6-82gc
Osv Schema Version
1.4.0
Aliases
["CVE-2026-98959"]

Threat ID: 6adbaad0d73cc49347b20586

Added to database: 10/23/2026, 18:43:28 UTC

Last enriched: 10/23/2026, 18:59:10 UTC

Last updated: 10/23/2026, 22:05:21 UTC

Views: 4

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