In the Linux kernel, the following vulnerability has been resolved: ocfs2: clear extent cache after moving/defragmenting extents The extent map… (CVE-2025-40233)
A vulnerability in the Linux kernel's ocfs2 filesystem occurs due to stale extent map cache after moving or defragmenting extents. This stale cache causes a mismatch between cached extent flags and the actual flags on disk, triggering a kernel BUG_ON condition. The issue arises specifically when reflinked extents are moved or defragmented without invalidating the extent map cache. The vulnerability has been resolved by clearing the extent map cache after each extent move or defragment operation to ensure fresh data is read from disk.
AI Analysis
Technical Summary
The Linux kernel ocfs2 filesystem had a vulnerability where the extent map cache was not cleared after moving or defragmenting extents. This caused subsequent operations to read stale extent flags from the cache, which did not match the updated flags on disk. The mismatch leads to a BUG_ON trigger in ocfs2_refcount_cal_cow_clusters(), potentially causing kernel crashes. The problem occurs in a sequence involving copy_file_range() creating reflinked extents, ioctl(FITRIM) triggering extent moves, and the cache not being invalidated after these moves. The fix involves clearing the extent map cache after each extent move or defragment operation in __ocfs2_move_extents_range(), ensuring consistency between cached and on-disk extent flags.
Potential Impact
This vulnerability can cause kernel crashes (BUG_ON) due to stale cached extent flags mismatching the actual disk state. This impacts system stability and availability, potentially leading to denial of service. The vulnerability affects the ocfs2 filesystem in the Linux kernel and involves high confidentiality, integrity, and availability impact as indicated by the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves clearing the extent map cache after extent move or defragment operations. Users should monitor official Linux kernel advisories for patches addressing CVE-2025-40233 and apply updates when available.
In the Linux kernel, the following vulnerability has been resolved: ocfs2: clear extent cache after moving/defragmenting extents The extent map… (CVE-2025-40233)
Description
A vulnerability in the Linux kernel's ocfs2 filesystem occurs due to stale extent map cache after moving or defragmenting extents. This stale cache causes a mismatch between cached extent flags and the actual flags on disk, triggering a kernel BUG_ON condition. The issue arises specifically when reflinked extents are moved or defragmented without invalidating the extent map cache. The vulnerability has been resolved by clearing the extent map cache after each extent move or defragment operation to ensure fresh data is read from disk.
CVSS v3.1
Score 7.8high
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
The Linux kernel ocfs2 filesystem had a vulnerability where the extent map cache was not cleared after moving or defragmenting extents. This caused subsequent operations to read stale extent flags from the cache, which did not match the updated flags on disk. The mismatch leads to a BUG_ON trigger in ocfs2_refcount_cal_cow_clusters(), potentially causing kernel crashes. The problem occurs in a sequence involving copy_file_range() creating reflinked extents, ioctl(FITRIM) triggering extent moves, and the cache not being invalidated after these moves. The fix involves clearing the extent map cache after each extent move or defragment operation in __ocfs2_move_extents_range(), ensuring consistency between cached and on-disk extent flags.
Potential Impact
This vulnerability can cause kernel crashes (BUG_ON) due to stale cached extent flags mismatching the actual disk state. This impacts system stability and availability, potentially leading to denial of service. The vulnerability affects the ocfs2 filesystem in the Linux kernel and involves high confidentiality, integrity, and availability impact as indicated by the CVSS vector.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. The described fix involves clearing the extent map cache after extent move or defragment operations. Users should monitor official Linux kernel advisories for patches addressing CVE-2025-40233 and apply updates when available.
Technical Details
- Gcve Source
- db.gcve.eu
- Osv Id
- GHSA-pmpf-32ww-gfmp
- Osv Schema Version
- 1.4.0
- Aliases
- ["CVE-2025-40233"]
- Database Specific Severity
- HIGH
- Cvss Version
- 3.1
Threat ID: 6a6b72d59c2644c7f8479f86
Added to database: 07/30/2026, 15:50:45 UTC
Last enriched: 07/30/2026, 17:22:21 UTC
Last updated: 09/10/2026, 19:38:49 UTC
Views: 15
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.