CVE 记录列出的受影响产品:Linux · Linuxnday 产品登记表中 Linux kernel 的产品类型
当前阶段
DIS
披露
CVSS
7.8 HIGH v3.1
# 生命周期
横轴 UTC;点=精确到分钟,宽条=仅日期,空心=未知或推定。
时间未知
DIS披露
PAT补丁
尚无记录
ANA分析
尚无记录
POCPoC
尚无记录
ITW在野
尚无记录
KEVKEV
尚无记录
# 摘要
In the Linux kernel, the following vulnerability has been resolved:
fs/jfs: prevent double-free in dbUnmount() after failed jfs_remount()
Syzkaller reported the following issue:
==================================================================BUG: KASAN: double-free in slab_free mm/slub.c:3787[inline]BUG: KASAN: double-free in __kmem_cache_free+0x71/0x110mm/slub.c:3800
Free of addr ffff888086408000 by task syz-executor.4/12750
[...]
Call Trace:<TASK>[...]
kasan_report_invalid_free+0xac/0xd0mm/kasan/report.c:482____kasan_slab_free+0xfb/0x120kasan_slab_freeinclude/linux/kasan.h:177[inline]slab_free_hookmm/slub.c:1781[inline]slab_free_freelist_hook+0x12e/0x1a0mm/slub.c:1807slab_freemm/slub.c:3787[inline]__kmem_cache_free+0x71/0x110mm/slub.c:3800dbUnmount+0xf4/0x110fs/jfs/jfs_dmap.c:264jfs_umount+0x248/0x3b0fs/jfs/jfs_umount.c:87jfs_put_super+0x86/0x190fs/jfs/super.c:194generic_shutdown_super+0x130/0x310fs/super.c:492kill_block_super+0x79/0xd0fs/super.c:1386deactivate_locked_super+0xa7/0xf0fs/super.c:332cleanup_mnt+0x494/0x520fs/namespace.c:1291task_work_run+0x243/0x300kernel/task_work.c:179resume_user_mode_workinclude/linux/resume_user_mode.h:49[inline]exit_to_user_mode_loop+0x124/0x150kernel/entry/common.c:171exit_to_user_mode_prepare+0xb2/0x140kernel/entry/common.c:203__syscall_exit_to_user_mode_workkernel/entry/common.c:285[inline]syscall_exit_to_user_mode+0x26/0x60kernel/entry/common.c:296do_syscall_64+0x49/0xb0arch/x86/entry/common.c:86entry_SYSCALL_64_after_hwframe+0x63/0xcd[...]
</TASK>Allocated by task 13352:kasan_save_stackmm/kasan/common.c:45[inline]kasan_set_track+0x3d/0x60mm/kasan/common.c:52____kasan_kmallocmm/kasan/common.c:371[inline]__kasan_kmalloc+0x97/0xb0mm/kasan/common.c:380kmallocinclude/linux/slab.h:580[inline]dbMount+0x54/0x980fs/jfs/jfs_dmap.c:164jfs_mount+0x1dd/0x830fs/jfs/jfs_mount.c:121jfs_fill_super+0x590/0xc50fs/jfs/super.c:556mount_bdev+0x26c/0x3a0fs/super.c:1359legacy_get_tree+0xea/0x180fs/fs_context.c:610vfs_get_tree+0x88/0x270fs/super.c:1489do_new_mount+0x289/0xad0fs/namespace.c:3145do_mountfs/namespace.c:3488[inline]__do_sys_mountfs/namespace.c:3697[inline]__se_sys_mount+0x2d3/0x3c0fs/namespace.c:3674do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x3d/0xb0arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x63/0xcdFreed by task 13352:kasan_save_stackmm/kasan/common.c:45[inline]kasan_set_track+0x3d/0x60mm/kasan/common.c:52kasan_save_free_info+0x27/0x40mm/kasan/generic.c:518____kasan_slab_free+0xd6/0x120mm/kasan/common.c:236kasan_slab_freeinclude/linux/kasan.h:177[inline]slab_free_hookmm/slub.c:1781[inline]slab_free_freelist_hook+0x12e/0x1a0mm/slub.c:1807slab_freemm/slub.c:3787[inline]__kmem_cache_free+0x71/0x110mm/slub.c:3800dbUnmount+0xf4/0x110fs/jfs/jfs_dmap.c:264jfs_mount_rw+0x545/0x740fs/jfs/jfs_mount.c:247jfs_remount+0x3db/0x710fs/jfs/super.c:454reconfigure_super+0x3bc/0x7b0fs/super.c:935vfs_fsconfig_lockedfs/fsopen.c:254[inline]__do_sys_fsconfigfs/fsopen.c:439[inline]__se_sys_fsconfig+0xad5/0x1060fs/fsopen.c:314do_syscall_x64arch/x86/entry/common.c:50[inline]do_syscall_64+0x3d/0xb0arch/x86/entry/common.c:80entry_SYSCALL_64_after_hwframe+0x63/0xcd
[...]
JFS_SBI(ipbmap->i_sb)->bmap wasn't set to NULL after kfree() in
dbUnmount().
Syzkaller uses faultinject to reproduce this KASAN double-free
warning. The issue is triggered if either diMount() or dbMount() fail
in jfs_remount(), since diUnmount() or dbUnmount() already happened in
such a case - they will do double-free on next execution: jfs_umount
or jfs_remount.
Tested on both upstream and jfs-next by syzkaller.