ext4: fix deadlock when converting an inline directory in nojournal mode
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 3c47d54170b6a678875566b1b8d6dcf57904e49b · < 804de0c72cd473e186ca4e1f6287d45431b14e5a| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
ext4: fix deadlock when converting an inline directory in nojournal mode
In no journal mode, ext4_finish_convert_inline_dir() can self-deadlock by calling ext4_handle_dirty_dirblock() when it already has taken the directory lock. There is a similar self-deadlock in ext4_incvert_inline_data_nolock() for data files which we'll fix at the same time.
A simple reproducer demonstrating the problem:
mke2fs -Fq -t ext2 -O inline_data -b 4k /dev/vdc 64 mount -t ext4 -o dirsync /dev/vdc /vdc cd /vdc mkdir file0 cd file0 touch file0 touch file1 attr -s BurnSpaceInEA -V abcde . touch supercalifragilisticexpialidocious
From the CVE record · Linux
The Linux kernel’s ext4 code can self-deadlock while converting an inline directory or inline file data in no-journal mode. The issue can be triggered through local filesystem operations; the input does not specify authentication requirements or whether another user must interact.
Engineers running Linux kernels with ext4 filesystems should check their kernel versions; affected versions are not specified.