syzbot
KASAN: use-after-free Read in ext4_xattr_set_entry
Status:
auto-closed as invalid on 2020/12/04 21:44
Reported-by: syzbot+1f3e2a866557e7c87db9@syzkaller.appspotmail.com
First crash: 2377d, last: 2196d
▶
▼
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 |
1629d |
2114d
|
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 |
|
|
192 |
1d15h |
405d
|
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 |
2477d |
2532d
|
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 |
2333d |
2333d
|
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 |
1795d |
2253d
|
1/1 |
fixed on 2021/10/13 07:23
|
| upstream |
KASAN: use-after-free Read in ext4_xattr_set_entry
ext4
|
19 |
|
|
|
1 |
2938d |
2938d
|
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 |
|
7877 |
13h51m |
689d
|
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 |
2784d |
2677d
|
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 |
1479d |
1537d
|
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 |
18d |
515d
|
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 |
2229d |
2347d
|
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 |
2356d |
2604d
|
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 |
1633d |
2020d
|
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 |
2431d |
2840d
|
15/29 |
fixed on 2020/02/14 01:19
|
| linux-6.1 |
KASAN: out-of-bounds Read in ext4_xattr_set_entry
missing-backport
origin:lts-only
|
21 |
syz, C |
|
inconclusive |
1059 |
3d06h |
1181d
|
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 |
9d16h |
1057d
|
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 |
2385d |
2477d
|
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 |
6d11h |
821d
|
0/2 |
upstream: reported C repro on 2024/05/13 18:18
|
Sample crash report:
==================================================================
BUG: KASAN: use-after-free in ext4_xattr_set_entry+0x1bbe/0x3b60 fs/ext4/xattr.c:1734
Read of size 4 at addr ffff8881a68e5ffe by task syz-fuzzer/324
CPU: 0 PID: 324 Comm: syz-fuzzer Not tainted 5.4.56-syzkaller-00005-g8555f0d9d303 #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+0x14a/0x1ce lib/dump_stack.c:118
print_address_description+0x93/0x620 mm/kasan/report.c:374
__kasan_report+0x16d/0x1e0 mm/kasan/report.c:506
kasan_report+0x36/0x60 mm/kasan/common.c:634
check_memory_region_inline mm/kasan/generic.c:181 [inline]
check_memory_region+0x2b5/0x2f0 mm/kasan/generic.c:191
memmove+0x25/0x50 mm/kasan/common.c:113
ext4_xattr_set_entry+0x1bbe/0x3b60 fs/ext4/xattr.c:1734
ext4_xattr_ibody_set fs/ext4/xattr.c:2239 [inline]
ext4_xattr_set_handle+0xdc3/0x1ed0 fs/ext4/xattr.c:2395
ext4_initxattrs+0xa2/0x100 fs/ext4/xattr_security.c:43
security_inode_init_security+0x27c/0x3c0 security/security.c:996
__ext4_new_inode+0x46ea/0x5cc0 fs/ext4/ialloc.c:1163
ext4_mkdir+0x41e/0x1530 fs/ext4/namei.c:2879
vfs_mkdir2+0x448/0x620 fs/namei.c:3934
do_mkdirat+0x1e7/0x310 fs/namei.c:3963
do_syscall_64+0xcb/0x150 arch/x86/entry/common.c:290
entry_SYSCALL_64_after_hwframe+0x44/0xa9
RIP: 0033:0x4b3cdb
Code: ff e9 69 ff ff ff cc cc cc cc cc cc cc cc cc e8 bb a1 f8 ff 48 8b 7c 24 10 48 8b 74 24 18 48 8b 54 24 20 48 8b 44 24 08 0f 05 <48> 3d 01 f0 ff ff 76 20 48 c7 44 24 28 ff ff ff ff 48 c7 44 24 30
RSP: 002b:000000c018d593e0 EFLAGS: 00000206 ORIG_RAX: 0000000000000102
RAX: ffffffffffffffda RBX: 000000c00002e800 RCX: 00000000004b3cdb
RDX: 00000000000001c0 RSI: 000000c010fea0e0 RDI: ffffffffffffff9c
RBP: 000000c018d59438 R08: 0000000000872c01 R09: 0000000000000001
R10: 000000c010fea0e0 R11: 0000000000000206 R12: ffffffffffffffff
R13: 0000000000000008 R14: 0000000000000007 R15: 0000000000000100
The buggy address belongs to the page:
page:ffffea00069a3940 refcount:2 mapcount:0 mapping:ffff8881da449a60 index:0x3f9
def_blk_aops
flags: 0x8000000000002032(referenced|lru|active|private)
raw: 8000000000002032 ffffea000734cf08 ffffea00069a2d88 ffff8881da449a60
raw: 00000000000003f9 ffff8881d3dd1f18 00000002ffffffff ffff8881da940000
page dumped because: kasan: bad access detected
page->mem_cgroup:ffff8881da940000
Memory state around the buggy address:
ffff8881a68e5f00: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
ffff8881a68e5f80: 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00 00
>ffff8881a68e6000: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
^
ffff8881a68e6080: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
ffff8881a68e6100: ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff ff
==================================================================
* Struck through repros no longer work on HEAD.