Skip to main content

Over 150 LLM Providers · Over 5,300 Models The most extensible AI-powered pentesting platform. Open source. Star on GitHub

CVE-2024-42304

7.8 · HIGH
Published Aug 17, 2024 linux EPSS 0.23% (14th pctl)

Overview

CVE-2024-42304 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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.

Affected Products

Vendor Product Versions Status
linux linux_kernel >= 4.9.187, < 4.10 Affected

Frequently Asked Questions

What is CVE-2024-42304?

CVE-2024-42304 is a high-severity vulnerability affecting linux linux_kernel. 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 and patches from linux. Update linux_kernel to the latest patched version. 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's AI-powered security agents can automatically detect CVE-2024-42304 across your infrastructure using autonomous pentesting, DAST scanning, and HackBrowser. The platform continuously monitors for known vulnerabilities and provides actionable remediation guidance prioritized by real-world exploitability.