총 162,856건
CVE-2026-139363
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: irqchip/gic-v3: Don't register a redistributor that was never counted gic_acpi_match_gicc() counts only the enabled GICCs with a non-zero gicr_base_address, and that count sizes redist_regs[], but gic_acpi_parse_madt_gicc() registers every enabled one. On a MADT with no GICR entries, an enabled GICC with a zero GICR base therefore makes gic_acpi_register_redist() write a struct redist_region past the end of the array. Commit fa2dabe57220e ("irqchip/gic-v3: Don't return errors from gic_acpi_match_gicc()") removed the check that kept the two consistent. Its message says such entries are still caught by gic_populate_rdist(), but that runs from gic_cpu_init(), after the write. Skip the entry instead, and mark the CPU's redistributor broken as the online-capable path does, so that gic_check_rdist() rejects the CPU. gic_starting_cpu() runs past cpuhp's last failure point, so without the mark the CPU would come online with its redistributor and CPU interface unconfigured. With an ITS, its_cpu_init() would then dereference a NULL rd_base.
CVE-2026-139362
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: irqchip/mips-gic: Fix recursive acquisition of gic_lock in gic_set_affinity() Commit 322a90638768 ("irqchip/mips-gic: Multi-cluster support") made gic_set_affinity() call gic_set_type() when an interrupt's affinity is moved between clusters. gic_set_type() takes gic_lock with raw_spin_lock_irqsave(), but gic_set_affinity() holds gic_lock at that point, so the same raw spinlock is acquired twice, triggering a deadlock. Split gic_set_type() into a gic_set_type_locked() helper that assumes gic_lock is already held. gic_set_type() takes gic_lock and calls the helper, and gic_set_affinity() calls gic_set_type_locked() directly, since it already holds gic_lock.
CVE-2026-139361
2026년 11월 30일Linux 커널에서 다음 취약점이 해결되었습니다: ALSA: pcm: 드레인과 분리(unlink) 간 경쟁 상태를 위한 refcount 추가 동일 묶음의 다른 서브스트림에 의해 드레인 작업 중에 연결된 서브스트림이 언링크되는 상황에 대한 우회 방법을 커밋 9b1dbd69ba6f("ALSA: pcm: fix use-after-free on linked stream runtime in snd_pcm_drain()")에서 추가했습니다. 그때는 UAF를 피하기 위해 드레인 서브스트림의 매개변수를 캐시했습니다. 그런 다음 루프에서 다시 드레인 중인 서브스트림(to_check)을 확인하고 여전히 존재할 때만 큐에서 제거합니다. 다만 이는 링크 이전에 서브스트림이 벗어나면 대기 큐 항목이 제거되지 않아 오래된 wq 항목이 남아 있을 수 있음을 의미합니다. 나중에 이 항목이 깨워질 수 있으며, 이로 인해 UAF에 도달할 수도 있습니다. 문제가 더 자주 나타났던 이유는 최근에 snd_pcm_unlink()를 더 일찍 호출하도록 변경된 것 때문입니다. 위의 두 경우를 올바르게 처리하기 위해 이 패치에서는 snd_pcm_runtime에 서브스트림이 접근/사용 중임을 나타내는 refcount를 도입하고, 실제 리소스 해제를 via snd_refcount_sync() 이전에 snd_pcm_release_substream()에서 동기화합니다. 이는 접근자가 끝났고 메모리 해제가 안전하다는 것을 보장합니다. refcount의 도입과 함께, 이전 수정의 주석 및 코드 변경은 더 이상 업데이트된 코드 흐름에 맞지 않으므로 부분적으로 되돌려졌습니다. 마지막으로 대기 큐 엔트리 설정 및 prepare_to_wait() 호출이 그룹 unref 이전으로 이동했습니다. 이 변경으로 큐에 넣는 것과 깨움 간의 경쟁도 방지할 수 있습니다."},
CVE-2026-139360
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: spi: omap2-mcspi: handle DMA setup failures The DMA paths ignore failures from dmaengine_slave_config(), descriptor preparation and dmaengine_submit(), and carry FIXME comments about falling back to PIO. A failed setup can leave a half-started transfer or wait for a completion that never arrives. Check each step and clean up with dmaengine_terminate_sync() on error. Prepare both descriptors before issuing either channel. Fall back to PIO only for host-mode transfers that have a TX buffer, when no DMA has been started and cleanup succeeded. RX-only and target-mode transfers return the error instead, since the bus may already be clocking. The FIFO is enabled before the DMA attempt, but the PIO path polls per-word TXS/RXS and does not expect FIFO mode. Disable the FIFO, with the channel off while its bits change, before falling back. Tested on an AM642 board with a TI 6.12.57 vendor kernel built with this patch and booted from RAM. On a McSPI bus using DMA, 200 iterations of 4096-byte TX and 1024-byte RX spidev transfers completed with no errors, timeouts or kernel warnings. With a temporary change that fails every DMA-sized TX setup, 60 spidev writes fell back to PIO with no errors or timeouts. That test used a bus with no device attached and did not show a difference with and without the FIFO disable, which is based on reading the code.
CVE-2026-139359
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: 타입 2 MW가 바인딩된 상태에서 QP를 파괴하는 것을 거부 타입 2 메모리 윈도우를 바인딩하면 QP에 대한 레퍼런스가 필요합니다: rxe_do_bind_mw()가 qp를 얻고 그것을 mw->qp에 저장합니다. 이 레퍼런스는 윈도우가 무효화될 때만 해제되며 (rxe_do_invalidate_mw()가 IB_WR_LOCAL_INV일 때) 또는 윈도우 자체가 파괴될 때 (rxe_mw_cleanup()) 해제됩니다. rxe_qp_chk_destroy()는 이러한 레퍼런스들을 고려하지 않으며 -- qp->mcg_num이 0이 아닐 때만 거부합니다. 따라서 권한이 없는 사용자가 QP에 타입 2 MW를 바인딩한 다음 바인딩이 여전히 살아 있는 상태에서 QP를 파괴할 수 있습니다. __rxe_cleanup()는 QP 레퍼런스 카운트를 0으로 내리게 할 수 없고( MW가 여전히 참조를 보유), -ETIMEDOUT 경로를 만나고 QP를 어쨌든 해제합니다; mw->qp은 해제된 구조체 rxe_qp에 남겨져 들어간 후 use-after-free 쓰기(레퍼런스 카운트 감소 및 complete()/list 작업이 0에 도달하면)로 사용자가공간에서 도달 가능한 위치에서 발생합니다. IB_WR_BIND_MW는 로컬 동작이므로 피어(peer)가 필요하지 않습니다. 타입 2 MW가 QP에 바인딩된 수를 추적하고 그 수가 0이 아닐 때 QP 파괴를 거부하여 기존 멀티캐스트-애 attached 체크처럼 정확히 -EBUSY를 반환합니다. 윈도우는 무효화되거나 해제되어 참조와 카운트가 감소해야 하며, 그 후에만 QP를 파괴할 수 있습니다.
CVE-2026-139358
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었다: RDMA/rxe: rxe_reg_fast_mr()에서 user QP의 IB_WR_REG_MR 거부 IB_WR_REG_MR은 커널 전용으로 문서화되어 있다(“사용자 공간에서 발행할 수 없다”), 그러나 이를 강제하는 검사는 없다. rxe_wr_opcode_info[IB_WR_REG_MR]는 IB_QPT_RC에 대해 WR_LOCAL_OP_MASK를 설정하는데, 사용자 공간이 생성할 수 있는 QP 타입이 있다. 따라서 mmap된 SQ 링에 opcode = IB_WR_REG_MR를 기록하는 사용자 QP는 rxe_do_local_ops() -> rxe_reg_fast_mr()로 진입한다. 그러면 이 함수는 링에서 제공된 필드를 신뢰한다: struct rxe_mr *mr = to_rmr(wqe->wr.wr.reg.mr); ... if (unlikely(mr->state != RXE_MR_STATE_FREE)) /* 참조 해제 */ ... mr->access = access; /* 쓰기 */ 사용자 QP의 wqe->wr.wr.reg.mr은 사용자가 임의로 선택한 포인터이므로 이것은 임의의 커널 주소 역참조(임의 읽기)가 된다(확인됨, 이슈). 이 경로에서 사용자 QP를 구분하는 기존 검사가 없다. 제공된 포인터를 역참조하기 전에 사용자 QP에 대해 IB_WR_REG_MR을 거부한다."
CVE-2026-139357
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: rxe_check_pagefault()에서 ODP 페이지 인덱스를 umem에 바인딩 ODP MR은 페이지 배열 map.pfn_list[]를 가집니다. 그 크기는 umem 시작 주소에서 계산됩니다. 그러나 rxe_check_pagefault()는 같은 시작점을 기준으로 iova에서 배열의 인덱스를 구성하는 반면, 접근 자체는 MR의 iova(ibmr.iova)에 대해 범위가 검사되었습니다. 이 두 기준점은 반드시 일치할 필요는 없습니다. reg_mr은 시작 위치와 hca_va가 동일한 페이지 오프셋을 갖는 것만 요구하므로, 사용자가 hca_va = 시작 + N*PAGE로 MR을 등록할 수 있습니다. 그러면 차이는 (hca_va - 시작) >> PAGE_SHIFT 의 인덱스 왜곡이 됩니다. 배열 pfn_list[]의 결과를 크기와 비교하는 로직이 없으므로 읽기가 배열의 끝을 넘어갑니다. 권한이 없는 로컬 사용자가 자기 자신과 연결된 RDMA QP 하나를 통해 이 취약점을 악용할 수 있습니다. KASAN은 슬랩-오버바운드(read)로 보고합니다. 만약 바깥쪽 qword가 Writable HMM pfn처럼 보인다면, rxe는 페이로드를 사용자가 등록하지 않은 페이지로 복사합니다. umem을 초과하는 인덱스를 거부하고 대신 결함 경로로 이동합니다. 그 경로는 ib_umem_odp_map_dma_and_lock()에서 범위 초과 접근을 거부하며, 이때umem 범위가 실제로 검사됩니다. pfn_list[]의 다른 사용처인 __rxe_odp_mr_copy()와 원자 도우미들은 맵핑이 성공한 후에만 실행되므로, 이 단일 검사가 이들까지도 커버합니다.
CVE-2026-139356
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: finish_packet()에서 inline sge_offset을 인덱싱하기 전에 검증하여 inline_data[]를 확인합니다 사용자 QP의 경우, rxe_post_send()는 qp->is_user 분기를 거치며 init_send_wqe()를 호출하지 않으므로 dma.length/resid/num_sge/cur_sge/sge_offset가 모두 mmap된 SQ 링에서 곧바로 읽힙니다. 인라인 전송 경로의 finish_packet()은 sge_offset을 인덱스로 직접 사용합니다: u8 *tmp = &wqe->dma.inline_data[wqe->dma.sge_offset]; memcpy(payload_addr(pkt), tmp, payload); inline_data는 qp->sq.max_inline의 용량을 가진 플렉스 배열이지만 sge_offset은 사용자 공간에서 온 u32이므로 소스 포인터가 WQE를 임의로 벗어나 읽힙니다. commit 126c757e4cd4 ("RDMA/rxe: Validate num_sge/cur_sge before indexing wqe->dma.sge[]") 전송 경로에서 num_sge/cur_sge를 검사하도록 추가했지만 sge_offset은 동일 구조체의 세 번째 공격자 제어 인덱스이기도 합니다. READ_ONCE()로 한 번 읽고, 인덱싱하기 전에 qp->sq.max_inline으로 경계지를 두어(sge_offset과 뒤따르는 payload를 포함) 유효한 값으로 검증되도록 했습니다. 이처럼 검증된 값이 사용됩니다.
CVE-2026-139355
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: 전송 skb에 대해 netdev 참조를 보유 rxe_init_packet()은 netdev 참조를 보유하지 않은 채 RCU로 보호된 GID 속성에서 skb->dev를 할당합니다. skb가 해제되기 전에 netdev가 등록 해제되면 skb->dev에 대한 이후 접근이 안전하지 않습니다. 소멸자에 설치되기 전에 오류 경로에서 rxe_put_skb()를 통해 또는 전송 소멸자에서 해제하기 전에 skb를 초기화할 때 dev_hold()로 참조를 보유하고 해제합니다. TX 경로에서 skb->dev는 변경될 수 있습니다( VLAN/ bonding/ 터널, ip_finish_output2 등). 따라서 put은 보유된 것과 동일한 netdev를 사용해야 합니다. 이 포인터를 skb_shinfo()->destructor_arg에 보관합니다: skb->cb는 이미 rxe_pkt_info에 의해 사용되며 IP 제어 블록에 의해 재작성됩니다. held skbs에 대해 netdev 등록 해제를 차단하지 않기 위해 NETDEV_GOING_DOWN 및 NETDEV_UNREGISTER 시 모든 QP를 오류 상태로 플러시하여 보류 중인 TX 작업을 소진하고 참조를 해제할 수 있도록 합니다.
CVE-2026-139354
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: RDMA/rxe: WQE opcode를 rxe_wr_opcode_info[] 인덱싱 이전에 경계 확인(bound) 처리 wr_opcode_mask()가 전역 rxe_wr_opcode_info[] 배열을 호출자에 의해 제공된 opcode로 인덱싱하며 경계 검사를 수행하지 않습니다. 사용자 QP의 경우 WQE는 mmap'd SQ 링에서 나오므로 wqe->wr.opcode는 요청자(req_next_wqe() -> rxe_requester())에 의해 제어되는 __u32 읽기로 노출됩니다. rxe_post_send()는 qp->is_user 분기를 사용하고 validate_send_wr()를 실행하지 않으므로 유일한 opcode 검사인 wr_opcode_mask()도 인덱싱하기 전에 수행됩니다. rxe_wr_opcode_info[]에는 IB_WR_REG_MR까지의 항목만 있으며, 범위를 벗어난 opcode는 경계를 벗어나 읽혀 그 결과가 마스크로 사용되고 역참조됩니다. 이는 KASAN의 전역 경계 벗어남(out-of-bounds) "Read of size 4"로 관찰되며, 와일드 포인터 오ops를 야기합니다. 범위를 벗어난 opcode에 대해서는 0 마스크를 반환합니다. 이는 validate_send_wr()가 이미 0 마스크를 잘못된 WR로 처리하는 방식과 일치하므로 배열을 경계 밖에서 인덱싱하는 경로가 생기지 않습니다.
CVE-2026-139353
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ASoC: rt5645: Shut down the button timer on removal jack_detect_work can rearm btn_check_timer, and the timer callback can queue jack_detect_work. Deleting the timer before cancelling the work does not break this cycle: an already running worker can rearm the timer after timer_delete_sync() returns. The timer can then outlive removal. Use timer_shutdown_sync() before cancelling the delayed work so that subsequent attempts to rearm the timer are ignored. The IRQ producer has already been removed at this point. Keep the restartable timer deletion in the suspend path. This issue was identified as part of our ongoing research while reviewing kernel code.
CVE-2026-139352
번역 확인 필요2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: IB/mlx4: 실행 중인 CM 타임아웃 작업 재대기 재고를 피합니다 id->scheduled_delete는 schedule_delayed() 자체에 의해 설정됩니다. RTU 타임아웃 지원이 추가된 후 두 가지 경우에 사용됩니다: * 새 id_map_entry가 생성되고 60초 RTU 타임아웃이 예약됩니다. * 기존 엔트리에 대해 DREQ 혹은 REJ가 수신되었고 일반적인 30초 해제 타임아웃이 예약되거나 조정됩니다. RTU 타임아웃이 DREQ 또는 REJ를 처리하는 동안 만료될 때 다음 경쟁 상태가 발생할 수 있습니다: CPU 0: 타임아웃 작업 CPU 1: DREQ/REJ 핸들러 -------------------- ----------------------- RTU 타이머 만료 타임아웃 콜백 시작 id_map_lock을 기다림 id_map_lock 획득 schedule_delayed() 호출 mod_delayed_work() 호출 id_map_lock 해제 id_map_lock 획득 매핑 제거 id_map_entry 해제 재대기 타임아웃 실행 해제된 id_map_entry에 접근 mod_delayed_work()는 타임아웃 콜백이 시작된 후에 작업을 재대기할 수 있습니다. 원래의 타임아웃 콜백은 이후에 id_map_entry를 해제하고, 재대기된 작업은 미해제된 delayed_work 포인터를 남깁니다. 타임아웃이 이미 예약되어 있는 경우, 먼저 보류 중인 작업을 취소합니다. 성공적인 취소는 콜백이 아직 시작되지 않았고 타임아웃을 안전하게 다시 예약할 수 있음을 의미합니다. 취소가 실패하면 콜백이 실행 중이며 id_map_lock이 해제된 후 엔트리를 해제합니다; 이를 다시 대기시키지 마십시오. cancel_delayed_work()는 의도적으로 cancel_delayed_work_sync() 대신 사용되는데, 타임아웃 콜백이 id_map_lock을 기다리고 있을 수 있고 이는 호출자가 보유하고 있기 때문입니다.
CVE-2026-139351
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ALSA: core: Serialize snd_refcount put and sync When a thread tries to sync-and-destroy the resource with snd_refcount_sync(), it might lead to a UAF in a very slight time window. Namely, snd_refount_put() calls wake_up() after atomic_dec_and_test(), but wait_event() in snd_refcount_sync() checks the condition via atomic_test() without serialization, hence the thread that called snd_refcount_sync() can continue immediately to release the resource before another thread calls wake_up(). For avoiding the race above, introduce the spinlock and take it at snd_refcount_put() and snd_refcount_sync() in order to serialize the operations.
CVE-2026-139350
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: IB/rdmavt: Fix error unwind path for qp_priv_init() in rvt_create_qp() If driver_f.qp_priv_init() fails, execution jumps to bail_rq_wq, which bypasses bail_qpn. Because alloc_qpn() has already succeeded at this point, the allocated QP number is left unreleased. Jump to bail_qpn instead to ensure the QPN is properly freed via rvt_free_qpn().
CVE-2026-139349
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: f2fs: quota: fix quota flush failure during filesystem freeze Quota flush retries can be exhausted during filesystem freeze. freeze_super() and the quota checkpoint may race as below. freeze_super() f2fs_ckpt - down_write(&sb->s_umount) - sb->s_writers.frozen = SB_FREEZE_PAGEFAULT - sync_filesystem() - f2fs_sync_fs() - f2fs_issue_checkpoint() - queue CP_SYNC -----------------> - block_operations() - down_read_trylock(s_umount) : fails; freeze holds write lock - quota flush retries exhausted - set CP_QUOTA_NEED_FSCK_FLAG During the PAGEFAULT sync pass, freeze_super() holds s_umount for write, but umount_lock_holder is not set until f2fs_freeze(). Thus quota writeback tries to acquire s_umount again and can exhaust retries. With checkpoint merge enabled, f2fs_issue_checkpoint() may dispatch CP_SYNC to f2fs_ckpt. That thread also cannot acquire the freeze lock. Record current as umount_lock_holder around the VFS PAGEFAULT sync so checkpoint runs in the freeze caller and quota flush uses its existing s_umount write lock.
CVE-2026-139348
2026년 11월 30일리눅스 커널에서 다음 취약점이 해결되었습니다: net/smc: pnet_find_base_ndev()에서 반환된 net_device에 대한 참조를 보유 pnet_find_base_ndev()는 RTNL 아래에서 중첩된 디바이스의 기본 net_device를 해석한 다음 잠금을 해제하고 참조를 취하지 않은 원시 포인터를 반환합니다. RTNL이 해제된 후 세 호출처 모두 포인터를 역참조하여 디바이스가 동시적으로 등록 해제될 경우 use-after-free 창을 만듭니다. RTNL을 해제하기 전에 netdev_hold()로 참조를 얻고, 세 호출처의 모든 반환 경로에 일치하는 netdev_put()를 추가합니다: - smc_pnet_add_eth() - smc_pnet_find_roce_by_pnetid() - smc_pnet_find_ism_by_pnetid() 코드 분석으로 발견되었고, KASAN 슬래브-use-after-free 보고서를 유발하는 개념 증명으로 확인되었습니다.
CVE-2026-139347
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: ublk: use global index for reported zones ublk_report_zones() may split a zone report into multiple requests when the number of zones exceeds the temporary buffer capacity. The index passed to disk_report_zone() must refer to the zone position in the whole report, rather than the position within the current request. Currently, the per-request loop index is used as the callback index, causing each chunk after the first one to restart from zero. This can make userspace callbacks receive duplicate zone indices and may result in blk_revalidate_disk_zones() updating incorrect entries in its zone state array. Use the number of zones already reported as the base index for each request so that zone indices remain continuous across all chunks.
CVE-2026-139346
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Fix NULL task dereference in task work cancellation bpf_task_work_irq() publishes ctx->work with task_work_add() before changing the context from SCHEDULING to SCHEDULED. The target task can run the callback on another CPU before the handler reaches its final state transition. The handler then reloads ctx->task for cancellation if its final cmpxchg observes FREED. By that point the callback or context destruction may already have cleared ctx->task, causing task_work_cancel() to dereference a NULL task pointer. One concrete interleaving is: 1. CPU 0 changes PENDING to SCHEDULING and successfully queues ctx->work with task_work_add(), but has not attempted the final state cmpxchg. 2. The target task on CPU 1 runs the callback. It changes SCHEDULING to RUNNING, executes the BPF subprogram, resets ctx->task, publishes STANDBY and drops the callback's context reference. 3. CPU 2 deletes the map value. It changes STANDBY to FREED and drops the map's context reference without queuing asynchronous cancellation. 4. CPU 0 resumes. Its SCHEDULING-to-SCHEDULED cmpxchg observes FREED, and the cancellation attempt passes NULL to task_work_cancel(). If deletion publishes FREED before the callback claims RUNNING, the callback takes its FREED exit and drops its context reference. Context destruction can then clear ctx->task before CPU 0 attempts cancellation. A controlled reproducer with a delay before the final cmpxchg triggered the following fault on a v7.3-rc3 based x86-64 KVM guest: BUG: kernel NULL pointer dereference, address: 0000000000000890 RIP: 0010:task_work_cancel+0xd/0xa0 RDI: 0000000000000000 CR2: 0000000000000890 Call Trace: <IRQ> bpf_task_work_irq+0x95/0x100 irq_work_run_list+0x4f/0x90 irq_work_run+0x18/0x50 </IRQ> 0x890 is the task_struct::task_works offset in that build, read through the NULL task argument. Capture ctx->task before task_work_add() publishes the callback and use that pointer for the handler's cancellation attempt. The round still holds its task reference when the pointer is captured. Releasing that reference uses bpf_task_release(), which calls put_task_struct_rcu_user(), so the handler's existing RCU read-side section keeps the captured task alive even if ctx->task is subsequently cleared. The asynchronous cancellation path reads ctx->task directly, which is safe there: queuing it requires deletion to observe SCHEDULED, and that xchg wins against the callback's transition to RUNNING, so the callback takes its FREED exit without resetting ctx->task, while the map reference transferred to the cancellation handler prevents context destruction until cancellation completes. The handler-tail and asynchronous cancellation attempts are mutually exclusive: asynchronous cancellation is queued only if deletion observes SCHEDULED after the scheduling handler's final cmpxchg has succeeded. If that cmpxchg instead observes FREED, the scheduling handler attempts cancellation with the captured pointer.
CVE-2026-139345
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: bpf: Prevent task work context reuse while irq_work is busy A bpf_task_work context can return to STANDBY before its scheduling irq_work handler returns. Both callback completion and task_work_add() failure can publish STANDBY while the irq_work is still BUSY. A new round can then reinitialize and queue the same irq_work on another CPU while the old handler is still running. One concrete interleaving is: 1. CPU 0 successfully queues ctx->work with task_work_add() and pauses before its SCHEDULING-to-SCHEDULED cmpxchg. 2. The target task on CPU 1 completes the callback, resets ctx->task and publishes STANDBY. 3. CPU 2 starts a new round, changes STANDBY to PENDING and queues the same irq_work. The new handler changes PENDING to SCHEDULING, but task_work_add() returns -ESRCH because its target task has exited. The handler has not yet reset the context or rolled back the state. 4. CPU 0 resumes and changes the new round's SCHEDULING to SCHEDULED, even though no task work was queued for that round. 5. The new handler resets ctx->task, but its SCHEDULING-to-STANDBY cmpxchg fails. The context remains SCHEDULED with a NULL task, and subsequent attempts to acquire this context fail with -EBUSY. 6. Map-value deletion observes SCHEDULED and queues asynchronous cancellation, which passes the NULL ctx->task to task_work_cancel(). Overlapping invocations also share one BUSY bit. An invocation can clear that bit while the other invocation is still running. Initialize the scheduling irq_work when the context is created and stop reinitializing it for each round. After claiming the context with the STANDBY-to-PENDING cmpxchg, check BUSY and reject reuse with -EBUSY if a previous invocation is still in progress. Checking after the cmpxchg orders the BUSY read after the STANDBY publication. No irq_work has been queued for the attempted round at this point, so the rejection can roll PENDING back to STANDBY. Use cmpxchg for that rollback to preserve FREED if a concurrent deletion has published it. Once BUSY clears, scheduling can be retried.
CVE-2026-139344
2026년 11월 30일In the Linux kernel, the following vulnerability has been resolved: macsec: prevent AES-GCM nonce reuse after packet number wrap After allocating the last valid packet number, MACsec wraps next_pn to zero and deactivates the transmit SA. This happens for both 32- and 64-bit types of packet numbers (at values 0xffffffff and 0xffffffffffffffff, respectively). TX packets that were still getting processed during deactivation keep being processed and then receive packet numbers. The first gets 0 and is correctly dropped, but next_pn is incremented to 1, which makes the next packet take number 1. It then does not get dropped and may induce a reuse of the AES-GCM nonce corresponding to value 1. This race affects TX packets that have already passed the SA activity check: packets that observe the inactive SA are correctly dropped. Reactivating the SA after PN wrap without a packet number can also cause nonce reuse. Keep next_pn at 0 after wrap, even if the SA is reactivated, so further packet number allocations return 0 and the corresponding packets are dropped.