In the Linux kernel, the following vulnerability has been resolved: drm/nouveau: fix double-free in nvif_vmm_dtor On failure, nouveau_cli_
위협 신호 · CVSS · EPSS · KEV
이론적 심각도 점수
예측 데이터 없음
실측 악용 기록 없음
계획된 패치 주기 내 조치(60일 이내)
CVSS 벡터 · 메트릭
CVSS 벡터 정보 없음
상세 설명
In the Linux kernel, the following vulnerability has been resolved:
drm/nouveau: fix double-free in nvif_vmm_dtor
On failure, nouveau_cli_init() calls nouveau_cli_fini() to tear
the client down. Then, nouveau_drm_open() also enters into its
cleanup path and calls nouveau_cli_fini() AGAIN. nouveau_cli_fini()
calls nouveau_vmm_fini():
1void 2nouveau_vmm_fini(struct nouveau_vmm *vmm) 3{ 4 nouveau_svmm_fini(&vmm->svmm); 5 nvif_vmm_dtor(&vmm->vmm); 6 vmm->cli = NULL; 7}Inside nvif_vmm_dtor(), vmm->page is freed unconditionally:
1void 2nvif_vmm_dtor(struct nvif_vmm *vmm) 3{ 4 kfree(vmm->page); 5 nvif_object_dtor(&vmm->object); 6}vmm->page is never cleared after being freed, so the second call of
nvif_vmm_dtor() will cause a double-free.
Found by fuzzing the nouveau driver with a modified Syzkaller:
1BUG: KASAN: double-free in nvif_vmm_dtor+0x31/0x50 drivers/gpu/drm/nouveau/nvif/vmm.c:194 2Free of addr ffff888010fcdc30 by task syz.0.173/2567 3 4CPU: 1 UID: 0 PID: 2567 Comm: syz.0.173 Not tainted 7.2.0 #24 PREEMPT(lazy) 5Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 6Call Trace: 7<TASK> 8__dump_stack lib/dump_stack.c:94 [inline] 9dump_stack_lvl+0x95/0xe0 lib/dump_stack.c:12010print_address_description mm/kasan/report.c:378 [inline]11print_report+0xcb/0x5a0 mm/kasan/report.c:48212kasan_report_invalid_free+0xaa/0xd0 mm/kasan/report.c:55713check_slab_allocation+0xe4/0x110 mm/kasan/common.c:23514kasan_slab_pre_free include/linux/kasan.h:199 [inline]15slab_free_hook mm/slub.c:2622 [inline]16slab_free mm/slub.c:6377 [inline]17kfree+0x192/0x590 mm/slub.c:669218nvif_vmm_dtor+0x31/0x50 drivers/gpu/drm/nouveau/nvif/vmm.c:19419nouveau_vmm_fini+0x16/0x50 drivers/gpu/drm/nouveau/nouveau_vmm.c:12720nouveau_cli_fini+0x10e/0x210 drivers/gpu/drm/nouveau/nouveau_drm.c:22521nouveau_drm_open+0x24e/0x740 drivers/gpu/drm/nouveau/nouveau_drm.c:125522drm_file_alloc+0x5f2/0xad0 drivers/gpu/drm/drm_file.c:17623drm_open_helper+0x1d7/0x4a0 drivers/gpu/drm/drm_file.c:33524drm_open+0x190/0x3d0 drivers/gpu/drm/drm_file.c:38825drm_stub_open+0x1f2/0x460 drivers/gpu/drm/drm_drv.c:121126chrdev_open+0x21c/0x660 fs/char_dev.c:41127do_dentry_open+0x59d/0x12b0 fs/open.c:94728vfs_open+0x82/0x390 fs/open.c:105229do_open fs/namei.c:4700 [inline]30path_openat+0x2345/0x3420 fs/namei.c:486331do_file_open+0x207/0x460 fs/namei.c:489232do_sys_openat2+0xd1/0x1d0 fs/open.c:136833do_sys_open fs/open.c:1374 [inline]34__do_sys_openat fs/open.c:1390 [inline]35__se_sys_openat fs/open.c:1385 [inline]36__x64_sys_openat+0x144/0x200 fs/open.c:138537do_syscall_x64 arch/x86/entry/syscall_64.c:63 [inline]38do_syscall_64+0x115/0x690 arch/x86/entry/syscall_64.c:9439entry_SYSCALL_64_after_hwframe+0x77/0x7f40RIP: 0033:0x7fc6d687594d41Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 90 f3 0f 1e fa 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 b0 ff ff ff f7 d8 64 89 01 4842RSP: 002b:00007fc6d5295008 EFLAGS: 00000246 ORIG_RAX: 000000000000010143RAX: ffffffffffffffda RBX: 00007fc6d6b06180 RCX: 00007fc6d687594d44RDX: 0000000000022501 RSI: 0000200000000000 RDI: ffffffffffffff9c45RBP: 00007fc6d691c303 R08: 0000000000000000 R09: 000000000000000046R10: 0000000000000000 R11: 0000000000000246 R12: 000000000000000047R13: 00007fc6d6b06218 R14: 00007fc6d6b06180 R15: 00007ffd9451d76048</TASK>49 50Allocated by task 2567 on cpu 1 at 163.593900s:51kasan_save_stack+0x24/0x50 mm/kasan/common.c:5752kasan_save_track+0x17/0x60 mm/kasan/common.c:7853poison_kmalloc_redzone mm/kasan/common.c:398 [inline]54__kasan_kmalloc+0xaa/0xb0 mm/kasan/common.c:41555kasan_kmalloc include/linux/kasan.h:263 [inline]56__do_kmalloc_node mm/slub.c:5334 [inline]57__kmalloc_noprof+0x304/0x7c0 mm/slub.c:535958_kmalloc_noprof include/linux/slab.h:992 [inline]59nvif_vmm_ctor+0x3c0/0x7e0 drivers/gpu/drm/nouveau/nvif/vmm.c:23760nouveau_vmm_init+0x40/0x90 drivers/gpu/drm/nouveau/nouveau_vmm.c:13461nouveau_cli_init+0x7b9/0---truncated---
AI 심층 분석
공격 시나리오 · 재현 가능한 PoC 페이로드 · 즉시 적용 가능한 차단 패치를 한 번에 받아 보세요. 보안 운영팀이 그대로 점검·티켓팅에 쓸 수 있는 형태로 정리해 드립니다.
참고 자료 8
링크 내용 불러오는 중…