syzbot
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
Status:
auto-closed as invalid on 2020/07/21 03:20
Reported-by: syzbot+001dd339ee946331c255@syzkaller.appspotmail.com
First crash: 2331d, last: 2331d
▶
▼
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 |
1627d |
2112d
|
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 |
|
|
191 |
2d13h |
403d
|
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 |
2475d |
2531d
|
0/1 |
auto-closed as invalid on 2020/02/28 13:35
|
| linux-4.19 |
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
|
19 |
syz, C |
|
done |
7 |
1793d |
2251d
|
1/1 |
fixed on 2021/10/13 07:23
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry
ext4
|
19 |
|
|
|
1 |
2936d |
2936d
|
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 |
|
7874 |
6h33m |
688d
|
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 |
2782d |
2676d
|
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 |
1477d |
1535d
|
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 |
16d |
513d
|
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 |
2227d |
2345d
|
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 |
2355d |
2603d
|
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 |
1631d |
2018d
|
20/29 |
fixed on 2022/03/28 10:17
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry (2)
ext4
|
19 |
syz, C |
done |
|
19 |
2429d |
2838d
|
15/29 |
fixed on 2020/02/14 01:19
|
| android-54 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
|
|
|
6 |
2195d |
2376d
|
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 |
1059 |
1d10h |
1179d
|
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 |
7d20h |
1055d
|
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 |
2383d |
2475d
|
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 |
|
|
1013 |
4d15h |
819d
|
0/2 |
upstream: reported C repro on 2024/05/13 18:18
|
Sample crash report:
EXT4-fs error (device sda1): ext4_xattr_set_entry:1605: inode #17230: comm syz-fuzzer: corrupted xattr entries
EXT4-fs error (device sda1): ext4_xattr_set_entry:1605: inode #17230: comm syz-fuzzer: corrupted xattr entries
EXT4-fs error (device sda1): ext4_xattr_ibody_find:2191: inode #17231: comm restorecond: corrupted in-inode xattr
==================================================================
EXT4-fs error (device sda1): ext4_xattr_ibody_get:590: inode #17231: comm syz-fuzzer: corrupted in-inode xattr
BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x2ed2/0x2fc0 fs/ext4/xattr.c:1602
Read of size 4 at addr ffff888079481002 by task syz-fuzzer/7361
CPU: 1 PID: 7361 Comm: syz-fuzzer Not tainted 4.14.174-syzkaller #0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0x13e/0x194 lib/dump_stack.c:58
print_address_description.cold+0x7c/0x1e2 mm/kasan/report.c:252
kasan_report_error mm/kasan/report.c:351 [inline]
kasan_report mm/kasan/report.c:409 [inline]
kasan_report.cold+0xa9/0x2ae mm/kasan/report.c:393
ext4_xattr_set_entry+0x2ed2/0x2fc0 fs/ext4/xattr.c:1602
ext4_xattr_ibody_set+0x73/0x280 fs/ext4/xattr.c:2238
ext4_xattr_set_handle+0x4f5/0xda0 fs/ext4/xattr.c:2394
ext4_initxattrs+0xb5/0x110 fs/ext4/xattr_security.c:43
security_inode_init_security security/security.c:492 [inline]
security_inode_init_security+0x236/0x320 security/security.c:465
__ext4_new_inode+0x353a/0x4e90 fs/ext4/ialloc.c:1171
ext4_mkdir+0x2e4/0xb60 fs/ext4/namei.c:2665
vfs_mkdir+0x3af/0x620 fs/namei.c:3849
SYSC_mkdirat fs/namei.c:3872 [inline]
SyS_mkdirat+0x1bc/0x210 fs/namei.c:3856
do_syscall_64+0x1d5/0x640 arch/x86/entry/common.c:292
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x47c530
RSP: 002b:000000c43f397990 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047c530
RDX: 00000000000001c0 RSI: 000000c4236b81e0 RDI: ffffffffffffff9c
RBP: 000000c43f3979f0 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000206 R12: ffffffffffffffff
R13: 0000000000000010 R14: 000000000000000f R15: 0000000000000100
The buggy address belongs to the page:
page:ffffea0001e52040 count:0 mapcount:-127 mapping: (null) index:0x1
flags: 0xfffe0000000000()
raw: 00fffe0000000000 0000000000000000 0000000000000001 00000000ffffff80
raw: ffffea00017536e0 ffffea00018711a0 0000000000000000 0000000000000000
page dumped because: kasan: bad access detected
Memory state around the buggy address:
ffff888079480f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888079480f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888079481000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888079481080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888079481100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
* Struck through repros no longer work on HEAD.