Back

MEDIUM

ext4: do not create EA inode under buffer lock

Published Jul 12, 2024

Description

ext4_xattr_set_entry() creates new EA inodes while holding buffer lock on the external xattr block. This is problematic as it nests all the allocation locking (which acquires locks on other buffers) under the buffer lock. This can even deadlock when the filesystem is corrupted and e.g. quota file is setup to contain xattr block as data block. Move the allocation of EA inode out of ext4_xattr_set_entry() into the callers.

Affected products

Remediation

Red Hat mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability.

Weaknesses (2)

References (11)

Change history (0)

No recorded changes yet.

Sources

CVE.org / MITRE

Status PUBLISHED
Assigner Linux
Published Jul 12, 2024
Updated May 11, 2026
Reserved Jul 12, 2024

CISA Vulnrichment

Updated Sep 10, 2024

NVD

Status Modified
Modified Jun 17, 2026

Red Hat

Severity Moderate
Public date Jul 12, 2024
Bugzilla 2297556

ENISA EUVD

Assigner Linux
Published Jul 12, 2024
Updated May 11, 2026

GitHub

No data