총 16,343건
CVE-2026-89815
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/ttm: 성공적인 복원 후 tt->restore 제거 ttm_pool_restore_and_alloc()는 ttm_pool_restore_commit()을 통해 복원 프로세스를 성공적으로 완료할 수 있지만, 이후에 tt->restore가 제거되지 않는다. 결과적으로, 이후의 백업/복원 흐름은 완료된 복원으로 보이지만 실제로는 shmem 핸들이 여전히 tt->pages에 설치되어 있어 아래와 같은 스택 트레이스가 발생한다. 복원이 성공적으로 완료되면 ttm_pool_restore_and_alloc()에서 tt->restore를 해제하고 제거하여 이를 수정한다. 20545 [ 309.784531] RIP: 0010:sg_alloc_append_table_from_pages+0x38c/0x490 20547 [ 309.809570] RSP: 0018:ffffc9000623b838 EFLAGS: 00010206 20548 [ 309.814827] RAX: 0000000000001000 RBX: ffff88816e42a160 RCX: 0000000000000000 20549 [ 309.821986] RDX: 0000000000002000 RSI: 0000000000000003 RDI: 0000000000001000 20550 [ 309.829147] RBP: ffff88816e42a168 R08: 0000000000000002 R09: 000000007ffff000 20551 [ 309.836310] R10: ffffc9000623b928 R11: 0000000000000000 R12: 000000007ffff000 20552 [ 309.843471] R13: ffff88815ba5a100 R14: 0000000000000000 R15: 0000000000000001 20553 [ 309.850634] FS: 00007f9ff305e700(0000) GS:ffff888276c94000(0000) knlGS:0000000000000000 20554 [ 309.858749] CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033 20555 [ 309.864519] CR2: 00007f9fca701000 CR3: 00000001565e2005 CR4: 0000000008f70ef0 20556 [ 309.871678] PKRU: 55555558 20557 [ 309.874403] Call Trace: 20558 [ 309.876866] <TASK> 20559 [ 309.878988] sg_alloc_table_from_pages_segment+0x60/0x100 20560 [ 309.884415] ? ttm_resource_manager_usage+0x36/0x60 [ttm] 20561 [ 309.889845] ? xe_tt_map_sg+0x7d/0xd0 [xe] 20562 [ 309.894045] xe_tt_map_sg+0x7d/0xd0 [xe] 20563 [ 309.898037] xe_bo_move+0x927/0xaa0 [xe] 20564 [ 309.902029] ttm_bo_handle_move_mem+0xba/0x170 [ttm] 20565 [ 309.907022] ttm_bo_validate+0xbe/0x190 [ttm] 20566 [ 309.911405] xe_bo_validate+0x9a/0x120 [xe] 20567 [ 309.915663] xe_gpuvm_validate+0xd9/0x140 [xe] 20568 [ 309.920206] drm_gpuvm_validate+0x2f0/0x5b0 [drm_gpuvm] 20569 [ 309.925459] ? drm_exec_lock_obj+0x63/0x210 [drm_exec] 20570 [ 309.930627] xe_vm_validate_rebind+0x46/0xb0 [xe] 20571 [ 309.935428] xe_exec_fn+0x20/0x40 [xe] 20572 [ 309.939249] drm_gpuvm_exec_lock+0x78/0xc0 [drm_gpuvm] 20573 [ 309.944410] xe_validation_exec_lock+0x5a/0xa0 [xe] 20574 [ 309.949385] xe_exec_ioctl+0x806/0xc30 [xe] 20575 [ 309.953639] ? ttwu_queue_wakelist+0xd9/0xf0 20576 [ 309.957935] ? __pfx_xe_exec_fn+0x10/0x10 [xe] 20577 [ 309.962449] ? __wake_up_common+0x73/0xa0 20578 [ 309.966482] ? __pfx_xe_exec_ioctl+0x10/0x10 [xe] 20579 [ 309.971263] drm_ioctl_kernel+0xa3/0x100 20580 [ 309.975209] drm_ioctl+0x213/0x440 20581 [ 309.978637] ? __pfx_xe_exec_ioctl+0x10/0x10 [xe] 20582 [ 309.983415] xe_drm_ioctl+0x67/0xd0 [xe] 20583 [ 309.987408] __x64_sys_ioctl+0x7f/0xd0
CVE-2026-89814
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/amdgpu: 파티션 외부 링에 대한 격리 인덱스 제한 adev->isolation[]은 파티션당 하나의 슬롯을 가지지만, 파티션에 할당되지 않은 링은 AMDGPU_XCP_NO_PARTITION 값을 유지하며 이는 ~0이므로, 이를 인덱스로 배열에 접근하면 범위 밖 접근이 발생한다. SDMA 제출은 격리 강제 및 VM 플러시 경로 모두에서 이 문제에 걸려 UBSAN을 발생시킨다. 클리너 셰이더 경로가 이미 하는 것처럼 첫 번째 슬롯으로 대체하고, 링 타입 검사가 관련되기 전에 주소를 취하는 것을 중단한다.
CVE-2026-89813
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: force complete the KIQ ring fences on reset Like the MES scheduler ring, the KIQ ring sets no_scheduler = true and uses a polling fence, so it is skipped by the force-completion loop in amdgpu_device_pre_asic_reset(). Its hw fence value lives in wb (GTT) memory and survives a MODE1 reset while fence_drv.sync_seq keeps advancing, so after a reset the first KIQ submission can poll forever on a seq that is never written back. Force complete the KIQ ring fences too so their hw fence is realigned to sync_seq.
CVE-2026-89812
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/amdgpu: force complete the MES ring fences on reset The MES scheduler ring has no drm scheduler (no_scheduler = true), so it is skipped by the force-completion loop in amdgpu_device_pre_asic_reset(). It uses a polling fence whose hw value lives in wb (GTT) memory and survives a MODE1 reset, while fence_drv.sync_seq keeps advancing for every packet. When the reset is triggered because MES itself stopped responding, the timed-out packets advance sync_seq past the last hw fence value MES wrote. After resume the first MES submission polls forever on a seq that is never written back, failing the resume and wedging the box on a second reset: amdgpu: MES ring buffer is full. amdgpu: *ERROR* ring gfx_0.0.0 test failed (-110) amdgpu: resume of IP block <gfx_v11_0> failed -110 amdgpu: GPU reset end with ret = -110 Force complete the MES scheduler ring fences together with the scheduler rings so their hw fence is realigned to sync_seq. v2: cover all XCCs (one scheduler ring each), not just mes.ring[0].
CVE-2026-89811
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/amdkfd: MES 큐 축출/일시 중지 후 TLB 플러시 추가 MES(Micro Engine Scheduler)는 큐 언매핑 후 HWS가 자동으로 수행하는 무거운 TLB 무효화를 수행하지 않는다. 이로 인해 진행 중인 DMA 디스크립터가 언매핑된 메모리에 접근할 수 있는 경쟁 조건이 발생하여 페이지 폴트와 SVM 페이지 마이그레이션 중 GPU 큐 정지가 발생한다. 이 문제는 XNACK 모드 1이 활성화된 gfx1151(Strix Point)에서 KFDSVMRangeTest.MultiThreadMigrationTest 실패로 나타나며, GPU 컴퓨트 큐가 패킷이 제출되었지만 소비되지 않고 정지된다. 두 위치에서 MES 큐 제거 후 kfd_flush_tlb() 호출을 추가한다: - evict_process_queues_cpsch(): 축출 중 모든 큐 제거 후 - suspend_queues(): debug/criu 큐 일시 중지 후(mem_fence 장벽과 함께) 이를 통해 언매핑된 큐에서 진행 중인 모든 메모리 접근이 메모리가 해제되거나 마이그레이션되기 전에 플러시된다. (commit f5c4f88e0f9c45a8fb9dfac0c1df726c95e41b77에서 체리픽됨)
CVE-2026-89810
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/amdkfd: svm_migrate_copy_to_ram의 오류 경로 수정 장치에서 시스템 램으로의 페이지 마이그레이션이 어떤 이유로 실패할 경우 드라이버는 할당된 시스템 페이지를 해제하고 잠금을 해제해야 한다. 이를 위해 드라이버는 페이지 물리 주소 또는 pfn을 사용하여 struct page*를 얻어야 한다. 현재 드라이버는 IOMMU가 활성화된 경우나 일반적으로 올바르지 않은 dma 주소(adev용)를 사용하고 있다. 이 패치는 마이그레이션이 실패한 위치를 기준으로 시스템 램 페이지의 struct page*를 사용하여 할당된 시스템 페이지를 해제하고 잠금을 해제한다. 또한 오류 경로에서 해당 시스템 램 페이지에 대해 dma_unmap을 수행한다.
CVE-2026-89809
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix scope of mqd_mgr dereference in pqm_debugfs_mqds Reading /sys/kernel/debug/kfd/mqds while a process holds an active KFD queue triggers a NULL pointer dereference because the for loop that calls mqd_mgr->debugfs_show_mqd() is incorrectly placed outside the if (pqn->q) block that initializes mqd_mgr. The queue list can contain entries where pqn->q is NULL (kernel queues where only pqn->kq is valid). In the original code: if (pqn->q) { ... mqd_mgr = q->device->dqm->mqd_mgrs[mqd_type]; size = mqd_mgr->mqd_stride(...); } for (xcc = 0; xcc < num_xccs; xcc++) { // WRONG: outside if block mqd = q->mqd + size * xcc; r = mqd_mgr->debugfs_show_mqd(m, mqd); } When iterating over a queue node where pqn->q is NULL: 1. The if (pqn->q) block is skipped 2. mqd_mgr remains uninitialized (NULL from declaration) 3. The for loop executes anyway 4. mqd_mgr->debugfs_show_mqd(m, mqd) dereferences NULL The crash manifests as: BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor instruction fetch in kernel mode RIP: 0010:0x0 Call Trace: pqm_debugfs_mqds+0x10c/0x1d0 [amdgpu] kfd_debugfs_mqds_by_process+0x9b/0x110 [amdgpu] seq_read_iter+0x132/0x4b0 ... Fix by moving the for loop inside the if (pqn->q) block, so mqd_mgr and related variables are only used when properly initialized. (cherry picked from commit 8bfe29d5c798940f797aa24135d2734c3ffce9de)
CVE-2026-89808
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/amdkfd: svm_migrate_copy_to_vram에서 vm 범위가 구멍인 경우 수정 마이그레이션 vm 범위가 CPU 측에서 구멍인 경우(MIGRATE_PFN_MIGRATE 설정 + MIGRATE_PFN_VALID 미설정) 드라이버가 여전히 디바이스 페이지를 할당한다. 소스 페이지와 마이그레이션에 대한 DMA 매핑이 없다. j는 0이며 svm_migrate_copy_memory_gart()는 초기화되지 않은 r을 반환한다. 이는 out_free_vram_pages가 방금 설정된 모든 VRAM을 해제하도록 유발할 수 있다. r을 초기화하고 j > 0인 경우에만 마지막 svm_migrate_copy_memory_gart를 호출한다. 현재 코드는 마지막 페이지를 최종 복사로 연기한다. 이 패치는 현재 drm_buddy_block의 끝에 도달했을 때 마지막 페이지를 플러시하여 추가 svm_migrate_copy_memory_gart 호출을 방지한다.
CVE-2026-89807
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: guard against NULL restore_mqd in CRIU queue restore Both create_queue_cpsch() and create_queue_nocpsch() unconditionally call mqd_mgr->restore_mqd() when a CRIU restore is in progress (qd != NULL), with no NULL guard. On any system where restore_mqd is not implemented for the given queue type, a user holding CAP_CHECKPOINT_RESTORE can trigger a kernel NULL pointer dereference and panic the machine by issuing KFD_IOC_CRIU_OP_RESTORE with a crafted queue restore object. Note that checkpoint_mqd is likewise unimplemented on GFX12, so no legitimate CRIU image can reach this path — only a hand-crafted restore payload. Add a NULL guard for restore_mqd immediately after mqd_mgr is resolved, unwinding via the existing error labels and returning -EOPNOTSUPP if the callback is not implemented. This mirrors the existing checkpoint_mqd guard in checkpoint_mqd().
CVE-2026-89806
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/sysfb: ofdrm: fb_size 계산에서 정수 오버플로 수정 프레임버퍼 크기 계산 `fb_size = linebytes * height`는 두 값이 모두 클 경우 오버플로가 발생할 수 있다(예: 46341 * 46341 > INT_MAX). linebytes와 height가 모두 int 타입이므로 곱셈은 int * int로 수행되어 오버플로 시 정의되지 않은 동작이 발생한다. simpledrm.c와 corebootdrm.c에서 사용된 방식과 일치하도록 check_mul_overflow()를 사용하여 이 오버플로를 감지하고 방지한다.
CVE-2026-89805
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/pagemap: folio 할당 폴백 및 사용 후 해제(use-after-put) 수정 drm_pagemap_migrate_populate_ram_pfn() 함수는 고차원 folio로 RAM PFN을 채울 때 두 가지 문제가 있었다: 1. 고차원 vma_alloc_folio()/folio_alloc() 호출은 __GFP_NOWARN를 전달하지 않아, 메모리 압박 시 THP 할당 실패가 커널 로그를 스팸으로 만들었고, TODO 주석에 폴백 경로가 필요하다고 명시되어 있었음에도 폴백 경로가 없었다. 고차원 할당에 __GFP_NOWARN를 추가하고 실패 시 실패한 고차원 할당이 원래 커버하던 전체 범위에 대해 order-0 할당으로 폴백하며, 해당 PFN에 대해 MIGRATE_PFN_COMPOUND를 설정하지 않는다. 2. free_pages 오류 경로에서 order는 put_page(page)가 이미 참조를 해제한 후 folio_order(page_folio(page))를 통해 계산되어, 페이지의 마지막 참조일 경우 사용 후 해제(use-after-free/put)가 발생했다. 페이지를 해제하기 전에 order를 계산하도록 수정했다. 1번에서 폴백을 도입함에 따라 ->copy_to_ram()에 전달되는 소스 페이지 배열도 다르게 구성되어야 한다. 두 호출자는 각 소스 folio의 첫 번째 항목만 채우고, 복사 콜백이 일치하는 drm_pagemap_addr에 기록된 order를 통해 나머지 folio를 유도하는 방식이었다. 목적지가 order-0 folio로 강등되면 drm_pagemap_addr 항목이 페이지별로 존재하므로, 각 항목마다 소스 페이지가 필요하다; NULL로 두면 복사 콜백이 첫 페이지 후에 중단되어 나머지 범위가 복사되지 않는다. 소스 folio는 migrate_vma_pages() / migrate_device_pages()에서 나중에 분할되므로, 강등 여부를 감지하기 위해 소스 folio의 order를 사용할 수 없다 - 대신 목적지에서 MIGRATE_PFN_COMPOUND를 검사한다. 배열 채우기 작업을 drm_pagemap_migrate_populate_src_pages()로 분리하고 drm_pagemap_evict_to_ram()과 __drm_pagemap_migrate_to_ram()에서 사용한다.
CVE-2026-89804
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/nouveau/dmem: 큰 폴리오에 대한 불일치하는 DMA 언맵 크기 수정 디바이스 전용 THP 마이그레이션은 migration 버퍼를 page_size()로 매핑하고 dma_info->size에 그 길이를 기록한다. 컴파운드 폴리오의 경우 page_size()는 PAGE_SIZE << order이지만, 두 개의 해제 지점에서는 여전히 리터럴 PAGE_SIZE를 dma_unmap_page()에 전달한다: - 성공 경로의 nouveau_dmem_migrate_to_ram(), 그리고 - 복사 오류 경로의 nouveau_dmem_migrate_copy_one(). order > 0인 폴리오의 경우 이는 매핑된 것보다 적게 언맵하여 IOMMU/IOVA 매핑의 나머지를 누출한다. 다른 언맵 지점인 nouveau_dmem_migrate_chunk()와 nouveau_dmem_evict_chunk()는 이미 저장된 크기를 사용하므로 여기서도 이를 사용하도록 수정되었다.
CVE-2026-89803
2026년 9월 16일리눅스 커널에서 다음 취약점이 해결되었다: drm/nouveau: 펜스 컨텍스트 이전에 채널-킬 이벤트 구독 취소 nouveau_channel_del()은 먼저 펜스 컨텍스트를 해제하고 채널-킬 구독은 nvif 객체 해제 중간에 나중에 해제한다: if (chan->fence) nouveau_fence(chan->cli->drm)->context_del(chan); ... nvif_object_dtor(&chan->vram); nvif_event_dtor(&chan->kill); 구독된 핸들러는 nouveau_channel_killed()이며, 이는 nouveau_channel_kill()을 호출하고 거기서 chan->fence에 대해 nouveau_fence_context_kill()을 호출한다. 이 창에서 전달된 킬 이벤트는 fctx->lock을 획득하고 context_del()이 이미 해제한 펜스 컨텍스트의 fctx->pending을 순회한다. 오늘날 Fermi 이전 버전에서는 이 문제가 발생하지 않는데, 구독이 FERMI_CHANNEL_GPFIFO에 제한되고 그곳에서는 채널을 킬하는 일이 없기 때문이다. Fermi 및 이후 버전에서는 이 창이 실제로 존재하지만 좁은데, 채널이 파괴되는 정확한 순간에 킬 이벤트가 도착해야 하기 때문이다. 이것만으로도 충분한 이유이며, 그래서 이 패치에 Fixes: 태그가 붙었다. 이 시리즈의 마지막 패치는 Tesla 채널도 구독하는데, 현재는 Tesla 채널을 킬하는 일이 없으므로 노출 범위가 넓어지지 않지만, 향후 복구 경로를 위한 기반이며 그 경로가 도입되기 전에 순서를 바로잡는 것이 더 낫다. 의존하는 어떤 것도 해제되기 전에 구독을 취소한다.
CVE-2026-89802
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/uvmm: fix NULL deref unwinding an OP_MAP_SPARSE op Each bind_job_op is zeroed by kzalloc_obj() in bind_job_op_from_uop(), and the OP_MAP_SPARSE case in nouveau_uvmm_bind_job_submit() only creates a region, so op->ops stays NULL for a successfully processed sparse map. If a later op in the same job fails, the reverse unwind loop revisits that op and calls drm_gpuva_ops_free(&uvmm->base, op->ops) unconditionally. drm_gpuva_ops_free() dereferences its argument right away (list_for_each_entry_safe on &ops->list), so a NULL op->ops oopses. The path is reachable by any render-node fd holder, since NOUVEAU_VM_BIND is DRM_RENDER_ALLOW. Guard the free with IS_ERR_OR_NULL(), as nouveau_uvmm_bind_job_cleanup() already does for the identical free.
CVE-2026-89801
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: drm/nouveau/uvmm: 실패한 OP_UNMAP_SPARSE에서 조기 영역 해제를 수정함 nouveau_uvmm_bind_job_submit()의 OP_UNMAP_SPARSE 분기에서 op->reg는 nouveau_uvma_region_find()에서 설정되는데, 이 함수는 영역을 조회만 하고 참조를 하지 않는다; 영역의 유일한 참조는 uvmm->region_mt에 속해 있는 것이다. 두 가지 실패 경로가 op->reg를 설정된 상태로 남긴다: 영역이 바쁠 때의 -ENOENT 검사와 drm_gpuvm_sm_unmap_ops_create() 실패이다. 바로 아래의 동등한 nouveau_uvmm_sm_unmap_prepare() 실패는 op->reg를 초기화하지만, 이 두 경로는 그렇지 않다. unwind_continue는 한 단계 이전의 op로 되돌아가므로 실패한 op는 unwind 루프에서 건너뛰어지고 op->reg는 설정된 상태로 남는다. 이후 nouveau_uvmm_bind_job_cleanup()는 if (op->reg) 분기에 진입하여 nouveau_uvma_region_remove()와 nouveau_uvma_region_put()를 호출하는데, 이로 인해 트리의 유일한 참조가 떨어지고 이 작업이 생성하지 않은 영역이 해제된다. 정리 루프 위의 주석은 깨진 불변 조건을 문서화하는데: 제출 실패 시 op->reg는 NULL이어야 한다. 이로 인해 drm_gpuvm_sm_unmap_ops_create()가 -ENOMEM을 반환할 때 단일 작업에서 접근 가능한 관련 없는 실패 시 라이브 영역이 해제된다; 만약 다른 작업이 동일 영역을 소유하고 있다면, 그 작업의 정리 과정에서 해제된 영역을 제거하고 참조를 떨어뜨려 해제 후 사용(use-after-free)이 발생한다. 두 실패 경로 모두에서 op->reg를 초기화하도록 수정하였다.
CVE-2026-89800
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: drm/nouveau/uvmm: clear the dirty flag when unwinding an OP_UNMAP_SPARSE A successful OP_UNMAP_SPARSE marks its region dirty with nouveau_uvma_region_dirty() and defers the teardown to nouveau_uvmm_bind_job_cleanup(); it does not remove the region from uvmm->region_mt. If a later op in the job fails, the unwind path never clears reg->dirty (set in one place, cleared nowhere) and sets op->reg = NULL, so cleanup skips the teardown. The region is left in the tree with dirty set and its completion never signalled. Later binds over that range then fail permanently -- -ENOENT or -EINVAL from the dirty checks, or an unkillable wait_for_completion() in bind_validate_region() -- for the lifetime of the uvmm. Clear reg->dirty when the unwind reverts the sparse unmap, restoring the region to the state it was found in.
CVE-2026-89799
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: bpf: bpf_get_stackid에서 선점 비활성화 get_perf_callchain 호출은 선점 비활성화가 필요하며, 반환된 추적 항목 버퍼에 접근하는 동안 선점이 비활성화되어야 한다. bpf_get_stackid_pe 함수는 이미 선점이 비활성화된 상태에서 실행된다는 점에 유의하라.
CVE-2026-89798
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: rpcrdma: arm rn_done before publishing the notification rpcrdma_rn_register() inserts @rn into rd_xa with xa_alloc() before storing the caller's callback in rn->rn_done. The xarray makes @rn reachable to rpcrdma_remove_one(), which walks rd_xa and invokes rn->rn_done(rn) for every registered notification. A device removal that races a fresh registration can therefore observe @rn with rn_done still NULL, because the notification objects are zero allocated by their owners, and call through a NULL function pointer. Store rn->rn_done before xa_alloc() publishes @rn. The xarray's store-side and load-side ordering then guarantees that any CPU which finds @rn in rd_xa also observes the armed callback. rpcrdma_rn_unregister() treats a non-NULL rn_done as the sentinel for a completed registration, so the early store must not survive a failed registration. Clear rn_done again when xa_alloc() fails. Were it left set, the failed-accept cleanup path would call rpcrdma_rn_unregister() on an @rn that was never inserted, erasing an unrelated rd_xa slot and underflowing rd_kref.
CVE-2026-89797
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: power: supply: ab8500_fg: fix use-after-free on remove ab8500_fg_remove() destroys the driver workqueue while the threaded interrupt handlers are still armed; they are devm-managed and freed only after ->remove() returns, so a handler that fires in that window queues work on the freed workqueue. Tear the workqueue down through devm instead, registering its cleanup after the power supply and before the interrupt requests. devm then frees the interrupts first, so the handlers can no longer queue work, before disabling the delayed and plain work items and destroying the workqueue. Disabling the items, rather than cancelling them, keeps them disabled so no producer (including the power-supply external_power_changed callback) can requeue them. Found by an in-house static analysis tool.
CVE-2026-89796
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: avoid infinite kdamond_merge_regions() internal loop Patch series "mm/damon: unurgent fixes for infinite loop, NULL de-ref and races", v1.1. Sashiko found a few issues in DAMON that could cause infinite loop, NULL dereference and monitoring results degradation. The first two sounds scary but the infinite loop happens only under unreasonable user setup. The NULL dereference is only in a unit test. Monitoring results degradation is trivial since it is only best-effort, and those happens from only unlikely races. Still those are bugs that better to fix if possible. Fix those. This patch (of 6): Due to online parameter update like events, the number of DAMON regions could be higher than the user-set upper limit. kdamond_merge_regions() repeats merge regions until the number meets the limit, while doubling the merge threshold up to the theoretical maximum threshold. It is tried only up to the theoretical maximum threshold because even the aggressive merging can fail from reducing the number of regions under the user-defined upper limit. For example, there could be many user-defined non-contiguous regions that cannot be merged. The threshold based loop break condition is evaluated by comparing the threshold for the next merging try against the theoretical maximum threshold. If max_thres is larger than UINT_MAX / 2, doubling the threshold could make it overflow, and bypass the loop break condition. In the case, if the number of regions cannot be reduced under the upper limit like explained above, the loop will run infinitely. Prevent the case by doing the break condition check before doubling the threshold. Also, prevent the threshold exceeding the maximum threshold, as it could overflow and apply the wrong merge threshold. This issue is unlikely to occur in real world, since having the max_thres higher than UINT_MAX / 2 require unrealistically large aggregation intervals compared to the sampling interval. Also, it requires an unrealistically large number of uncontiguous regions setup. Nonetheless, the consequence is bad and the fix is simple. The issue was discovered [1] by Sashiko.