syzbot
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
Status:
fixed on 2020/02/14 01:19
Subsystems:
ext4
[Documentation on labels]
Reported-by: syzbot+4a39a025912b265cacef@syzkaller.appspotmail.com
Fix commit:
9803387c55f7
ext4: validate the debug_want_extra_isize mount option at parse time
First crash: 2858d, last: 2424d
▶
▼
Similar bugs (18)
| Kernel |
Title |
Rank
🛈
|
Repro |
Cause bisect |
Fix bisect |
Count |
Last |
Reported |
Patched |
Status |
| linux-4.14 |
KASAN: use-after-free Read in ext4_xattr_set_entry (3)
|
19 |
syz, C |
|
error |
1 |
1622d |
2107d
|
0/1 |
upstream: reported C repro on 2020/10/28 15:08
|
| android-5-15 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry (2)
origin:lts
|
19 |
syz, C |
|
|
190 |
1d16h |
398d
|
0/2 |
upstream: reported C repro on 2025/07/03 01:48
|
| android-414 |
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
|
19 |
|
|
|
6 |
2470d |
2526d
|
0/1 |
auto-closed as invalid on 2020/02/28 13:35
|
| linux-4.14 |
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
|
19 |
|
|
|
1 |
2326d |
2326d
|
0/1 |
auto-closed as invalid on 2020/07/21 03:20
|
| linux-4.19 |
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
|
19 |
syz, C |
|
done |
7 |
1788d |
2246d
|
1/1 |
fixed on 2021/10/13 07:23
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry
ext4
|
19 |
|
|
|
1 |
2931d |
2931d
|
0/29 |
closed as invalid on 2018/07/29 11:55
|
| upstream |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
prio:high
ext4
|
22 |
syz, C |
error |
|
7859 |
2h16m |
682d
|
0/29 |
upstream: reported C repro on 2024/09/22 00:16
|
| android-414 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
|
|
|
4 |
2777d |
2670d
|
0/1 |
auto-closed as invalid on 2019/06/26 01:15
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry (5)
ext4
|
19 |
|
|
|
2 |
1472d |
1530d
|
0/29 |
auto-obsoleted due to no activity on 2022/11/22 17:19
|
| linux-5.15 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
|
19 |
syz, C |
|
error |
65 |
11d |
508d
|
0/3 |
upstream: reported C repro on 2025/03/15 11:50
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry (3)
ext4
|
19 |
|
|
|
4 |
2222d |
2340d
|
0/29 |
auto-closed as invalid on 2020/11/02 08:32
|
| linux-4.19 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
syz |
|
done |
10 |
2349d |
2598d
|
1/1 |
fixed on 2020/03/30 09:03
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry (4)
ext4
|
22 |
syz, C |
error |
done |
21 |
1626d |
2013d
|
20/29 |
fixed on 2022/03/28 10:17
|
| android-54 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
|
|
|
6 |
2190d |
2371d
|
0/2 |
auto-closed as invalid on 2020/12/04 21:44
|
| linux-6.1 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
missing-backport
origin:lts-only
|
21 |
syz, C |
|
inconclusive |
1058 |
12d |
1174d
|
0/3 |
upstream: reported C repro on 2023/05/19 08:42
|
| android-5-10 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
|
19 |
syz, C |
|
inconclusive |
265 |
2d19h |
1050d
|
0/2 |
upstream: reported C repro on 2023/09/20 02:40
|
| linux-4.14 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
syz, C |
|
done |
9 |
2378d |
2470d
|
1/1 |
fixed on 2020/03/01 21:06
|
| android-6-1 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
origin:lts
|
21 |
syz, C |
|
|
1011 |
3d11h |
814d
|
0/2 |
upstream: reported C repro on 2024/05/13 18:18
|
▶
▼
Last patch testing requests (1)
Sample crash report:
==================================================================
BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x35de/0x3770 fs/ext4/xattr.c:1580
Read of size 4 at addr ffff888082265183 by task syz-executor968/9741
CPU: 1 PID: 9741 Comm: syz-executor968 Not tainted 5.5.0-rc1-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:77 [inline]
dump_stack+0x197/0x210 lib/dump_stack.c:118
print_address_description.constprop.0.cold+0xd4/0x30b mm/kasan/report.c:374
__kasan_report.cold+0x1b/0x41 mm/kasan/report.c:506
kasan_report+0x12/0x20 mm/kasan/common.c:639
__asan_report_load4_noabort+0x14/0x20 mm/kasan/generic_report.c:134
ext4_xattr_set_entry+0x35de/0x3770 fs/ext4/xattr.c:1580
ext4_xattr_ibody_set+0x80/0x2d0 fs/ext4/xattr.c:2216
ext4_xattr_set_handle+0x933/0x1200 fs/ext4/xattr.c:2372
ext4_initxattrs+0xc0/0x130 fs/ext4/xattr_security.c:43
security_inode_init_security security/security.c:996 [inline]
security_inode_init_security+0x2c8/0x3b0 security/security.c:969
ext4_init_security+0x34/0x40 fs/ext4/xattr_security.c:57
__ext4_new_inode+0x4288/0x4f30 fs/ext4/ialloc.c:1155
ext4_mkdir+0x3d5/0xe20 fs/ext4/namei.c:2774
vfs_mkdir+0x42e/0x670 fs/namei.c:3819
do_mkdirat+0x234/0x2a0 fs/namei.c:3842
__do_sys_mkdir fs/namei.c:3858 [inline]
__se_sys_mkdir fs/namei.c:3856 [inline]
__x64_sys_mkdir+0x5c/0x80 fs/namei.c:3856
do_syscall_64+0xfa/0x790 arch/x86/entry/common.c:294
entry_SYSCALL_64_after_hwframe+0x49/0xbe
RIP: 0033:0x44c637
Code: 1f 40 00 b8 5a 00 00 00 0f 05 48 3d 01 f0 ff ff 0f 83 4d d6 fb ff c3 66 2e 0f 1f 84 00 00 00 00 00 66 90 b8 53 00 00 00 0f 05 <48> 3d 01 f0 ff ff 0f 83 2d d6 fb ff c3 66 2e 0f 1f 84 00 00 00 00
RSP: 002b:00007ffedabe5578 EFLAGS: 00000206 ORIG_RAX: 0000000000000053
RAX: ffffffffffffffda RBX: 000000000001632d RCX: 000000000044c637
RDX: 00007ffedabe55e3 RSI: 00000000000001ff RDI: 00007ffedabe55e0
RBP: 0000000000000002 R08: 0000000000000000 R09: 0000000000000003
R10: 0000000000000064 R11: 0000000000000206 R12: 0000000000000001
R13: 000000000040a180 R14: 0000000000000000 R15: 0000000000000000
The buggy address belongs to the page:
page:ffffea0002089940 refcount:0 mapcount:0 mapping:0000000000000000 index:0x1
raw: 00fffe0000000000 ffffea0002082c88 ffffea0002089908 0000000000000000
raw: 0000000000000001 0000000000000000 00000000ffffffff 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888082265080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888082265100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
>ffff888082265180: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888082265200: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888082265280: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
* Struck through repros no longer work on HEAD.