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:
drm/nouveau/uvmm: fix UAF in nouveau_uvmm_sm when BO is in TTM_PL_SYSTEM
nouveau_uvmm_sm() calls op_map(), which passes bo->resource through
nouveau_mem() to nouveau_uvma_map(). nouveau_uvmm_vmm_map() then reads
mem->mem.type.
But this is only valid when bo->resource is backed by struct nouveau_mem,
as is the case for VRAM and TT resources. If the BO is left in
TTM_PL_SYSTEM, bo->resource is only a struct ttm_resource. Treating it
as struct nouveau_mem makes the mem->mem.type read past the end of the
resource, causing a KASAN: slab-use-after-free Read in nouveau_uvmm_sm
report:
BUG: KASAN: slab-use-after-free in nouveau_uvmm_vmm_map drivers/gpu/drm/nouveau/nouveau_uvmm.c:152[inline]BUG: KASAN: slab-use-after-free in nouveau_uvma_map drivers/gpu/drm/nouveau/nouveau_uvmm.c:199[inline]BUG: KASAN: slab-use-after-free in op_map drivers/gpu/drm/nouveau/nouveau_uvmm.c:849[inline]BUG: KASAN: slab-use-after-free in nouveau_uvmm_sm.constprop.0+0x6ab/0x900drivers/gpu/drm/nouveau/nouveau_uvmm.c:903Read of size 1 at addr ffff888127d3e3a0 by task kworker/0:1/11
CPU: 0 UID: 0 PID: 11 Comm: kworker/0:1 Not tainted 7.2.0 #5 PREEMPT(lazy)
Hardware name: QEMU Standard PC (Q35 + ICH9, 2009), BIOS 1.16.3-debian-1.16.3-2 04/01/2014
Workqueue: nouveau_sched_wq_2224 drm_sched_run_job_work
Call Trace:<TASK>__dump_stacklib/dump_stack.c:94[inline]dump_stack_lvl+0x95/0xe0lib/dump_stack.c:120print_address_descriptionmm/kasan/report.c:378[inline]print_report+0xcb/0x5a0mm/kasan/report.c:482kasan_report+0xca/0x100mm/kasan/report.c:595nouveau_uvmm_vmm_mapdrivers/gpu/drm/nouveau/nouveau_uvmm.c:152[inline]nouveau_uvma_mapdrivers/gpu/drm/nouveau/nouveau_uvmm.c:199[inline]op_mapdrivers/gpu/drm/nouveau/nouveau_uvmm.c:849[inline]nouveau_uvmm_sm.constprop.0+0x6ab/0x900drivers/gpu/drm/nouveau/nouveau_uvmm.c:903nouveau_uvmm_sm_unmapdrivers/gpu/drm/nouveau/nouveau_uvmm.c:932[inline]nouveau_uvmm_bind_job_run+0xd6/0x250drivers/gpu/drm/nouveau/nouveau_uvmm.c:1532nouveau_job_rundrivers/gpu/drm/nouveau/nouveau_sched.c:350[inline]nouveau_sched_run_job+0x62/0xd0drivers/gpu/drm/nouveau/nouveau_sched.c:364drm_sched_run_job_work+0x356/0xa10drivers/gpu/drm/scheduler/sched_main.c:1061process_one_work+0x8a5/0x1900kernel/workqueue.c:3322process_scheduled_workskernel/workqueue.c:3405[inline]worker_thread+0x5dd/0xd80kernel/workqueue.c:3486kthread+0x31d/0x420kernel/kthread.c:436ret_from_fork+0x662/0x940arch/x86/kernel/process.c:158ret_from_fork_asm+0x1a/0x30arch/x86/entry/entry_64.S:245</TASK>Allocated by task 2224 on cpu 0 at 66.550027s:kasan_save_stack+0x24/0x50mm/kasan/common.c:57kasan_save_track+0x17/0x60mm/kasan/common.c:78poison_kmalloc_redzonemm/kasan/common.c:398[inline]__kasan_kmalloc+0xaa/0xb0mm/kasan/common.c:415kasan_kmallocinclude/linux/kasan.h:263[inline]__do_kmalloc_nodemm/slub.c:5334[inline]__kmalloc_noprof+0x304/0x7c0mm/slub.c:5359_kmalloc_noprofinclude/linux/slab.h:992[inline]dma_resv_list_alloc+0x27/0x90drivers/dma-buf/dma-resv.c:106dma_resv_reserve_fences+0x60e/0xa30drivers/dma-buf/dma-resv.c:205ttm_bo_alloc_resource+0x12c/0xbd0drivers/gpu/drm/ttm/ttm_bo.c:721ttm_bo_validate+0x1bc/0x4a0drivers/gpu/drm/ttm/ttm_bo.c:856ttm_bo_init_reserved+0x2c3/0x570drivers/gpu/drm/ttm/ttm_bo.c:970nouveau_bo_init+0x159/0x2c0drivers/gpu/drm/nouveau/nouveau_bo.c:359nouveau_gem_new+0x234/0x5f0drivers/gpu/drm/nouveau/nouveau_gem.c:272nouveau_gem_ioctl_new+0x1eb/0x420drivers/gpu/drm/nouveau/nouveau_gem.c:352drm_ioctl_kernel+0x192/0x350drivers/gpu/drm/drm_ioctl.c:817drm_ioctl+0x4f8/0xb40drivers/gpu/drm/drm_ioctl.c:914nouveau_drm_ioctl+0xea/0x2c0drivers/gpu/drm/nouveau/nouveau_drm.c:1338vfs_ioctlfs/ioctl.c:51[inline]__do_sys_ioctlfs/ioctl.c:597[inline]__se_sys_ioctlfs/ioctl.c:583[inline]__x64_sys_ioctl+0x180/0x1d0fs/ioctl.c:583 do_syscall_x64 ar