총 16,343건
CVE-2026-89975
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: nvme-fabrics: fix DHCHAP secret leak on parse failure nvmf_parse_options() duplicates dhchap_secret and dhchap_ctrl_secret with match_strdup() before validating the DHHC-1: representation. If validation fails, the parser returns -EINVAL before the temporary string in p is assigned to opts->dhchap_secret or opts->dhchap_ctrl_secret. nvmf_create_ctrl() subsequently frees opts, but nvmf_free_options() cannot release the unassigned temporary string. Each rejected option therefore leaks one allocation. This is easy to miss because valid secrets transfer ownership to opts and are freed normally, while the malformed-secret path still returns the expected -EINVAL to userspace. With CONFIG_NVME_HOST_AUTH enabled, the leak is reachable before the required-option checks and transport lookup. No NVMe-oF target or working transport connection is required; for example, repeatedly writing dhchap_secret=BAD or dhchap_ctrl_secret=BAD to /dev/nvme-fabrics deterministically takes the leaking parse path. Free the temporary string before leaving both validation error paths. Use kfree_sensitive() because the copied option may contain secret material even when its representation is rejected, matching the sensitive cleanup used for stored DHCHAP secrets.
CVE-2026-89974
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvme-fc: nvme_add_ctrl() 실패 시 fabrics 옵션의 이중 해제 문제 수정 nvmf_create_ctrl()는 fabrics 옵션의 소유권을 가지며 ->create_ctrl()이 오류를 반환할 때마다 이를 해제하므로, 전송 계층은 자체 오류 경로에서 이를 해제해서는 안 된다. nvme-fc는 nvme_fc_ctrl_free()에서 ctrl->ctrl.opts를 검사하여 이를 추적하며, 이는 nvme_fc_init_ctrl()가 모든 오류 종료 시 해당 포인터를 NULL로 초기화해야 함을 요구한다. 이 결합은 암묵적이며, 커밋 1a9e218195a5("nvme: split device add from initialization")가 두 번째 오류 종료 경로를 추가하면서 이를 깨뜨렸다. nvme_add_ctrl()가 실패하면 nvme_fc_init_ctrl()는 fail_ctrl: 경로에만 있는 "ctrl->ctrl.opts = NULL"을 건너뛰고 out_put_ctrl:로 점프하므로, nvme_fc_ctrl_free()가 옵션을 해제하고 nvmf_create_ctrl()가 다시 한 번 해제하여 다음과 같은 문제가 발생한다: BUG: KASAN: slab-use-after-free in nvmf_free_options+0x30/0x190 nvmf_free_options+0x30/0x190 drivers/nvme/host/fabrics.c:1284 nvmf_create_ctrl drivers/nvme/host/fabrics.c:1374 [inline] Freed by task 5534: nvme_fc_ctrl_free drivers/nvme/host/fc.c:2374 [inline] nvme_fc_init_ctrl+0xe17/0x1450 drivers/nvme/host/fc.c:3605 nvme_add_ctrl()는 dev_set_name()이 할당할 수 없을 때 실패하므로, 이는 메모리 압박이나 결함 주입 시 발생할 수 있다. KASAN이 없으면 옵션이 두 번 해제된다. 두 번째 종료 경로에서도 포인터를 NULL로 초기화하는 대신, nvme-tcp, nvme-rdma, nvme-loop가 사용하는 방식처럼 리스트 멤버십에서 소유권을 유도한다: 이들의 free_ctrl는 컨트롤러가 전송 리스트에 포함된 경우에만 옵션을 해제한다. 리스트는 성공 경로에서 단순히 채워질 수 없다. nvme-fc는 flush_delayed_work()를 통해 초기 연결을 동기적으로 실행하며, 컨트롤러는 전체 기간 동안 rport->ctrl_list에서 접근 가능해야 한다: nvme_fc_unregister_remoteport()는 연결 손실 신호를 위해 이를 찾아야 하고, nvme_fc_match_disconn_ls()는 들어오는 Disconnect Association LS를 ctrl->association_id와 매칭하는데, 이는 해당 창 동안에만 할당된다. nvme_fc_resume_controller()는 원격 포트 재등록 시 이를 필요로 하며, nvme_fc_existing_controller()는 진행 중인 연결과 경쟁하는 중복 연결을 거부하기 위해 사용한다. 삽입 위치를 유지하고, 그 이후 실행되는 오류 경로를 위해 fail_unlist: 레이블을 추가하여 fail_ctrl:로 넘어가게 한다. 이전 오류 경로는 삽입에 도달하지 않으므로 fail_ctrl:를 직접 사용하며, 리스트는 컨트롤러가 실제로 포함된 경우에만 수정된다. nvme_fc_ctrl_free()는 다른 전송 계층이 사용하는 단순한 "goto free_ctrl"를 사용할 수 없다. 왜냐하면 삽입 전에 취한 리소스에 대해 put_device(), rport 참조 해제, ida 항목 해제를 수행해야 하기 때문이다. 대신 rport->lock 아래에서 list_empty()를 샘플링한다. ctrl->ctrl.opts는 이제 전체 해체 과정 동안 유효하게 유지된다. 이는 수정되는 버그는 아니지만, 이전 관용구의 일부 취약성을 제거한다: nvme_free_ctrl()는 ->free_ctrl() 전에 nvme_auth_free()를 호출하며, ctrl_max_dhchaps()는 ctrl->dhchap_ctxs가 설정된 경우 NULL 검사 없이 ctrl->opts를 역참조하는데, nvme-fc는 NVMF_ALLOWED_OPTS가 dhchap 옵션을 허용하므로 이를 허용한다. hostnqn 및 address와 같은 ctrl->opts를 역참조하는 nvme sysfs 속성은 device_add() 시점에 is_visible() 테스트를 한 번 수행하고 cdev_device_del()까지 읽을 수 있다.
CVE-2026-89973
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvme-tcp: C2HData PDU의 데이터 방향을 확인 nvme_tcp_handle_c2h_data()는 명령 ID로 요청을 찾고 페이로드가 있는지 확인하지만, 명령이 데이터를 읽도록 요청했는지는 확인하지 않는다. 따라서 쓰기 명령에 C2HData로 응답하는 컨트롤러는 nvme_tcp_recv_data()에 도달하며, 여기서 _copy_to_iter()가 WARN_ON_ONCE(i->data_source)를 발생시키고 0을 반환한다. 수신 경로는 이를 -EFAULT로 변환하고 컨트롤러를 재설정한다. 데이터가 복사되지 않으므로 메모리 손상은 아니다. 컨트롤러가 받는 것은 커널 경고이며, panic_on_warn로 부팅된 호스트에서는 치명적이다. 전송 경로는 이미 방향을 알고 있으며, 명령을 빌드할 때 rq_data_dir()를 참조하고 nvme_tcp_handle_r2t()는 요청의 길이와 오프셋을 확인한다. 그러나 C2HData 경로는 방향을 전혀 확인하지 않는다. 읽기 명령이 아닌 C2HData PDU를 거부한다. 거부 시 명령이 실패하고 컨트롤러가 재설정되며, 이 함수 내 인접한 검사와 동일하다; 경고가 사라진다. [ 6.885580] ------------[ cut here ]------------ [ 6.886457] WARNING: lib/iov_iter.c:193 at _copy_to_iter+0x289/0x1330, CPU#0: kworker/0:1H/71 [ 6.888137] CPU: 0 UID: 0 PID: 71 Comm: kworker/0:1H Not tainted 7.2.0-rc5-NVMETCP-gf5098b6bae76 #1 PREEMPT(lazy) [ 6.891165] Workqueue: nvme_tcp_wq nvme_tcp_io_work [ 6.891875] RIP: 0010:_copy_to_iter+0x289/0x1330 [ 6.903739] Call Trace: [ 6.904085] <TASK> [ 6.909254] __skb_datagram_iter+0x433/0x820 [ 6.911026] skb_copy_datagram_iter+0x37/0x120 [ 6.911622] nvme_tcp_recv_skb+0xa07/0x4320 [ 6.913378] __tcp_read_sock+0x1ab/0x810 [ 6.915788] nvme_tcp_try_recv+0x152/0x1e0 [ 6.918222] nvme_tcp_io_work+0x1e4/0x6c0 [ 6.926906] </TASK> [ 6.927226] ---[ end trace 0000000000000000 ]--- [ 6.927878] nvme nvme0: queue 1 failed to copy request 0x71 data [ 6.928709] nvme nvme0: receive failed: -14
CVE-2026-89972
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvme: 오류 경로에서 누락된 SRCU 유예 기간 추가 nvme_alloc_ns()의 오류 경로인 out_unlink_ns는 list_del_rcu(&ns->siblings)로 네임스페이스 헤드 형제 목록에서 ns를 제거하지만, 네임스페이스 구조체를 해제하기 전에 SRCU 리더를 기다리지 않는다. 멀티패스 코드는 nvme_find_path()와 nvme_mpath_revalidate_paths()에서 srcu_read_lock() 하에 head->list를 반복하므로, 동시 실행 중인 리더가 kfree(ns)가 실행될 때 여전히 ns에 대한 참조를 보유할 수 있다. nvme_ns_remove()의 정상 제거 경로는 list_del_rcu() 후에 synchronize_srcu(&ns->head->srcu)를 올바르게 호출하여 진행 중인 리더를 기다린다. 오류 경로에도 동일한 유예 기간을 추가한다.
CVE-2026-89971
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvme: zone 정보 쿼리가 실패한 경우 zoned limits 업데이트를 건너뜀 nvme_query_zone_info()는 음수 errno 또는 양수 NVMe 상태 코드를 반환하지만, nvme_update_ns_info_block()는 음수 경우만 검사한다: ret = nvme_query_zone_info(ns, lbaf, &zi); if (ret < 0) goto out; 장치가 Identify Namespace (I/O 명령어 세트 특정) 명령이나 nvme_set_max_append()에서 발행한 Identify Controller 명령에 실패하면, 양수 상태가 그대로 통과되어 0으로 초기화된 zone 정보로 설정이 계속된다. nvme_update_zone_info()는 큐를 chunk_sectors와 ns->head->zsze가 0으로 설정된 zoned로 표시한다. blk_validate_zoned_limits()는 chunk_sectors를 검사하지 않으므로 limits 커밋이 성공한다. blk_revalidate_disk_zones()는 0인 zone 크기를 거부하지만, 그 시점에는 limits가 활성화되어 롤백되지 않으므로 I/O가 0 zone 크기를 가진 zoned 큐에 계속 제출되고 disk_zone_no()는 ilog2(0)만큼 시프트한다: nvme0n1: Invalid non power of two zone size (0) UBSAN: shift-out-of-bounds in include/linux/blkdev.h:747:16 shift exponent -1 is negative disk_zone_no include/linux/blkdev.h:747 [inline] bio_straddles_zones include/linux/blkdev.h:1058 [inline] blk_zone_wplug_handle_write block/blk-zoned.c:1423 [inline] blk_zone_plug_bio.cold+0x25/0x1c8 block/blk-zoned.c:1605 blk_mq_submit_bio+0x18fb/0x2870 block/blk-mq.c:3196 submit_bh_wbc+0x575/0x740 fs/buffer.c:2824 __block_write_full_folio+0x728/0xdd0 fs/buffer.c:1933 이 명령 하나라도 실패하는 모든 장치, 펌웨어 또는 NVMe-oF 대상이 이 문제에 도달한다. 이 경우 zoned limits 업데이트를 건너뛰고 어떤 일이 발생했는지 기록한다: 재검증 중에는 큐가 마지막으로 검증된 zone 기하학을 유지하고, 첫 스캔에서는 네임스페이스가 zoned limits 없이 등록되어 관리 명령의 핸들로 여전히 사용 가능하다. nvme_query_zone_info()에서 양수 상태를 반환하는 경로는 아무것도 기록하지 않으므로 실패는 무음으로 처리된다. zi.zone_size는 정확한 지표이다: 양수 상태를 반환하는 모든 경로는 할당 전에 반환하며, 이후 남은 실패는 -ENODEV뿐이고 호출자가 이미 처리한다. FuzzNvme에 의해 발견됨.
CVE-2026-89970
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvmet-auth: SQ 해체 중 타임아웃 작업 동기화 nvmet_auth_sq_free()는 cancel_delayed_work()로 auth_expired_work를 취소한다. 작업이 이미 시작된 경우, 취소는 콜백을 기다리지 않는다. 따라서 전송 해체 시 struct nvmet_sq를 포함하는 큐를 해제하거나 재사용할 수 있는데, 이때 nvmet_auth_expired_work()가 여전히 해당 SQ에 접근할 수 있다. 인증 상태를 해제하기 전에 지연 작업을 동기적으로 소진하는 해체 전용 헬퍼를 추가하고, 이를 nvmet_sq_destroy()에서 사용한다. SQ 소유자가 살아있는 인밴드 인증 상태 정리를 위해 비동기 헬퍼는 유지한다.
CVE-2026-89969
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvmet-tcp: 너무 긴 PDU를 수신할 때 발생하는 범위 밖 쓰기 문제 수정 nvmet_tcp_try_recv_pdu() 함수는 PDU 헤더를 고정된 128바이트 크기의 queue->pdu 유니언에 읽어들인 후, 남은 페이로드 길이를 다음과 같이 계산한다: queue->left = hdr->hlen - queue->offset + hdgst; 그리고 sizeof(queue->pdu) 크기를 제한하지 않고 &queue->pdu + queue->offset 위치에 그만큼 더 많은 바이트를 읽어들인다. nvme_tcp_icreq_pdu 구조체 자체가 128바이트로, 유니언 크기와 정확히 같다. 헤더 다이제스트가 협상된 후(hdgst = 4), 두 번째 ICReq가 hlen == nvmet_tcp_pdu_size() 검사를 통과하지만 queue->left = 128 - 8 + 4 = 124가 되어, 바이트 8부터 132까지가 128바이트 버퍼에 기록된다. 이는 버퍼 끝을 4바이트 초과하여 queue->hdr_digest와 queue->data_digest를 덮어쓴다. 이 바이트들은 공격자가 제어할 수 있으며(ICReq는 다이제스트를 포함하지 않음), 중복된 ICReq는 오버플로우 이후에야 거부된다. 따라서 원격 인증되지 않은 호스트가 수신 버퍼 인접 커널 메모리를 손상시킬 수 있다. 두 번째 recv 전에 queue->pdu 끝을 넘어 읽게 되는 PDU는 모두 거부한다.
CVE-2026-89968
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvmet-tcp: 원치 않는 H2CData PDU 거부 nvmet_tcp_handle_h2c_data_pdu()는 TTAG가 유효한 범위 내 명령 인덱스인지와 명령의 데이터 버퍼가 매핑되었는지만 확인한 후 H2CData PDU를 수락한다. 명령에 대해 실제로 R2T를 보내 데이터를 요청했는지 여부는 확인하지 않는다. 원격 호스트가 이를 악용할 수 있다. 원격 호스트는 R2T 경로를 사용하는 쓰기 명령을 제출하고, 대상이 R2T를 전송하기 전에 해당 명령 태그에 대한 H2CData PDU를 보낸다. 데이터가 명령을 조기에 완료시키고, 명령이 동기적으로 실패할 때(예: nvmet_check_transfer_len()에서 길이 불일치 감지) 명령이 두 번째로 완료된다. 각 완료는 nvmet_tcp_queue_response()를 호출하므로 동일한 명령이 여전히 연결된 상태에서 queue->resp_list에 두 번 추가된다; 두 번째 llist_add()는 노드가 자기 자신을 가리키게 만든다(lentry->next == lentry). 그 후 nvmet_tcp_process_resp_list()는 자기 참조 노드를 순회하며 명령을 resp_send_list에 두 번 추가한다. CONFIG_DEBUG_LIST가 활성화된 경우 "list_add double add" 검사에서 커널 BUG가 발생하며, 그렇지 않으면 루프가 종료되지 않고 nvmet_tcp 작업 큐가 멈춘다(소프트 록업). 이 취약점은 원격에서 트리거 가능하며 allow_any_host 서브시스템에서 인증이 필요 없다. 명령에 대해 R2T가 전송되었는지 추적하고, R2T 전 도착한 H2CData PDU를 거부한다. 이 플래그는 명령 재사용 시(nvmet_tcp_get_cmd()가 cmd->flags를 0으로 초기화) 해제되며, 단일 요청 전송의 여러 H2CData PDU에 걸쳐 설정 상태를 유지한다.
CVE-2026-89967
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: mm/migrate_device: 복합 폴리오에 대한 범위 밖 쓰기 방지 migrate_device_range()와 migrate_device_pfns()는 복합 폴리오 뒤의 항목들을 지워서 PFN 배열이 페이지 단위 표현을 유지하도록 한다. 복합 폴리오가 호출자가 제공한 범위의 끝을 넘어 확장되면, 루프가 npages 크기의 배열에 남아있는 슬롯 수로 제한하지 않고 모든 뒤따르는 폴리오 항목을 지워 범위 밖 쓰기가 발생한다. 페이지 단위 표현이 남은 PFN 배열에 완전히 맞지 않는 복합 폴리오에 대해서는 진행하지 않는다. 이런 경우, 폴리오에 대해 획득한 참조와 잠금을 해제하고, 남은 항목을 지우며 수집을 중단한다. HMM migrate_anon_huge_zero 셀프테스트를 사용하는 KASAN x86 QEMU 커널에서 관찰되었다. 익명 거대 페이지를 디바이스 메모리로 마이그레이션한 후 /dev/hmm_dmirror0를 닫으면 다음이 실행된다: dmirror_fops_release() -> dmirror_device_evict_chunk() -> migrate_device_range()
CVE-2026-89966
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: mm/hugetlb_cma: fix null nodemask dereference in hugetlb_cma_alloc_frozen_folio alloc_buddy_hugetlb_folio_with_mpol() can pass a NULL nodemask to alloc_fresh_hugetlb_folio() as a fallback to allocate from all nodes. If order is gigantic, alloc_fresh_hugetlb_folio() propagates the NULL nodemask down to hugetlb_cma_alloc_frozen_folio() via alloc_gigantic_frozen_folio(). Additionally, hugetlb_cma_alloc_frozen_folio() previously attempted allocation on hugetlb_cma[nid] without verifying if nid is included in the caller's nodemask. Adding a node_isset(nid, *nodemask) check ensures the initial preferred node allocation honors the memory policy / nodemask. However, hugetlb_cma_alloc_frozen_folio() dereferences the nodemask in node_isset(nid, *nodemask) and for_each_node_mask(node, *nodemask), leading to a null pointer dereference kernel panic when nodemask is NULL. Fix this by checking if nodemask is NULL in hugetlb_cma_alloc_frozen_folio() and defaulting it to cpuset_current_mems_allowed. Enclose the allocation attempts within the cpuset seqcount retry loop so that if the cpuset changes concurrently during allocation, the attempts are retried using the updated nodemask. This ensures that the initial node check and fallback loop safely honor the task's cpuset without violating cpuset constraints or causing NULL pointer dereferences or unexpected allocation failures. From a userspace perspective, this bug allows an unprivileged user to crash the kernel (trigger a panic) by requesting a gigantic hugepage allocation with MPOL_PREFERRED_MANY on a system where CMA is only configured on a subset of NUMA nodes. This can be reproduced by booting a VM with two NUMA nodes, restricting CMA to Node 1 (e.g., hugetlb_cma=1:1G default_hugepagesz=1G hugepagesz=1G hugepages=0), and running a program that allocates a 1GB hugepage area without reserving, restricts allocation to Node 0 using mbind() with MPOL_PREFERRED_MANY, and triggers a page fault: void *ptr = mmap(NULL, 1UL << 30, PROT_READ | PROT_WRITE, MAP_PRIVATE | MAP_ANONYMOUS | MAP_HUGETLB | MAP_HUGE_1GB | MAP_NORESERVE, -1, 0); unsigned long nodemask = 1; /* Node 0 */ mbind(ptr, 1UL << 30, MPOL_PREFERRED_MANY, &nodemask, sizeof(nodemask) * 8, 0); memset(ptr, 0, 1UL << 30); /* Trigger fault */ This results in a NULL pointer dereference: BUG: kernel NULL pointer dereference, address: 0000000000000000 #PF: supervisor read access in kernel mode #PF: error_code(0x0000) - not-present page Oops: Oops: 0000 [#1] SMP NOPTI RIP: 0010:hugetlb_cma_alloc_frozen_folio+0x75/0x120 Call Trace: <TASK> only_alloc_fresh_hugetlb_folio.isra.0+0x2c/0x160 alloc_surplus_hugetlb_folio+0x6d/0x100 alloc_hugetlb_folio+0x3c5/0x660 hugetlb_no_page+0x3d9/0x650
CVE-2026-89965
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: nvdimm/btt: nfree가 레인 수보다 작은 아레나를 거부함 BTT 정보 블록의 nfree 필드(예약된 자유 블록 수)는 매체에서 검증 없이 읽힌다. btt_freelist_init()과 btt_rtt_init()은 per-lane freelist[]와 rtt[] 배열의 크기를 nfree로 설정하지만, I/O 경로는 nd_region_acquire_lane()에서 반환된 레인으로 인덱싱하며, 이는 nd_region->num_lanes (ND_MAX_LANES)로 제한되며 nfree로 제한되지 않는다. nfree가 레인 수보다 작은 조작되거나 외부 아레나는 freelist[lane]/rtt[lane]이 할당 범위를 넘어서는 범위 밖 쓰기를 발생시킨다. btt.rst는 nlanes = min(nfree, num_cpus) 불변식을 문서화하지만, 현재 코드는 이를 준수하지 않는다: num_lanes는 nfree와 관계없이 ND_MAX_LANES이다. per-lane 배열이 할당되기 전에 발견 시 nfree가 num_lanes보다 작은 아레나를 거부하여 해당 불변식을 강제한다.
CVE-2026-89964
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: parisc: eisa: Fix infinite loop when parsing invalid IRQ value When an invalid value is passed via the "eisa_irq_edge=" kernel command line parameter (e.g. "eisa_irq_edge=16,5"), eisa_irq_setup() prints an error message and continues without advancing the current position. As a result the same invalid value is parsed again and again, causing an infinite loop while the kernel boots. Advance to the next comma-separated entry, or stop parsing when there is no next entry, before continuing so that the remaining entries are processed normally.
CVE-2026-89963
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: powerpc/kexec_file: Fix null-ptr-def in extra size calculation A static Sashiko AI review identified a potential NULL pointer dereference in kexec_extra_fdt_size_ppc64(). On platforms without any reserved memory regions, get_reserved_memory_ranges() can return 0 while leaving 'rmem' unallocated as NULL. Passing it directly leads to a kernel panic when evaluating 'rmem->nr_ranges'. Add a NULL check for 'rmem' to prevent this crash.
CVE-2026-89962
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: powerpc/kexec_file: Prevent kexec range truncation Sashiko AI review pointed out the following issue. The __merge_memory_ranges() function incorrectly handles overlapping memory ranges when merging them. Although sort_memory_ranges() sorts all ranges by their start address in ascending order beforehand, the merge logic remains defective in two ways: 1. It compares the current range's start against the previous element (i-1) instead of the running target index (idx) 2. It unconditionally overwrites 'ranges[idx].end' with 'ranges[i].end'. This logic flaw leads to critical memory truncation when a larger memory range completely subsumes subsequent smaller ranges. For example, consider a sorted input array with three ranges: Range A (idx=0): [0x1000 - 0x9000] Range B (i=1): [0x2000 - 0x5000] (completely inside Range A) Range C (i=2): [0x6000 - 0x8000] (completely inside Range A) 1. When i=1 (Range B): ranges[1].start (0x2000) <= ranges[0].end + 1 (0x9001) is TRUE. The code executes: ranges[0].end = ranges[1].end, which erroneously shrinks Range A's end from 0x9000 down to 0x5000. 2. When i=2 (Range C): ranges[2].start (0x6000) <= ranges[1].end + 1 (0x5001) is FALSE. The code falls into the else block, creating a broken new range. As a result, valid memory fragments [0x5001 - 0x5fff] and [0x8001 - 0x9000] are completely lost from the kexec exclude lists, potentially allowing the crash kernel to overwrite active memory, causing data corruption or crashes. Fix this by ensuring the start of the current range is compared against the end of the active merged range (idx), and use max() to safely prevent the outer boundary from being truncated.
CVE-2026-89961
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: powerpc/mm: 복합 vmemmap 할당에서 잘못된 addr_pfn 추적 수정 vmemmap_populate_compound_pages() 함수는 addr_pfn을 사용하여 복합 페이지 내의 PFN 오프셋을 결정하고 현재 vmemmap 슬롯이 헤드 페이지 매핑으로 할당되어야 하는지 아니면 테일 페이지 매핑을 재사용해야 하는지를 판단한다. 그러나 addr_pfn은 addr와 병행하여 수동으로 증가된다. 루프 자체는 vmemmap 주소 공간에서 진행되므로 addr의 각 PAGE_SIZE 단계는 PAGE_SIZE / sizeof(struct page) 개수만큼의 struct page 슬롯을 포함한다. addr_pfn은 데이터 PFN 단위인 nr_pages와 비교되므로 동일한 수의 PFN만큼 증가해야 한다. 기존의 수동 증가는 이에 맞지 않아 현재 addr에 해당하는 PFN을 신뢰성 있게 추적하지 못한다. 그 결과 pfn_offset이 잘못된 PFN에서 계산될 수 있으며, 코드가 잘못된 복합 페이지 위치에 대해 헤드/테일 결정을 내릴 수 있다. 이 문제는 addr_pfn을 루프 상태로 유지하는 대신 현재 vmemmap 주소에서 직접 유도하여 수정하였다.
CVE-2026-89960
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: s390/vfio-ap: vfio_ap_mdev_set_kvm()에서 오류 발생 시 오래된 pqap_hook 포인터 수정 vfio_ap_mdev_set_kvm()에서 kvm->arch.crypto.pqap_hook는 업데이트 잠금을 획득하고 mdev 리스트에서 충돌하는 할당을 확인하기 전에 &matrix_mdev->pqap_hook로 설정된다. 만약 다른 mdev가 이미 동일한 KVM 인스턴스에 연결되어 있다면, 함수는 -EPERM을 반환하며 후크 포인터를 복원하지 않아 kvm->arch.crypto.pqap_hook가 합법적으로 KVM을 소유하는 mdev 대신 실패한 matrix_mdev를 가리키게 된다. 이 오류 경로에서는 matrix_mdev->kvm가 절대 설정되지 않으므로, vfio_ap_mdev_unset_kvm()은 나중에 matrix_mdev가 닫힐 때 후크를 정리하지 않는다. 이후 matrix_mdev가 해제되면, 게스트가 실행하는 모든 PQAP 명령어는 pqap_hook_rwsem을 통해 오래된 포인터를 역참조하여 해제 후 사용(use-after-free)이 발생한다. kvm->arch.crypto.pqap_hook는 vfio_ap_mdev_set_kvm() 함수에서만 설정되고 vfio_ap_mdev_unset_kvm() 함수에서만 해제되므로, 'kvm->arch.crypto.pqap_hook != NULL' 검사만으로 해당 후크가 다른 mdev에 속하는지 판단할 수 있다. 이는 mdevs_lock을 획득하지 않고 mdev 리스트를 반복할 필요를 없애준다. 이 변경은 v3에서 도입되어 리스트 반복 시 mdevs_lock 획득 필요성을 완화했으나, 잠재적인 경쟁 조건을 방지하지는 못했다. pqap_hook_rwsem(write)는 이제 get_update_locks_for_kvm() 내부에서 수행되며, 이 함수는 kvm->lock과 mdevs_lock 사이에서 pqap_hook_rwsem(write)를 획득하도록 업데이트되었다. 이 순서는 PQAP 인터셉트 경로와 일치하는데, 해당 경로는 vcpu->mutex 하에서 srcu가 유지되는 동안 읽기 모드로 pqap_hook_rwsem을 획득하며, 의존성은 kvm->lock -> vcpu->mutex -> srcu -> pqap_hook_rwsem(read)이다. pqap_hook_rwsem은 이제 release_update_locks_for_kvm() 내부에서 해제되며, 이 함수는 mdevs_lock과 kvm->lock 사이에서 pqap_hook_rwsem(write)를 해제하도록 업데이트되었다. 추가로, vfio_ap_mdev_unset_kvm() 내 kvm_put_kvm() 호출은 release_update_locks_for_kvm() 이후로 이동되었다. 이전에는 kvm->lock이 유지되는 동안 호출되었는데, 만약 마지막 참조였다면 kvm_destroy_vm()이 kvm->lock 하에서 실행되어 교착 상태가 발생할 수 있었다.
CVE-2026-89959
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: s390/vfio-ap: vfio_ap_mdev_cfg_remove에서 제어 도메인 제거 수정 vfio_ap_config_remove 함수는 bitmap_andnot 함수를 사용하여 matrix_mdev->matrix.adm 비트맵(제어 도메인이 mdev에 할당됨)에서 비트를 지운다. 이는 명시적으로 분리된 제어 도메인이 KVM 게스트에서 제거되는 것을 방지한다. 대신 bitmap_and 함수가 사용된다.
CVE-2026-89958
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: Fix dereference matrix_mdev->kvm without checking for NULL The ap_driver structure has two fields which are function pointers to callbacks: * .on_config_changed: called at the start of the AP bus scan function to notify the device driver that the host AP configuration has changed and the associated AP devices will be added or removed accordingly. This gives the implementor a chance to evaluate the configuration changes and respond to them before the associated devices are added or removed. * .on_scan_complete: Called at the end of the AP bus scan function to notify the device driver that the host AP configuration has changed and the AP devices have been added or removed accordingly. This gives the implementor the opportunity to respond to the changes after the associated devices are added or removed. These two callbacks are implemented in the vfio_ap device driver via the vfio_ap_on_cfg_changed and vfio_ap_on_scan_complete functions respectively. Within the call stack of these two callback functions the matrix_mdev->kvm->lock mutex is taken without checking whether matrix_mdev->kvm is NULL or not. If matrix_mdev->kvm has never been set, trying to take the lock will trigger a NULL pointer dereference. This patch adds checks for matrix_mdev->kvm == NULL before taking the matrix_mdev->kvm->lock mutex. Note that the matrix_mdev->kvm->lock mutex taken in the vfio_ap_mdev_hot_plug_config function is moved to the calling function along with the matrix_dev->mdevs_lock which is needed there to access the fields of the matrix_mdev. It makes little sense to make the change the check for matrix_mdev->kvm there before taking the kvm->lock mutex only to have to move it out via another patch, so it is done in this patch. It is important to make note of the following: 1. The matrix_dev->guests_lock is acquired at the start of both callback functions. This ensures that matrix_mdev will not be removed via the vfio_ap_mdev_remove function because it too takes matrix_dev_guests_lock before removing the object; so, matrix_mdev will be available for the duration of the callback functions. 2. The matrix_dev->mdevs_lock mutex must be taken in order to access fields within the matrix_mdev structure 3. matrix_mdev->kvm->lock mutex must be taken before the matrix_dev->mdevs_lock to prevent a lockdep splat. 4: The kvm->lock must be held while plugging the guest's AP configuration into its SIE state description via the vfio_ap_mdev_update_guest_apcb function. 5. The vfio_ap_mdev_update_guest_apcb checks matrix_mdev->kvm to verify it is not NULL before doing the hot plug of the guest's AP configuration.
CVE-2026-89957
2026년 9월 16일Linux 커널에서 다음 취약점이 해결되었다: s390/vfio-ap: 마지막 AP 어댑터 또는 도메인이 제거될 때 건너뛰는 핫 언플러그 문제 수정 vfio_ap_mdev_hot_unplug_cfg() 함수는 guest APCB를 업데이트할 필요가 있는지 판단하기 위해 bitmap_andnot()의 반환 값을 사용한다. 그러나 bitmap_andnot()은 결과 대상 비트맵이 비어 있을 때 false를 반환한다. 이는 mdev에 할당된 유일한 어댑터, 도메인 또는 제어 도메인이 호스트의 AP 구성에서 제거되면, 비트가 섀도우 APCB에서 올바르게 지워지지만 결과가 빈 비트맵이므로 bitmap_andnot()이 false를 반환한다는 것을 의미한다. 결과적으로 do_hotplug는 0으로 유지되고 vfio_ap_mdev_update_guest_apcb()가 호출되지 않아 KVM 게스트가 제거된 AP 장치에 대한 오래된 하드웨어 접근 권한을 유지하게 된다. 이 문제는 bitmap_andnot() 반환 값 검사를 bitmap_intersects()로 교체하여 섀도우 APCB가 실제로 제거 마스크와 겹치는지 판단하도록 하여 수정되었다. 교차가 있으면 비트를 지우는 부작용만을 위해 bitmap_andnot()을 호출하고, 무조건 do_hotplug를 설정하여 게스트 APCB 업데이트를 트리거한다.
CVE-2026-89956
2026년 9월 16일In the Linux kernel, the following vulnerability has been resolved: s390/vfio-ap: Fix missing lock required to access list of ap_matrix_mdev objects In order to traverse or add/remove ap_matrix_mdev objects in the matrix_dev->mdev_list, the matrix_dev->guests_lock mutex must be held. There are two functions that access the list without holding the mutex: vfio_ap_mdev_probe function ~~~~~~~~~~~~~~~~~~~~~~~~~~~ The vfio_ap_mdev_probe function uses the matrix_dev->mdevs_lock mutex to guard the add of a newly created ap_matrix_mdev object to the matrix_dev->mdev_list. This mutex does not protect list access; its purpose is to guard against concurrent access to fields contained in an ap_matrix_mdev object. This could lead to kernel memory corruption or use-after-free if another mdev is created or removed concurrently. The adding of an ap_matrix_mdev object to matrix_dev->mdev_list is now guarded by the matrix_dev->guests_lock which is the correct way to protect against concurrent mdev_list access. Also removed the following two lines of code because the matrix_mdev is allocated via vfio_alloc_device macro which uses kzalloc, so req_trigger and cfg_chg_trigger are already zero-initialised when the struct is allocated before the call to vfio_register_emulated_iommu_dev. This prevents a window whereby these triggers are set to NULL after the device is exposed to userspace. matrix_mdev->req_trigger = NULL; matrix_mdev->cfg_chg_trigger = NULL; vfio_ap_mdev_for_queue function ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ The status_show function that supports display of the status attribute of the devices in /sys/bus/ap/devices calls the vfio_ap_mdev_for_queue function which iterates the matrix_dev->mdev_list to find the object representing the queue device whose status is to be displayed. In order to traverse this list, the matrix_dev->guests_lock mutex must be held. To fix this, the guests_lock mutex is taken prior to taking the matrix_dev->mdevs_lock mutex in the status_show function. It is taken there rather than the vfio_ap_mdev_for_queue function - where it is needed - because it must be taken prior to the mdevs_lock mutex in order to adhere to the proper locking order and prevent a lockdep splat; also because the mdevs_lock is needed there to access fields within the matrix_mdev object in that function. See the vfio-ap-locking.rst in the linux kernel tree.