nilfs2: fix kernel bug on rename operation of broken directory
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 2ba466d74ed74f073257f86e61519cb8f8f46184 · < 60f61514374e4a0c3b65b08c6024dd7e26150bfd| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
nilfs2: fix kernel bug on rename operation of broken directory
Syzbot reported that in rename directory operation on broken directory on nilfs2, __block_write_begin_int() called to prepare block write may fail BUG_ON check for access exceeding the folio/page size.
This is because nilfs_dotdot(), which gets parent directory reference entry ("..") of the directory to be moved or renamed, does not check consistency enough, and may return location exceeding folio/page size for broken directories.
Fix this issue by checking required directory entries ("." and "..") in the first chunk of the directory in nilfs_dotdot().
From the CVE record · Linux
The Linux kernel's nilfs2 filesystem does not adequately check directory entries when renaming a broken directory. A rename operation on such a directory can trigger a kernel BUG_ON check. The input does not specify authentication requirements.
Engineers running Linux systems that use the nilfs2 filesystem should check their kernel versions; affected versions are not specified.