WARNING: refcount bug in config_item_get

Status: upstream: reported C repro on 2026/07/29 00:08
Subsystems: fs
Labels: prio:normal
[Documentation on labels]
Reported-by: syzbot+35790eb7861f8fc57382@syzkaller.appspotmail.com
First crash: 22d, last: 1d07h
Cause bisection: failed (error log, bisect log)
  
✨ AI Jobs (1)
ID Workflow Result Correct Bug Created Started Finished Revision
847b14a6 assessment-security DenialOfService: ✅ Exploitable: ✅ FilesystemTrigger: ❌ NetworkTrigger: ❌ PeripheralTrigger: ❌ RemoteTrigger: ❌ Unprivileged: ❌ UserNamespace: ❌ VMGuestTrigger: ❌ VMHostTrigger: ❌ WARNING: refcount bug in config_item_get 2026/07/24 21:38 2026/07/24 21:38 2026/07/24 22:08 1bdb5c57
Discussions (2)
Title Replies (including bot) Last reply
[PATCH] configfs: fix refcount warning in configfs_get_config_item() 8 (8) 2026/07/30 07:30
[syzbot] [fs?] WARNING: refcount bug in config_item_get 0 (4) 2026/07/29 08:51
Similar bugs (4)
Kernel Title Rank 🛈 Repro Cause bisect Fix bisect Count Last Reported Patched Status
linux-6.1 WARNING: refcount bug in config_item_get 13 syz, C 3 6d22h 18d 0/3 upstream: reported C repro on 2026/07/28 10:20
linux-6.6 WARNING: refcount bug in config_item_get 13 syz, C 2 6d18h 6d20h 0/2 upstream: reported C repro on 2026/08/09 02:31
android-6-12 WARNING: refcount bug in config_item_get 13 syz, C 4 13d 18d 0/1 premoderation: reported C repro on 2026/07/28 17:48
linux-5.15 WARNING: refcount bug in config_item_get origin:upstream 13 syz, C 1 21d 21d 0/3 upstream: reported C repro on 2026/07/25 20:51
Last patch testing requests (3)
Created Duration User Patch Repo Result
2026/07/29 08:51 26m joshua.crofts1@gmail.com patch upstream log
2026/07/29 08:51 20m jeffinphilip14@gmail.com patch upstream log
2026/07/29 08:21 20m joshua.crofts1@gmail.com patch upstream log

Sample crash report:
------------[ cut here ]------------
refcount_t: addition on 0; use-after-free.
WARNING: lib/refcount.c:25 at refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25, CPU#1: syz-executor246/5795
Modules linked in:
CPU: 1 UID: 0 PID: 5795 Comm: syz-executor246 Not tainted syzkaller #0 PREEMPT_{RT,(full)} 
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/24/2026
RIP: 0010:refcount_warn_saturate+0x9f/0x110 lib/refcount.c:25
Code: eb 66 85 db 74 3e 83 fb 01 75 4c e8 db 39 03 fd 48 8d 3d 34 90 f7 0a 67 48 0f b9 3a eb 4a e8 c8 39 03 fd 48 8d 3d 31 90 f7 0a <67> 48 0f b9 3a eb 37 e8 b5 39 03 fd 48 8d 3d 2e 90 f7 0a 67 48 0f
RSP: 0018:ffffc900048c7c48 EFLAGS: 00010293
RAX: ffffffff84c28e68 RBX: 0000000000000002 RCX: ffff888038265d00
RDX: 0000000000000000 RSI: 0000000000000000 RDI: ffffffff8fba1ea0
RBP: 0000000000000000 R08: ffff888038265d00 R09: 0000000000000005
R10: 0000000000000100 R11: 0000000000000004 R12: dffffc0000000000
R13: ffff888038960930 R14: ffff88802ff4b41c R15: 1ffff92000918fa0
FS:  00005555861114c0(0000) GS:ffff888125d45000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007ffff991c62c CR3: 000000003ed5c000 CR4: 00000000003526f0
Call Trace:
 <TASK>
 __refcount_add include/linux/refcount.h:-1 [inline]
 __refcount_inc include/linux/refcount.h:366 [inline]
 refcount_inc include/linux/refcount.h:383 [inline]
 kref_get include/linux/kref.h:45 [inline]
 config_item_get+0x88/0x90 fs/configfs/item.c:104
 configfs_get_config_item fs/configfs/configfs_internal.h:127 [inline]
 get_target fs/configfs/symlink.c:128 [inline]
 configfs_symlink+0x4ab/0x1030 fs/configfs/symlink.c:185
 vfs_symlink+0x18b/0x330 fs/namei.c:5660
 filename_symlinkat+0x1cd/0x420 fs/namei.c:5685
 __do_sys_symlinkat fs/namei.c:5705 [inline]
 __se_sys_symlinkat+0x4e/0x2b0 fs/namei.c:5700
 do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]
 do_syscall_64+0x174/0x580 arch/x86/entry/syscall_64.c:94
 entry_SYSCALL_64_after_hwframe+0x77/0x7f
RIP: 0033:0x7f2ac2e2a429
Code: c0 79 93 eb d5 48 8d 7c 1d 00 eb 99 0f 1f 44 00 00 48 89 f8 48 89 f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 <48> 3d 01 f0 ff ff 73 01 c3 48 c7 c1 d8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffff991d6f8 EFLAGS: 00000246 ORIG_RAX: 000000000000010a
RAX: ffffffffffffffda RBX: 000000000002430c RCX: 00007f2ac2e2a429
RDX: 0000200000000200 RSI: 00000000ffffff9c RDI: 00002000000001c0
RBP: 0000000000000000 R08: 00007ffff991d72c R09: 00007ffff991d72c
R10: 00007ffff991d72c R11: 0000000000000246 R12: 00007ffff991d72c
R13: 00007ffff991d760 R14: 00007ffff991d740 R15: 0000000000000021
 </TASK>
----------------
Code disassembly (best guess):
   0:	eb 66                	jmp    0x68
   2:	85 db                	test   %ebx,%ebx
   4:	74 3e                	je     0x44
   6:	83 fb 01             	cmp    $0x1,%ebx
   9:	75 4c                	jne    0x57
   b:	e8 db 39 03 fd       	call   0xfd0339eb
  10:	48 8d 3d 34 90 f7 0a 	lea    0xaf79034(%rip),%rdi        # 0xaf7904b
  17:	67 48 0f b9 3a       	ud1    (%edx),%rdi
  1c:	eb 4a                	jmp    0x68
  1e:	e8 c8 39 03 fd       	call   0xfd0339eb
  23:	48 8d 3d 31 90 f7 0a 	lea    0xaf79031(%rip),%rdi        # 0xaf7905b
* 2a:	67 48 0f b9 3a       	ud1    (%edx),%rdi <-- trapping instruction
  2f:	eb 37                	jmp    0x68
  31:	e8 b5 39 03 fd       	call   0xfd0339eb
  36:	48 8d 3d 2e 90 f7 0a 	lea    0xaf7902e(%rip),%rdi        # 0xaf7906b
  3d:	67                   	addr32
  3e:	48                   	rex.W
  3f:	0f                   	.byte 0xf

Crashes (36):
Time Kernel Commit Syzkaller Config Log Report Syz repro C repro VM info Assets (help?) Manager Title
2026/08/14 16:00 upstream 2f1baf1fc892 6f9b3e89 .config strace log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: refcount bug in config_item_get
2026/07/26 04:14 upstream 0ce37745d4bf 492bab15 .config console log report syz / log C [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: refcount bug in config_item_get
2026/08/01 16:40 upstream 02dc699f83d0 e611ffe1 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in config_item_get
2026/07/24 22:11 upstream 48a5a7ab8d6a 4a865b71 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in config_item_get
2026/07/24 21:38 upstream 48a5a7ab8d6a 4a865b71 .config console log report syz / log C [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in config_item_get
2026/08/14 12:24 upstream 2f1baf1fc892 2cf1fbb7 .config console log report syz / log [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream WARNING: refcount bug in config_item_get
2026/08/13 00:35 upstream 3d6d817622b0 7ae4acc7 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in config_item_get
2026/08/08 10:55 upstream 9a143525f62b e4ef95d6 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: refcount bug in config_item_get
2026/08/04 11:02 upstream c8e0d43058e6 a68cb31b .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-selinux-root WARNING: refcount bug in config_item_get
2026/07/28 01:58 upstream 62cc90241548 45ae1df4 .config console log report info [disk image] [vmlinux] [kernel image] ci2-upstream-fs WARNING: refcount bug in config_item_get
2026/07/27 19:35 upstream f5098b6bae76 4cb2b096 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-badwrites-root WARNING: refcount bug in config_item_get
2026/07/27 14:54 upstream f5098b6bae76 4cb2b096 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-kasan-gce-smack-root WARNING: refcount bug in config_item_get
2026/08/06 06:00 upstream 0d8395707651 cd5b1963 .config console log report [disk image (non-bootable)] [vmlinux] [kernel image] ci-snapshot-upstream-root WARNING: refcount bug in config_item_get
2026/08/07 03:50 upstream fcaeecb8b0cd c38879ea .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/06 07:21 upstream 0d8395707651 cd5b1963 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/02 05:22 upstream 2d2338c93da7 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/02 05:22 upstream 2d2338c93da7 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/02 05:20 upstream 2d2338c93da7 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:54 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:53 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:53 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:53 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:49 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:47 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:47 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:46 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:45 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:45 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:44 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:43 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:42 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:42 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/01 14:42 upstream 02dc699f83d0 e611ffe1 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/07/28 03:35 upstream 62cc90241548 4a865b71 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/07/28 03:34 upstream 62cc90241548 4a865b71 .config console log report info [disk image (non-bootable)] [vmlinux] [kernel image] ci-qemu-upstream-386 WARNING: refcount bug in config_item_get
2026/08/02 00:06 git://git.kernel.org/pub/scm/linux/kernel/git/arm64/linux.git for-kernelci e2d5e23967d0 e611ffe1 .config console log report info [disk image] [vmlinux] [kernel image] ci-upstream-gce-arm64 WARNING: refcount bug in config_item_get
* Struck through repros no longer work on HEAD.