Skip to main content

In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix readdir position truncation on 32-bit kernels In… (CVE-2026-89490)

0
Medium
Published: 09/11/2026 (09/11/2026, 21:31:28 UTC)
Source: GCVE Database

Description

A vulnerability in the Linux kernel's ocfs2 filesystem on 32-bit kernels causes incorrect directory read position handling when directories exceed 4 GiB in size. This leads to readdir() re-enumerating directory entries indefinitely beyond the 4 GiB boundary. The issue arises from a 32-bit mask applied to a 64-bit position value, truncating the high bits. 64-bit kernels are not affected. A fix has been implemented by casting the mask operand to 64-bit to prevent truncation.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 09/12/2026, 01:14:52 UTC

Technical Analysis

The Linux kernel's ocfs2 filesystem had a vulnerability in the ocfs2_dir_foreach_blk_el() function where the directory cookie position (ctx->pos) was truncated on 32-bit kernels due to a 32-bit mask applied to a 64-bit signed position value. This truncation caused the high 32 bits of the position to be cleared, resetting the directory read position back into the first 4 GiB block when crossing the 4 GiB boundary. This results in indefinite re-enumeration of directory entries beyond 4 GiB on 32-bit kernels. The fix involves casting the mask operand to loff_t (64-bit) before the bitwise AND operation, ensuring correct 64-bit masking. 64-bit kernels are unaffected by this issue.

Potential Impact

On 32-bit Linux kernels using ocfs2, reading directories larger than 4 GiB can cause readdir() to loop indefinitely over the first 4 GiB of directory entries. This can disrupt applications relying on directory enumeration, potentially causing performance degradation or denial of service in directory listing operations. 64-bit kernels are not impacted.

Mitigation Recommendations

A fix has been implemented in the Linux kernel source code by casting the mask operand to 64-bit before the bitwise operation, preventing position truncation on 32-bit kernels. Users should apply the official kernel update containing this fix. No additional mitigation is required for 64-bit kernels. Patch status is not explicitly stated; check the vendor advisory or kernel release notes for the fixed version and apply updates accordingly.

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-3jg7-r7pg-8654
Osv Schema Version
1.4.0
Aliases
["CVE-2026-89490"]

Threat ID: 6aa4a01b55bf5e2cf5a86722

Added to database: 09/12/2026, 00:43:07 UTC

Last enriched: 09/12/2026, 01:14:52 UTC

Last updated: 09/12/2026, 01:14:52 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