In the Linux kernel, the following vulnerability has been resolved: btrfs: free iov when btrfs_uring_read_extent() fails After… (CVE-2026-98962)
Description
A vulnerability in the Linux kernel's btrfs subsystem related to improper freeing of iov memory when the function btrfs_uring_read_extent() fails has been resolved. The issue was that on failure, the caller skipped freeing the iov memory except in a specific error case (-EIOCBQUEUED), potentially causing a memory leak. The fix ensures that on failure, the code correctly frees the iov memory by falling through to the appropriate cleanup path.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel contained a vulnerability in the btrfs filesystem code where after a call to btrfs_uring_read_extent(), the caller would jump directly to an error handling label (out_acct) that skipped freeing the iov memory buffer (data->iov). This behavior was only correct for the specific error code -EIOCBQUEUED, where a deferred path owns the iov. For other failure cases, the iov memory was not freed, causing a resource leak. The fix changes the control flow so that on failure, the code falls through to out_free, ensuring proper deallocation of the iov memory.
Potential Impact
The vulnerability could lead to a memory leak in the Linux kernel's btrfs filesystem code when btrfs_uring_read_extent() fails with error codes other than -EIOCBQUEUED. This may degrade system stability or performance over time due to unreleased memory. There is no indication of direct exploitation 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 the fixed kernel version once it is released. Since this is a kernel-level fix, applying the official kernel update from the Linux distribution vendor is the recommended remediation. No additional mitigation steps are indicated.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-g5c9-4h34-4hwf
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2026-98962"]
Threat ID: 6adbaad0d73cc49347b20581
Added to database: 10/23/2026, 18:43:28 UTC
Last enriched: 10/23/2026, 18:58:51 UTC
Last updated: 10/23/2026, 22:25:06 UTC
Views: 5
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.