CVE-2026-31596: ocfs2: handle invalid dinode in ocfs2_group_extend

Published Apr 24, 2026
·
Updated

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: handle invalid dinode in ocfs2groupextend

[BUG] kernel BUG at fs/ocfs2/resize.c:308! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI RIP: 0010:ocfs2groupextend+0x10aa/0x1ae0 fs/ocfs2/resize.c:308 Code: 8b8520ff ffff83f8 860f8580 030000e8 5cc3c1fe Call Trace: ... ocfs2ioctl+0x175/0x6e0 fs/ocfs2/ioctl.c:869 vfsioctl fs/ioctl.c:51 [inline] dosysioctl fs/ioctl.c:597 [inline] sesysioctl fs/ioctl.c:583 [inline] x64sysioctl+0x197/0x1e0 fs/ioctl.c:583 x64syscall+0x1144/0x26a0 arch/x86/include/generated/asm/syscalls64.h:17 dosyscallx64 arch/x86/entry/syscall64.c:63 [inline] dosyscall64+0x93/0xf80 arch/x86/entry/syscall64.c:94 entrySYSCALL64afterhwframe+0x76/0x7e ...

[CAUSE] ocfs2groupextend() assumes that the global bitmap inode block returned from ocfs2inodelock() has already been validated and BUGONs when the signature is not a dinode. That assumption is too strong for crafted filesystems because the JBD2-managed buffer path can bypass structural validation and return an invalid dinode to the resize ioctl.

[FIX] Validate the dinode explicitly in ocfs2groupextend(). If the global bitmap buffer does not contain a valid dinode, report filesystem corruption with ocfs2error() and fail the resize operation instead of crashing the kernel.

Affected Software

7 affected componentsFixes available
Linux Linux kernel (ocfs2)
Linux Linux kernel>=2.6.29<6.6.136
Linux Linux kernel>=6.7<6.12.83
Linux Linux kernel>=6.13<6.18.24
Linux Linux kernel>=6.19<6.19.14
Linux Linux kernel>=7.0<7.0.1
Microsoft azl3 kernel 6.6.134.1-2

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Compensating control

    Avoid performing OCFS2 resize operations (the resize ioctl) and avoid mounting untrusted or crafted OCFS2 filesystems until a Linux kernel update containing the fix for ocfs2_group_extend's dinode validation is applied; restrict access to systems performing OCFS2 resize operations to trusted administrators only.

Event History

Apr 24, 2026
CVE Published
via MITRE·02:42 PM
Data Sourced
via MITRE·02:42 PM
Description
Data Sourced
via NVD·03:16 PM
RemedyDescriptionSeverityAffected Software
Apr 26, 2026
Data Sourced
via Microsoft·08:03 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·08:03 AM
DescriptionSeverity
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2026-31596?

The severity of CVE-2026-31596 is classified as high due to the potential for a kernel panic leading to system instability.

2

How do I fix CVE-2026-31596?

To fix CVE-2026-31596, update to the latest patched version of the Linux kernel that addresses this vulnerability.

3

What systems are affected by CVE-2026-31596?

CVE-2026-31596 affects systems running the OCFS2 filesystem within the Linux kernel.

4

What are the potential impacts of CVE-2026-31596?

The potential impacts of CVE-2026-31596 include system crashes and data corruption due to handling invalid dinodes.

5

Is there a workaround for CVE-2026-31596?

There is no known workaround for CVE-2026-31596; the best action is to apply the security update as soon as available.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203