Menu

Star on GitHub · 3.2k

CVE-2024-42305

5.5 · MEDIUM

In the Linux kernel, the following vulnerability has been resolved: ext4: check dot and dotdot of dx_root before making dir indexed Syzbot reports a issue as follows: ============================…

Published Aug 17, 2024CWE-125EPSS 0.23%

Overview

CVE-2024-42305 is a medium-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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: check dot and dotdot of dx_root before making dir indexed

Syzbot reports a issue as follows:

============================================

BUG: unable to handle page fault for address: ffffed11022e24fe

PGD 23ffee067 P4D 23ffee067 PUD 0

Oops: Oops: 0000 [#1] PREEMPT SMP KASAN PTI

CPU: 0 PID: 5079 Comm: syz-executor306 Not tainted 6.10.0-rc5-g55027e689933 #0

Call Trace:

<TASK>

make_indexed_dir+0xdaf/0x13c0 fs/ext4/namei.c:2341

ext4_add_entry+0x222a/0x25d0 fs/ext4/namei.c:2451

ext4_rename fs/ext4/namei.c:3936 [inline]

ext4_rename2+0x26e5/0x4370 fs/ext4/namei.c:4214

[...]

============================================

The immediate cause of this problem is that there is only one valid dentry

for the block to be split during do_split, so split==0 results in out of

bounds accesses to the map triggering the issue.

do_split

unsigned split

dx_make_map

count = 1

split = count/2 = 0;

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-42305?

CVE-2024-42305 is a medium-severity vulnerability. It was published on August 17, 2024 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2024-42305?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. 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-42305?

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-42305?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2024-42305 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 MEDIUM CVEs from 2024

View all