총 16,343건
CVE-2026-72353
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었다: ntfs: fallocate 중에 낡은 runlist 요소 역참조 방지 ntfs_attr_fallocate()는 초기화된 크기 안의 구멍과 지연 할당을 할당하는 동안 현재 runlist 요소를 ni->runlist.lock 아래에서 조회한다. 반환된 struct runlist_element는 ni->runlist.rl의 차용 포인터일 뿐이다. 읽기 잠금이 해제된 후에 작성자가 그 배열을 교체하고 해제하면, 나중에 rl->lcn, rl->length 및 rl->vcn를 읽을 때 해제된 메모리에 접근할 수 있다. 버그가 재현된 시나리오는 경로 두 개를 포함하며, 각 경로의 순서를 각 열에 표시한다: ntfs_attr_fallocate(): 1. 읽기용으로 ni->runlist.lock을 잡는다. 2. ntfs_attr_find_vcn_nolock()에서 rl를 얻는다. 3. ni->runlist.lock을 해제한다. 4. rl->lcn, rl->length 및 rl->vcn를 읽는다. mmap page_mkwrite: 1. ntfs_filemap_page_mkwrite()에 진입한다. 2. __ntfs_write_iomap_begin() 및 ntfs_attr_map_cluster()에 도달한다. 3. 할당 상태를 ntfs_runlists_merge()와 함께 병합한다. 4. ntfs_rl_realloc()에서 ni->runlist.rl를 다시 할당하고 오래된 배열을 해제한다. 이 버그를 이 커널 보고서로 재현했다: BUG: KASAN: slab-use-after-free in ntfs_attr_fallocate+0xbb8/0xd00 호출 추적: <TASK> dump_stack_lvl+0x66/0xa0 print_report+0xce/0x630 ? ntfs_attr_fallocate+0xbb8/0xd00 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20d/0x410 ? ntfs_attr_fallocate+0xbb8/0xd00 kasan_report+0xe0/0x110 ? ntfs_attr_fallocate+0xbb8/0xd00 ntfs_attr_fallocate+0xbb8/0xd00 ? lock_acquire+0x2b8/0x2f0 ? __pfx_ntfs_attr_fallocate+0x10/0x10 ? 0xffffffffc0000095 ? down_write+0x10d/0x1e0 ntfs_fallocate+0x5c9/0x1d00 ? __pfx_ntfs_fallocate+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_acquire+0x2b8/0x2f0 ? srso_alias_return_thunk+0x5/0xfbef5 ? selinux_file_permission+0x3a7/0x510 vfs_fallocate+0x29d/0xd30 __x64_sys_fallocate+0xc7/0x150 ? do_syscall_64+0x81/0x6a0 do_syscall_64+0x115/0x6a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f 할당된 작업 410: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 __kvmalloc_node_noprof+0x353/0x920 ntfs_rl_realloc+0x3f/0x110 ntfs_runlists_merge+0xaa3/0x3010 ntfs_attr_map_cluster+0x4e5/0xf80 ntfs_attr_fallocate+0x53f/0xd00 ntfs_fallocate+0x5c9/0x1d00 vfs_fallocate+0x29d/0xd30 __x64_sys_fallocate+0xc7/0x150 do_syscall_64+0x115/0x6a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f 해제된 작업 424: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x307/0x580 ntfs_rl_realloc+0x6f/0x110 ntfs_runlists_merge+0x7b1/0x3010 ntfs_attr_map_cluster+0x4e5/0xf80 __ntfs_write_iomap_begin+0x8cd/0x2280 iomap_iter+0x6de/0x11e0 iomap_page_mkwrite+0x391/0x650 ntfs_filemap_page_mkwrite+0x1ac/0x400 do_page_mkwrite+0x15c/0x280 __handle_mm_fault+0xd6d/0x1ca0 handle_mm_fault+0x19c/0x470 do_user_addr_fault+0x23b/0x9c0 exc_page_fault+0x5c/0xc0 asm_exc_page_fault+0x26/0x30 이 문제를 해결하려면 읽기 잠금이 유지되는 동안 필요한 runlist 필드를 복사하고, 잠금 해제 후에는 이러한 스칼라 스냅샷만 사용하는 방식으로 처리해야 한다. 스냄샷 이후 ntfs_attr_map_cluster()는 범위가 이미 매핑되었음을 찾아내고 balloc=false를 반환할 수 있다. 새로운 클러스터가 할당될 때만 ntfs_dio_zero_range()를 호출하고, 쓰기 iomap 경로와 일치하며 새로 할당된 구멍을 제로로 만드는 동작을 유지한다.
CVE-2026-72352
번역 확인 필요2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었다: HID: bpf: Fix hid_bpf_get_data() 범위 검사 hid_bpf_get_data()는 호출자 제공 오프셋(offset)과 크기(size)가 ctx->allocated_size 내부에 맞으면 HID-BPF 컨텍스트 데이터에 대한 포인터를 반환한다. 현재 검사는 rdwr_buf_size와 오프셋을 합산한 뒤 결과를 ctx->allocated_size와 비교한다. 두 값은 부호 없는 값이므로 매우 큰 크기가 합계를 ctx->allocated_size 아래로 역전시키고 요청된 범위가 백업 버퍼에 포함되지 않아도 헬퍼가 포인터를 반환하게 만들 수 있다. 계산 중 테스트에서 범위 끝이 래핑되는 것을 거부하기 위해 check_add_overflow()를 사용하여 요청된 범위 끝을 ctx->allocated_size와 비교하기 전에 래핑된 경우를 거부한다.
CVE-2026-72351
2026년 8월 15일Linux 커널에서 다음 취약점이 해결되었다: gue: REMCSUM 개인 옵션 길이 검증 GUE 개인 플래그는 원격 체크섬 오프로딩 메타데이터가 존재함을 나타낼 수 있다. 개인 플래그 필드 자체는 guehdr_flags_len()에 의해 계산되지만, guehdr_priv_flags_len()는 현재 GUE_PFLAG_REMCSUM이 설정되어 있어도 0을 반환한다. 이로 인해 개인 플래그 필드만 있는 패킷이 validate_gue_flags()를 통과할 수 있으며, 이후 gue_remcsum()과 gue_gro_remcsum()이 다음 바이트에서 누락된 REMCSUM 시작/오프셋 필드를 읽는다. GUE_PFLAG_REMCSUM이 존재할 때 GUE_PLEN_REMCSUM을 계산하여 옵션 검증 중에 잘못된 패킷이 거부되도록 한다.
CVE-2026-72350
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: netfilter: xt_u32: 잘못된 시프트 수 거부 u32_match_it()은 32비트 값에 대해 규칙에서 제공한 시프트 피연산자를 실행합니다. 잘못된 u32 규칙은 32 이상의 시프트 수를 제공할 수 있으며, 패킷 평가 중 정의되지 않은 범위를 벗어난 시프트를 유발합니다. XT_U32_LEFTSH 및 XT_U32_RIGHTSH 피연산자를 u32_mt_checkentry()에서 검증하고 패킷 경로에 도달하기 전에 잘못된 규칙을 거부합니다.
CVE-2026-72349
2026년 8월 15일In the Linux kernel, the following vulnerability has been resolved: netfilter: xt_rateest: fix u64 truncation in xt_rateest_mt() On links faster than ~34 Gbps, where byte rate may exceed 2^32-1 (~ 4.3 GBps), the comparison result becomes incorrect because the truncated value no longer reflects the actual estimator rate. Fix by changing the local variables to u64.
CVE-2026-72348
2026년 8월 15일Linux 커널에서 다음 취약점이 해결되었다: netfilter: ip6tables: 잘못된 IPv6 확장 헤더를 핫드롭으로 표시 ah, hbh 및 rt 매치는 고정된 확장 헤더가 존재하는지 확인한 후, 헤더 길이 필드를 사용하여 광고된 확장 헤더 길이를 유도하여 매칭한다. ah 매치의 경우 누락된 광고 길이 검사를 추가했다. hbh 및 rt의 경우 기존 광고 길이 검사를 업데이트했다. 세 경우 모두 광고된 확장 헤더 길이가 사용 가능한 skb 데이터보다 클 때 false를 반환하기 전에 hotdrop을 true로 설정한다. false를 반환하면 패킷이 규칙 불일치로 처리된다. hotdrop을 true로 설정하고 잘못된 패킷을 삭제하여 이러한 IPv6 확장 헤더를 가진 패킷을 삭제하도록 의도된 규칙을 우회하지 못하게 한다.
CVE-2026-72347
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: netfilter: xt_connmark: 잘못된 시프트 매개변수를 거부 CONNMARK 타깃의 개정판 2는 사용자 제어 시프트 매개변수를 받아들이고 이를 32비트 마크 값에 적용합니다(connmark_tg_shift()). 32 이상의 shift_bits 값은 규칙이 평가될 때 정의되지 않은 시프트 버그를 트리거합니다. 잘못된 shift_dir 값도 허용되며 왼쪽 시프트 경로로 조용히 넘어갑니다. connmark_tg_check()에서 잘못된 개정판 2 시프트 매개변수를 거부하므로 잘못된 규칙은 설치 시점에 실패하고 패킷 경로에 도달하기 전에 실패합니다.
CVE-2026-72346
2026년 8월 15일In the Linux kernel, the following vulnerability has been resolved: platform/x86: bitland-mifs-wmi: Fix NULL pointer dereference during suspend/resume The driver registers two distinct WMI devices: a control device (BITLAND_WMI_CONTROL) and an event device (BITLAND_WMI_EVENT). During the probe phase, the event device handling path returns early before initializing the platform profile device (data->pp_dev), leaving it NULL. However, the PM sleep operations are registered globally for the WMI driver and are triggered for both devices. When entering suspend, the event device invokes bitland_mifs_wmi_suspend(), which passes the uninitialized data->pp_dev (NULL) into laptop_profile_get(). This leads to a NULL pointer dereference inside dev_get_drvdata(), causing a kernel Oops and halting the suspend sequence. Fix this by adding a validity check for data->pp_dev in both the suspend and resume callbacks, safely skipping profile operations for the event device.
CVE-2026-72345
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: net/mlx5: LAG, single-FDB 오류 롤백에서 인덱스의 경계 초과 수정 인덱스 i에서 실패한 경우 mlx5_lag_create_single_fdb()의 역방향 정리 루프가 i에서 시작하므로 실패한 인덱스 자체가 되돌려집니다. 이는 초기화되지 않은 상태에서 작동하거나 add_one 경로가 이미 자체 롤백한 규칙을 이중으로 제거할 수 있습니다. 롤백을 i - 1에서 시작하여 성공적으로 설치된 엔트리만 되돌리도록 합니다.
CVE-2026-72344
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었다: net/mlx5e: TC, LAG 시퀀스가 사용 가능하지 않을 때 피어 흐름 정리를 건너뛰기 mlx5_lag_get_dev_seq()가 피어가 LAG에 없거나 마스터로 표시된 장치가 없을 때 오류를 반환한다. 그 결과 잘못된 메모리 접근 및 커널 충돌이 발생한다[1]. 따라서 조회 실패 시 피어를 건너뛴다. 참고: 피어 흐름이 있을 경우 LAG가 마스터 표식을 지우기 전에 정리된다. [1] RIP: 0010:mlx5e_tc_del_fdb_peers_flow+0x3d/0x350 [mlx5_core] Call Trace: <TASK> mlx5e_tc_clean_fdb_peer_flows+0xc1/0x130 [mlx5_core] mlx5_esw_offloads_unpair+0x3a/0x400 [mlx5_core] mlx5_esw_offloads_devcom_event+0xee/0x360 [mlx5_core] mlx5_devcom_send_event+0x7a/0x140 [ mlx5_core] mlx5_esw_offloads_devcom_cleanup+0x2f/0x90 [mlx5_core] mlx5e_tc_esw_cleanup+0x28/0xf0 [mlx5_core] mlx5e_rep_tc_cleanup+0x19/0x30 [mlx5_core] mlx5e_cleanup_uplink_rep_tx+0x36/0x40 [mlx5_core] mlx5e_cleanup_rep_tx+0x55/0x60 [mlx5_core] mlx5e_detach_netdev+0x96/0xf0 [mlx5_core] mlx5e_netdev_change_profile+0x5b/0x120 [mlx5_core] mlx5e_netdev_attach_nic_profile+0x1b/0x30 [mlx5_core] mlx5e_vport_rep_unload+0xdd/0x110 [mlx5_core] __esw_offloads_unload_rep+0x81/0xb0 [mlx5_core] mlx5_eswitch_unregister_vport_reps+0x1d7/0x220 [mlx5_core] mlx5e_rep_remove+0x22/0x30 [ mlx5_core] device_release_driver_internal+0x194/0x1f0 bus_remove_device+0xe8/0x1b0 device_del+0x159/0x3c0 mlx5_rescan_drivers_locked+0xbc/0x2d0 [mlx5_core] mlx5_unregister_device+0x54/0x80 [mlx5_core] mlx5_uninit_one+0x73/0x130 [mlx5_core] remove_one+0x78/0xe0 [mlx5_core] pci_device_remove+0x39/0xa0
CVE-2026-72343
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었다: net/mlx5e: HV VHCA 통계의 제로 사이즈 버퍼 할당 수정 mlx5e_hv_vhca_stats_create()가 mlx5e_nic_enable()에서 호출되며 mlx5e_open() 이전에 실행된다. 이때 priv->stats_nch는 여전히 0이므로, 이는 오직 mlx5e_channel_stats_alloc()에서만 증가하고, 이는 오직 mlx5e_open_channel()에서만 도달한다. 따라서 mlx5e_hv_vhca_stats_buf_size()의 반환값은 0이 되고 kvzalloc(0, GFP_KERNEL)은 NULL이 아닌 ZERO_SIZE_PTR ((void *)16)를 반환한다. "if (!buf)" 가드가 이를 포착하지 못하고 mlx5e_hv_vhca_stats_create()가 priv->stats_agent.buf를 ZERO_SIZE_PTR로 설정된 상태로 "성공적으로" 완료된다. 채널이 열리면(priv->stats_nch > 0) 하이퍼바이저가 통계 보고를 활성화하면 mlx5e_hv_vhca_stats_work()가 새로 비어 있지 않은 stats_nch를 기준으로 buf_len을 재계산하고, ZERO_SIZE_PTR에서 memset(buf, 0, buf_len)을 호출하게 되어 주소 0x10에서 충돌한다. 버퍼를 priv->max_nch로 기반으로 할당하도록 수정한다. max_nch는 mlx5e_priv_init()에서 설정되며 stats_nch의 상한이다: - 별도의 헬퍼 mlx5e_hv_vhca_stats_buf_max_size()를 추가하고, 이를 통해 sizeof(per_ring_stats) * max(max_nch, stats_nch) 값을 반환하며 mlx5e_hv_vhca_stats_create()의 kvzalloc()에 사용한다. - mlx5e_hv_vhca_stats_buf_size()는 stats_nch에 따라 반환하는 것을 유지하여 워커의 활성 페이로드 크기를 유지하고, wire 포맷(block->rings = stats_nch)와 mlx5e_hv_vhca_fill_stats()가 채우는 데이터 양은 바뀌지 않도록 한다. max(max_nch, stats_nch) 가드로 인해 드물게 mlx5e_attach_netdev()가.detach/resume 사이클 동안 max_nch를 하향 재계산하는 경우에도 priv->stats_nch가 지속되면, 감소된 max_nch를 근거로 버퍼 길이를 계산해 더 작은 버퍼를 초과하는 상황을 막을 수 있다. 제로가 아닌 버퍼를 할당하면 mlx5e_hv_vhca_stats_create()의 실패 경로도 처음으로 도달 가능해져 더 이상(다시) 에이전트를 생성하지 않고 조기에 반환한다. 이후 enable/disable 사이클에서 남은 오래된 에이전트/버퍼를 이중으로 해제하는 일을 막기 위해 mlx5e_hv_vhca_stats_destroy()에서 free() 후 priv->stats_agent.{agent,buf}를 초기화한다. 이는 max_nch 크기의 배열을 미리 할당하고(stats_nch까지의 엔트리를 필요 시점에 채워 넣는) 기존 mlx5e 패턴을 따라간다.
CVE-2026-72342
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: net/mlx5e: HV VHCA 통계 에이전트 등록 경주(race) 수정 mlx5e_hv_vhca_stats_create()는 stats 에이전트를 mlx5_hv_vhca_agent_create()를 통해 등록합니다. 이 헬퍼는 hv_vhca->agents[type] 아래의 agents_lock에서 에이전트를 게시하고 mlx5e로 반환되기 전에 HV VHCA 작업 대기열에 비동기 제어 무효화(비동성 삭제)를 즉시 스케줄합니다. 비동기 무효화는 컨트롤 에이전트의 invalidate 콜백을 호출하고, 이는 하이퍼바이저 제어 블록을 읽어 명령을 mlx5e_hv_vhca_stats_control()로 전달합니다. 그 콜백은 다음 중 하나를 수행할 수 있습니다: - cancel_delayed_work_sync(&priv->stats_agent.work) 호출 - queue_delayed_work(priv->wq, &sagent->work, sagent->delay) 호출 그러나 delayed_work와 priv->stats_agent.agent는 mlx5_hv_vhca_agent_create()가 mlx5e로 반환된 후에야 초기화됩니다: agent = mlx5_hv_vhca_agent_create(...); /* 게시 + 무효화 */ ... priv->stats_agent.agent = agent; /* 너무 늦음 */ INIT_DELAYED_WORK(&priv->stats_agent.work, ...); /* 너무 늦음 */ 비동기 제어 경로가 위 두 대입 전에 실행되면 다음과 같은 문제가 발생할 수 있습니다: - NULL 함수 포인터를 참조하는 초기화되지 않은 delayed_work에서 작동합니다. queue_delayed_work()는 항상 add_timer()를 호출하므로 타이머가 만료되면 타이머 소프트인터럽트가 NULL 포인터를 가리키게 됩니다. - 타이머가 이미 타이머 바퀴에 큐에 들어간 상태에서 나중에 INIT_DELAYED_WORK()를 통해 타이머를 다시 초기화하면, 이전 버킷 노드가 이 엔트리를 가리키고 있어 hlist가 손상됩니다. - 워커가 결국 실행되면 mlx5e_hv_vhca_stats_work()가 sagent->agent(NULL)을 읽고 mlx5_hv_vhca_agent_write() 내부에서 역참조합니다. 해결 방법: - mlx5_hv_vhca_agent_create()를 호출하기 전에 priv->stats_agent.work를 초기화하여 제어 콜백이 이를 관찰할 때 항상 유효한 상태가 되도록 합니다. - mlx5_hv_vhca_agent_create()에 mlx5_hv_vhca_agent에 대한 ctx_update 아웃 파라미터를 추가합니다. 헬퍼는 hv_vhca->agents[]에 게시하고 에이전트 업데이트 흐름을 트리거하기 전에 포인터를 *ctx_update에 기록하므로, 그 흐름에서 이후에 호출되는 어떤 콜백도 이미 유효한 priv->stats_agent.agent를 보게 됩니다. 이는 제어 콜백이 에이전트 초기화에 관여하는 것을 피합니다. 동시에 cross-CPU 접근 차원을 위해 worker와의 READ_ONCE()/WRITE_ONCE()를 사용해 priv->stats_agent.agent에 접근하고, 에이전트 생성 실패 경로에서 priv->stats_agent.buf를 지웁니다.
CVE-2026-72341
2026년 8월 15일In the Linux kernel, the following vulnerability has been resolved: net/mlx5e: Fix publication race for priv->channel_stats[] mlx5e_channel_stats_alloc() publishes a new entry to priv->channel_stats[] and then increments priv->stats_nch as a publication token, but neither store carries any memory barrier: priv->channel_stats[ix] = kvzalloc_node(...); if (!priv->channel_stats[ix]) return -ENOMEM; priv->stats_nch++; Concurrent readers compute the loop bound from priv->stats_nch and then dereference priv->channel_stats[i] using plain accesses, e.g. for (i = 0; i < priv->stats_nch; i++) { struct mlx5e_channel_stats *cs = priv->channel_stats[i]; ... cs->rq.packets ... } On weakly-ordered architectures (ARM, PowerPC, RISC-V) the writes to channel_stats[ix] and stats_nch may become visible to other CPUs out of program order. A reader can observe stats_nch == N while still seeing channel_stats[N-1] == NULL, leading to a NULL pointer dereference in the channel_stats loop. This has been observed in production on BlueField-3 DPUs (arm64), where ovs-vswitchd queries netdev statistics over netlink during NIC bringup, racing mlx5e_open_channel() -> mlx5e_channel_stats_alloc() on another CPU: Unable to handle kernel NULL pointer dereference at virtual address 0x840 Hardware name: BlueField-3 DPU pc : mlx5e_fold_sw_stats64+0x30/0x180 [mlx5_core] Call trace: mlx5e_fold_sw_stats64+0x30/0x180 [mlx5_core] dev_get_stats+0x50/0xc0 ovs_vport_get_stats+0x38/0xac [openvswitch] ovs_vport_cmd_fill_info+0x194/0x290 [openvswitch] ovs_vport_cmd_get+0xbc/0x10c [openvswitch] genl_family_rcv_msg_doit+0xd0/0x160 genl_rcv_msg+0xec/0x1f0 netlink_rcv_skb+0x64/0x130 genl_rcv+0x40/0x60 netlink_unicast+0x2fc/0x370 netlink_sendmsg+0x1dc/0x454 ... __arm64_sys_sendmsg+0x2c/0x40 Add mlx5e_stats_nch_write() and mlx5e_stats_nch_read() helpers in en.h that wrap the smp_store_release()/smp_load_acquire() pair on stats_nch. The release/acquire pair establishes the contract: stats_nch == N => channel_stats[0..N-1] are visible and non-NULL. Publish the stats_nch increment via mlx5e_stats_nch_write() in the writer (mlx5e_channel_stats_alloc()), and read stats_nch via mlx5e_stats_nch_read() in all readers: mlx5e RX/TX queue stats, mlx5e_get_base_stats(), ethtool channels stats, IPoIB stats, the sw_stats fold and the HV VHCA stats agent.
CVE-2026-72340
2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: net: 마이크로칩: vcap: 공유 Super VCAP 블록에 대한 레이스 수정 칩의 VCAP 인스턴스는 서로 독립적이지 않지만 각각 잠금이 되어 있습니다. sparx5와 lan969x에서 IS0와 IS2 인스턴스는 동일한 Super VCAP 하드웨어 블록으로 백업되며 캐시와 명령 레지스터를 공유합니다: 모든 접근은 공유된 VCAP_SUPER_CTRL 레지스터를 구동하고 공유 캐시 레지스터를 통해 데이터를 이동시킵니다. 한 인스턴스에 접근하는 것은 다른 인스턴스에 접근하는 것과 레이스를 발생시킵니다. 각 인스턴스가 서로 다른 잠금을 사용하기 때문에 per-instance admin->lock은 이를 방지하지 못합니다. 잠금 문제는 vcap api의 핵심 사용이 rtnl 하에서 이뤄진다는 사실로 대부분 숨겨져 있습니다. 그러나 debugfs의 전체 규칙 덤프는 하드웨어에서 직접 디코드되며(하드웨어에서 READ 명령 다음에 캐시 읽기) rtnl 외부에서 실행되므로 concurrent tc-flower 규칙 쓰기가 다른 Super VCAP 인스턴스에 레이스를 발생시킵니다. 덤프를 손상시키는 것 외에도 읽기가 writers의 캐시 채움과 쓰기 명령 사이에 공유 캐시를 다시 채워 잘못된 데이터를 커밋하고 하드웨어 엔트리를 손상시킵니다. vcap_lock() 및 vcap_unlock() 헬퍼를 도입하고 VCAP API 및 debugfs 코드의 모든 규칙 잠금 위치를 이들 헬퍼를 통해 연결합니다. per-instance admin->lock을 모든 인스턴스에 대한 접근을 직렬화하는 단일 뮤텍스로 바꿉니다. 헬퍼는 새로운 admin->vctrl 백포인터를 통해 이를 달성하며, 클라이언트는 per-instance 잠금 대신 제어 잠금을 초기화하고 해제합니다. 하나의 뮤텍스에 의해 두 개 이상의 인스턴스 잠금이 유지되지 않도록 구성하여, 이를 단일 뮤텍스로 통합해도 교착상태가 발생하지 않습니다.
CVE-2026-72339
2026년 8월 15일Linux 커널에서 다음 취약점이 해결되었다: qede: build_skb 실패 시 BD 링 소비에서 오프바이원(off-by-one) 수정 qede_rx_build_skb()와 qede_tpa_rx_build_skb()는 qede_build_skb()의 NULL 반환을 확인하지 않는다. 메모리 압박 상태에서 qede_build_skb()가 NULL을 반환할 때, 이 함수들은 NULL을 반환하기 전에 여전히 링에서 BD를 소비한다. 호출자는 추가 BD를 재활용하여 BD가 하나 더 소비되는(오프바이원) 결과를 초래한다. 이는 BD 링의 동기화를 깨뜨려 DMA 페이지 참조 카운트를 손상시키고 SLUB 프리리스트 손상을 유발할 수 있다. 커밋 4e910dbe3650("qede: confirm skb is allocated before using")는 NULL 포인터 역참조를 방지하기 위해 qede_build_skb() 내부에 NULL 검사를 추가했지만, 호출자에서 누락된 NULL 검사는 해결하지 않아 이 오프바이원이 발생할 수 있다. qede_rx_build_skb()와 qede_tpa_rx_build_skb()에서 qede_build_skb() 반환값에 대한 NULL 검사를 추가하여 BD 링 조작 전에 즉시 NULL을 반환하도록 수정하였다.
CVE-2026-72338
번역 확인 필요2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었다: net/sched: act_pedit: tc 오프로드에서 TOCTOU 힙 범위 밖 쓰기 수정 플라워(lockless) 방식에서 흐름 규칙 버퍼의 크기 산정과 이를 채우는 과정 사이에 TOCTOU 경쟁 조건이 있다. [email protected]은 다음과 같이 보고한다: cls_flower 분류기는 TCF_PROTO_OPS_DOIT_UNLOCKED(*RTNL 없이 변경*)으로 작동하는 반면 RTM_NEWACTION은 RTNL을 보유하므로, 독립된 락 도메인에서 실제로 경쟁 조건이 발생할 수 있다. KA SAN은 다음과 같이 확인했다: BUG: KASAN: slab-out-of-bounds in tcf_pedit_offload_act_setup+0x81b/0x930 4바이트 크기의 쓰기가 poc-toctou/312 작업에 의해 주소 ffff888001f27520에 발생 buggy 주소는 할당된 288바이트 영역 [ffff888001f27400, ffff888001f27520) 우측 0바이트 지점에 위치한다 (캐시 kmalloc-512) 참고: 결과는 인접한 슬래브 객체에 대해 공격자가 제어하는 내용으로 이루어진 힙 범위 밖 쓰기이며, CAP_NET_ADMIN이 필요하다. 수정은 모든 위치에서 act->tcfa_lock 아래에서 tcfp_nkeys를 읽도록 새로 도입된 tcf_pedit_nkeys_locked()를 사용하는 것으로 바뀌었으며, 기존의 tcf_pedit_nkeys()를 대체한다. 또한 남은 TOCTOU 구간을 더 신중한 산정으로 줄여 채움 읽기와 사이즈 읽기 간의 간격을 줄였다. 키 수를 묵시적으로 잘라버리는 대신, 남은 용량을 초과하는 경우엔 필요한 공간이 남은 용량을 초과하면 -ENOSPC를 반환하도록 남은 용량 검사를 강제한다. pin 장치를 하드웨어에 오프로드하는 잘못된 작동 시나리오와 이전 작업에 의해 남은 범위가 0이 되거나 소비될 경우 추가적인 범위 밖 쓰기가 발생하는 문제를 방지한다.
CVE-2026-72337
2026년 8월 15일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: 6lowpan: avoid untracked enable work lowpan_enable_set() allocates a temporary work item and schedules do_enable_set() on system_wq, then returns to debugfs. The debugfs active operation has ended at that point, but the worker still executes module text and manipulates enable_6lowpan and listen_chan. bt_6lowpan_exit() removes the debugfs files and immediately closes and puts listen_chan. It has no pointer to the queued work item, so it cannot cancel or flush it before tearing down the state that the worker uses. The buggy scenario involves two paths, with each column showing the order within that path: debugfs enable write module exit 1. lowpan_enable_set() allocates 1. bt_6lowpan_exit() removes set_enable work the debugfs file 2. schedule_work() queues 2. bt_6lowpan_exit() closes do_enable_set() and puts listen_chan 3. the write operation returns 3. module teardown can continue 4. do_enable_set() later runs against stale state Run the enable state transition synchronously in lowpan_enable_set() instead. The simple debugfs setter can sleep, and this file already handles the 6LoWPAN control write synchronously under the same set_lock. Once the setter returns, debugfs removal covers the whole operation and exit can no longer race with an untracked work item. Validation reproduced this kernel report: BUG: KASAN: slab-use-after-free in do_enable_set+0x113/0x2e0 Workqueue: events do_enable_set [bluetooth_6lowpan] The buggy address belongs to the object at ffff888109cb8000
CVE-2026-72336
2026년 8월 15일In the Linux kernel, the following vulnerability has been resolved: Bluetooth: 6lowpan: hold L2CAP conn across debugfs control get_l2cap_conn() looks up an LE hci_conn under hdev protection, but then drops that protection before reading hcon->l2cap_data and before lowpan_control_write() later dereferences conn->hcon. A disconnect or device close can tear down the same L2CAP connection in that window. The buggy scenario involves two paths, with each column showing the order within that path: 6LoWPAN control write: HCI disconnect/device close: 1. get_l2cap_conn() finds hcon 1. hci_disconn_cfm() dispatches and hcon->l2cap_data. the L2CAP disconnect callback. 2. get_l2cap_conn() drops hdev 2. l2cap_conn_del() clears protection and returns conn. hcon->l2cap_data and drops the L2CAP connection reference. 3. lowpan_control_write() reads 3. hci_conn_del() removes and drops conn->hcon. the HCI connection. Take a reference to the L2CAP connection with l2cap_conn_hold_unless_zero() while hdev is still locked, and drop that reference after the debugfs command's last use of conn. This mirrors the existing L2CAP ACL receive-side handoff and keeps the connection dereferenceable after leaving hdev protection. Export the existing helper so the bluetooth_6lowpan module can use the same lifetime primitive. Validation reproduced this kernel report: BUG: KASAN: slab-use-after-free in lowpan_control_write+0x374/0x520 The buggy address belongs to the object at ffff888111b9d000 which belongs to the cache kmalloc-1k of size 1024 The buggy address is located 0 bytes inside of freed 1024-byte region [ffff888111b9d000, ffff888111b9d400) Read of size 8 Call trace: dump_stack_lvl+0x66/0xa0 print_report+0xce/0x5f0 lowpan_control_write+0x374/0x520 (net/bluetooth/6lowpan.c:1131) srso_alias_return_thunk+0x5/0xfbef5 __virt_addr_valid+0x19f/0x330 kasan_report+0xe0/0x110 __debugfs_file_get+0xf7/0x400 full_proxy_write+0x9e/0xd0 vfs_write+0x1b0/0x810 ksys_write+0xd2/0x170 dnotify_flush+0x32/0x220 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f Allocated by task stack: kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 __kasan_kmalloc+0xaa/0xb0 l2cap_conn_add+0x45/0x520 l2cap_chan_connect+0xac6/0xd90 l2cap_sock_connect+0x216/0x350 __sys_connect+0x101/0x130 __x64_sys_connect+0x40/0x50 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task stack: kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x313/0x590 hci_conn_hash_flush+0xc0/0x140 hci_dev_close_sync+0x41a/0xb00 hci_dev_close+0x12f/0x160 hci_sock_ioctl+0x157/0x570 sock_do_ioctl+0xf7/0x210 sock_ioctl+0x32f/0x490 __x64_sys_ioctl+0xc7/0x110 do_syscall_64+0x115/0x6a0 (arch/x86/entry/syscall_64.c:87) entry_SYSCALL_64_after_hwframe+0x77/0x7f kasan_record_aux_stack+0xa7/0xc0 insert_work+0x32/0x100 __queue_work+0x262/0xa60 queue_work_on+0xad/0xb0 l2cap_connect_cfm+0x4ef/0x670 hci_le_remote_feat_complete_evt+0x247/0x430 hci_event_packet+0x360/0x6f0 hci_rx_work+0x2ae/0x7a0 process_one_work+0x4fd/0xbc0 worker_thread+0x2d8/0x570 kthread+0x1ad/0x1f0 ret_from_fork+0x3c9/0x540 ret_from_fork_asm+0x1a/0x30
CVE-2026-72335
번역 확인 필요2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: Bluetooth: MGMT: adv 모니터 추가 실패 정리 hci_add_adv_monitor()는 MSFT 설정 단계 이전에 hdev->adv_monitors_idr에 새 adv_monitor를 게시합니다. MSFT 오프로드 추가 경로는 컨트롤러 추가 명령이 완료되기 전 로컬에서 실패하거나 MSFT 추가 콜백에서 실패할 수 있습니다. 현재 큐에 저장된 관리 추가 흐름에서 hci_cmd_sync_work()는 msft_add_monitor_pattern()가 반환된 후 원래 보류 중인 명령으로 mgmt_add_adv_patterns_monitor_complete()를 여전히 호출합니다. 버그가 있는 시나리오는 두 경로로 구성되며 각 열은 해당 경로 내 순서를 보여줍니다: MSFT 추가 처리 MGMT 완료 1. 모니터 삽입 및 핸들 처리 1. 동기화 오류 수신 2. MSFT 추가 명령 전송 2. 모니터 추가 완료 호출 3. 콜백에서 잘못된 응답 확인 3. cmd->user_data 로드 4. 콜백에서 모니터 해제 4. monitor->handle 읽기 로컬 MSFT 설정 실패는 같은 소유권 버그의 다른 절반이며, 이들은 IDR 삽입 후 오류를 반환하지만 이후 코드에서 실패한 모니터를 IDR에서 제거하지 않습니다. 보류 중인 관리 명령이 완료될 때까지 소유권을 유지합니다. 일반적인 관리 추가의 경우 MSFT 추가 콜백은 이제 컨트롤러 상태를 성공으로 기록하고 호출자에게 오류를 반환합니다. 관리 완료는 응답 핸들을 복사한 후 성공하지 않은 경우 모니터를 해제하며, 재개/재등록 콜백 오류 정리는 MSFT 콜백에 남아 있습니다. 성공 경로는 기존 회계 기록을 유지합니다. 이 커널 보고서를 재현했습니다: BUG: KASAN: slab-use-after-free in mgmt_add_adv_patterns_monitor_complete+0xfb/0x260 [bluetooth] 호출 추적: <TASK> dump_stack_lvl+0x66/0xa0 print_report+0xce/0x5f0 ? mgmt_add_adv_patterns_monitor_complete+0xfb/0x260 [bluetooth] ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x19f/0x330 ? mgmt_add_adv_patterns_monitor_complete+0xfb/0x260 [bluetooth] kasan_report+0xe0/0x110 ? mgmt_add_adv_patterns_monitor_complete+0xfb/0x260 [bluetooth] mgmt_add_adv_patterns_monitor_complete+0xfb/0x260 [bluetooth] ? srso_alias_return_thunk+0x5/0xfbef5 ? 0xffffffffc00d00da ? __pfx_mgmt_add_adv_patterns_monitor_complete+0x10/0x10 [bluetooth] ? __pfx_mgmt_add_adv_patterns_monitor_complete+0x10/0x10 [bluetooth] ? hci_cmd_sync_work+0x1ab/0x210 [bluetooth] hci_cmd_sync_work+0x1c0/0x210 [bluetooth] ? __pfx_mgmt_add_adv_patterns_monitor_complete+0x10/0x10 [bluetooth] process_one_work+0x4fd/0xbc0 ? __pfx_process_one_work+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? __list_add_valid_or_report+0x37/0xf0 ? __pfx_hci_cmd_sync_work+0x10/0x10 [bluetooth] ? srso_alias_return_thunk+0x5/0xfbef5 ? __list_del_entry+0x6e/0x1d0 worker_thread+0x2d8/0x570 ? __pfx_worker_thread+0x10/0x10 kthread+0x1ad/0x1f0 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x3c9/0x540 ? __pfx_ret_from_fork+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? __switch_to+0x2e9/0x730 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> 할당된 시점: 471번째 태스크가 3번 CPU에서 285.205389초에 할당 kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 __kasan_kmalloc+0xaa/0xb0 add_adv_patterns_monitor_rssi+0xd5/0x230 [bluetooth] hci_sock_sendmsg+0x96b/0xf80 [bluetooth] __sys_sendto+0x2bc/0x2d0 __x64_sys_sendto+0x76/0x90 do_syscall_64+0x115/0x6a0 entry_SYSCALL_64_after_hwframe+0x77/0x7f 해제된 시점: 454번째 태스크가 2번 CPU에서 285.217112초에 해제 kasan_save_stack+0x33/0x60 kasan_save_track+0x17/0x60 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x313/0x590 msft_add_monitor_sync+0x54a/0x570 [bluetooth] hci_add_adv_monitor+0x133/0x180 [bluetooth] hci_cmd_sync_work+0x187/0x210 [bluetooth] process_one_work+0x4fd/0xbc0 worker_thread+0x2d8/0x570 kthread+0x1ad/0x1f0 ret_from_fork+0x3c9/0x540 ret_from_fork_asm+0x1a/0x30
CVE-2026-72334
번역 확인 필요2026년 8월 15일리눅스 커널에서 다음 취약점이 해결되었습니다: Bluetooth: ISO: 잘못된 ISO_END/CONT 처리 수정 코어 명세(파트 C 볼륨 4sec 5.4.5)는 빈 ISO_CONT, ISO_END 패킷을 제외하지 않습니다. 현재 마지막인 경우에만 이를 거부합니다. 컨트롤러가 잘못된 시퀀스를 보낼 경우 ISO_START -> rx_len = 4, ISO_CONT skb->len 4, ISO_START 이로 인해 ISO_CONT의 페이로드가 끝나고 conn->rx_skb를 노출합니다. 컨트롤러가 너무 긴 ISO_END를 보내면 skb_put에서 패닉이 발생합니다. 컨트롤러가 너무 짧은 ISO_END를 보내면 이를 수용합니다. unfinished ISO_START를 conn->rx_skb != NULL로 표시하여 수정합니다. skb_put을 하기 전에 skb->len을 올바르게 확인합니다. 같은 초기 검사가 필요한 경우 ISO_CONT/END 코드 경로를 결합합니다. 너무 짧은 ISO_END 패킷은 거부합니다.