CVE-2025-23150 Information
Description
In the Linux kernel the following vulnerability has been resolved:
ext4: fix off-by-one error in do_split
Syzkaller detected a use-after-free issue in ext4_insert_dentry that was caused by out-of-bounds access due to incorrect splitting in do_split.
BUG: KASAN: use-after-free in ext4_insert_dentry+0x36a/0x6d0 fs/ext4/namei.c:2109 Write of size 251 at addr ffff888074572f14 by task syz-executor335/5847
CPU: 0 UID: 0 PID: 5847 Comm: syz-executor335 Not tainted 6.12.0-rc6-syzkaller-00318-ga9cda7c0ffed 0
Hardware name: Google Google Compute Engine/Google Compute Engine BIOS Google 10/30/2024
Call Trace:
The following loop is located right above ‘if’ statement.
for (i = count-1; i >= 0; i–) / is more than half of this entry in 2nd half of the block? / if (size + map[i].size/2 > blocksize/2) break; size += map[i].size; move++;
‘i’ in this case could go down to -1 in which case sum of active entries wouldn’t exceed half the block size but previous behaviour would also do split in half if sum would exceed at the very last block which in case of having too many long name files in a single block could lead to out-of-bounds access and following use-after-free.
Found by Linux Verification Center (linuxtesting.org) with Syzkaller.
Reference
https://git.kernel.org/stable/c/16d9067f00e3a7d1df7c3aa9c20d214923d27e10 https://git.kernel.org/stable/c/17df39f455f1289319d4d09e4826aa46852ffd17 https://git.kernel.org/stable/c/2eeb1085bf7bd5c7ba796ca4119925fa5d336a3f https://git.kernel.org/stable/c/35d0aa6db9d93307085871ceab8a729594a98162 https://git.kernel.org/stable/c/94824ac9a8aaf2fb3c54b4bdde842db80ffa555d https://git.kernel.org/stable/c/ab0cc5c25552ae0d20eae94b40a93be11b080fc5
Share on: