Menu

Star on GitHub · 3.4k

CVE-2024-42304

7.8 · HIGH

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-inlin…

Published Aug 17, 2024EPSS 0.23%

Overview

CVE-2024-42304 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical 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 loadi

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2024-42304?

CVE-2024-42304 is a high-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 7.8 (HIGH).

How severe is CVE-2024-42304?

This vulnerability has a CVSS 3.1 base score of 7.8, rated HIGH. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2024-42304?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2024-42304?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42304 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related HIGH CVEs from 2024

View all
Watch the demo →