CVE Database›Document archive›CVE-2024-42304

CVE-2024-42304

kernel: ext4: make sure the first directory block is not a hole

Loading…

Severity

Moderate

Red Hat Product Security

5.5

CVSS 3.1

Review impact separately from score.

Published · August 17, 2024

Updated · October 30, 2026

Description

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. Then, 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.

Statement

This vulnerability is rated as Moderate severity for Red Hat Enterprise Linux because exploitation requires local access to mount a specially corrupted storage image or manipulate filesystem structures, limiting the blast radius to a local denial of service. Standard Red Hat deployments do not permit unprivileged users to mount arbitrary storage devices or filesystem images, restricting exposure under typical configurations. Environments where untrusted users possess privileges to mount crafted ext4 volumes could experience a kernel crash when creating directory entries on affected filesystems.

CVSS score applicability

The CVSS score(s) listed for this vulnerability do not reflect the associated product's status, and are included for informational purposes to better understand the severity of this vulnerability.

Mitigation

No mitigation is specified in collected source.

CVSS / CWE

CVSS 3.1 · 5.5
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

CWE not specified