CVE-2024-42304 Details
Description
In the Linux kernel, the following vulnerability has been resolved: ext4: make sure the first directory block is not a hole The syzbot constructs a directory that has no dirblock but is non-inline, i.e. the first directory block is a hole. And no errors are reported when creating files in this directory in the following flow. ext4_mknod ... ext4_add_entry // Read block 0 ext4_read_dirblock(dir, block, DIRENT) bh = ext4_bread(NULL, inode, block, 0) if (!bh && (type == INDEX || type == DIRENT_HTREE)) // The first directory block is a hole // But type == DIRENT, so no error is reported. After that, we get a directory block without '.' and '..' but with a valid dentry. This may cause some code that relies on dot or dotdot (such as make_indexed_dir()) to crash. Therefore when ext4_read_dirblock() finds that the first directory block is a hole report that the filesystem is corrupted and return an error to avoid loading corrupted data from disk causing something bad.
A vulnerability in the ext4 filesystem of the Linux kernel allows for improper handling of directory blocks. The issue arises when the first directory block is a 'hole', meaning it does not contain any data. This can occur in non-inline directories, where the absence of a dirblock is not properly reported as an error. As a result, files can be created in such directories without any indication of a problem. The vulnerability can lead to a directory block missing essential entries like '.' and '..', while still containing valid data, potentially causing crashes in functions that rely on these entries. The vulnerability affects several versions of the Linux kernel.
Users can upgrade to the latest version of the Linux kernel where this vulnerability has been fixed. For Debian 11, this update is available in the official repositories.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Sep 10, 2024References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| NVD-CWE-noinfo | Insufficient Information to Classify Weakness | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| linux linux kernel | >= 4.9.187, < 4.10 >= 4.14.135, < 4.15 >= 4.19.62, < 4.19.320 >= 5.1.21, < 5.2 >= 5.2.4, < 5.4.282 >= 5.5, < 5.10.224 >= 5.11, < 5.15.165 >= 5.16, < 6.1.103 >= 6.2, < 6.6.44 >= 6.7, < 6.10.3 |
CPE
Remediation
| |
Change History
12 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 15, 2026 | CVE Modified | kernel.org |
| Oct 15, 2026 | CVE Modified | CVE |
| Oct 15, 2026 | CVE Modified | siemens-SADP |
| Aug 4, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Jun 17, 2026 | CVE Modified | kernel.org |
| Jun 17, 2026 | CVE Modified | siemens-SADP |
| May 12, 2026 | CVE Modified | siemens-SADP |
| Nov 3, 2025 | CVE Modified | CVE |
| Oct 7, 2025 | Initial Analysis | [email protected] |
| Aug 19, 2024 | CVE Modified | kernel.org |
| Aug 17, 2024 | New CVE Received | kernel.org |