syzbot
KASAN: use-after-free Read in ext4_xattr_set_entry
Status:
auto-closed as invalid on 2019/06/26 01:15
Reported-by: syzbot+14d28d8eae5ee1bd6f88@syzkaller.appspotmail.com
First crash: 2844d, last: 2780d
▶
▼
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 |
1625d |
2110d
|
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 |
13h41m |
401d
|
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 |
2473d |
2529d
|
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 |
2329d |
2329d
|
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 |
1791d |
2249d
|
1/1 |
fixed on 2021/10/13 07:23
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry
ext4
|
19 |
|
|
|
1 |
2934d |
2934d
|
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 |
|
7867 |
9m |
686d
|
0/29 |
upstream: reported C repro on 2024/09/22 00:16
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry (5)
ext4
|
19 |
|
|
|
2 |
1475d |
1533d
|
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 |
14d |
511d
|
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 |
2225d |
2343d
|
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 |
2353d |
2601d
|
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 |
1629d |
2016d
|
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 |
2427d |
2836d
|
15/29 |
fixed on 2020/02/14 01:19
|
| android-54 |
KASAN: use-after-free Read in ext4_xattr_set_entry
|
19 |
|
|
|
6 |
2193d |
2374d
|
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 |
15d |
1177d
|
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 |
5d21h |
1053d
|
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 |
2381d |
2473d
|
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 |
2d16h |
817d
|
0/2 |
upstream: reported C repro on 2024/05/13 18:18
|
Sample crash report:
==================================================================
BUG: KASAN: use-after-free in memmove include/linux/string.h:359 [inline]
BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x92d/0x2e40 fs/ext4/xattr.c:1739
Read of size 4 at addr ffff888190f21ffd by task syz-fuzzer/1792
CPU: 0 PID: 1792 Comm: syz-fuzzer Not tainted 4.14.90+ #29
Call Trace:
__dump_stack lib/dump_stack.c:17 [inline]
dump_stack+0xb9/0x11b lib/dump_stack.c:53
print_address_description+0x60/0x22b mm/kasan/report.c:252
kasan_report_error mm/kasan/report.c:351 [inline]
kasan_report.cold.6+0x11b/0x2dd mm/kasan/report.c:409
memmove+0x1f/0x50 mm/kasan/kasan.c:293
memmove include/linux/string.h:359 [inline]
ext4_xattr_set_entry+0x92d/0x2e40 fs/ext4/xattr.c:1739
ext4_xattr_ibody_set+0x73/0x280 fs/ext4/xattr.c:2245
ext4_xattr_set_handle+0x6a6/0xdc0 fs/ext4/xattr.c:2401
ext4_initxattrs+0xb8/0x110 fs/ext4/xattr_security.c:43
security_inode_init_security+0x228/0x310 security/security.c:493
__ext4_new_inode+0x3473/0x48e0 fs/ext4/ialloc.c:1166
ext4_mkdir+0x234/0xb40 fs/ext4/namei.c:2625
vfs_mkdir2+0x3cb/0x640 fs/namei.c:3883
SYSC_mkdirat fs/namei.c:3912 [inline]
SyS_mkdirat+0x126/0x220 fs/namei.c:3896
do_syscall_64+0x19b/0x4b0 arch/x86/entry/common.c:289
entry_SYSCALL_64_after_hwframe+0x42/0xb7
RIP: 0033:0x47fc44
RSP: 002b:000000c42013d898 EFLAGS: 00000246 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 000000000047fc44
RDX: 00000000000001c0 RSI: 000000c42a04c2c0 RDI: ffffffffffffff9c
RBP: 000000c42013d8f8 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000001000000
R13: 0000000000000020 R14: 0000000000000013 R15: 0000000000000000
The buggy address belongs to the page:
page:ffffea000643c840 count:2 mapcount:0 mapping:ffff8881d9aa8950 index:0x483
flags: 0x4000000000001074(referenced|dirty|lru|active|private)
raw: 4000000000001074 ffff8881d9aa8950 0000000000000483 00000002ffffffff
raw: ffffea00064b1ce0 ffffea000643b4e0 ffff88818fa31498 ffff8881da81aa80
page dumped because: kasan: bad access detected
page->mem_cgroup:ffff8881da81aa80
Memory state around the buggy address:
ffff888190f21f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff888190f21f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff888190f22000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff888190f22080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff888190f22100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
* Struck through repros no longer work on HEAD.