CVE-2026-43076: ocfs2: validate inline data i_size during inode read
In the Linux kernel, the following vulnerability has been resolved:
ocfs2: validate inline data isize during inode read
When reading an inode from disk, ocfs2validateinodeblock() performs various sanity checks but does not validate the size of inline data. If the filesystem is corrupted, an inode's isize can exceed the actual inline data capacity (idcount).
This causes ocfs2dirforeachblkid() to iterate beyond the inline data buffer, triggering a use-after-free when accessing directory entries from freed memory.
In the syzbot report: - isize was 1099511627576 bytes (~1TB) - Actual inline data capacity (idcount) is typically <256 bytes - A garbage reclen (54648) caused ctx->pos to jump out of bounds - This triggered a UAF in ocfs2checkdirentry()
Fix by adding a validation check in ocfs2validateinodeblock() to ensure inodes with inline data have isize <= idcount. This catches the corruption early during inode read and prevents all downstream code from operating on invalid data.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Configuration
Patch ocfs2_validate_inode_block() to validate that when reading an inode from disk, an inode’s i_size does not exceed the inline data capacity (id_count) so that ocfs2_dir_foreach_blk_id() does not iterate beyond inline data and avoids the UAF in ocfs2_check_dir_entry().
Linux kernel (OCFS2 filesystem) Add validation in ocfs2_validate_inode_block() = Ensure i_size <= inline data capacity (id_count) for inodes with inline data
Event History
Frequently Asked Questions
What is the severity of CVE-2026-43076?
CVE-2026-43076 has a severity level of high with a CVSS score of 7.8.
How do I fix CVE-2026-43076?
You can fix CVE-2026-43076 by applying the available patch from the Linux kernel.
What systems are affected by CVE-2026-43076?
CVE-2026-43076 affects the Linux kernel, specifically the ocfs2 filesystem.
What type of vulnerability is CVE-2026-43076?
CVE-2026-43076 is categorized as a Use After Free vulnerability.
When was CVE-2026-43076 published?
CVE-2026-43076 was published on May 6, 2026.