총 15,720건
CVE-2026-99692
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ocfs2: stop recovery before shutting down local allocators Recovery completion needs the local allocators until it has finished reclaiming a failed node's allocation window and truncate log. During unmount, quota recovery is stopped first, but that leaves recovery_state at OCFS2_REC_QUOTA_DISABLED. New non-quota recovery can still start. ocfs2_truncate_log_shutdown() drains existing completion work and releases osb_tl_bh before ocfs2_recovery_exit() closes that publication path: Unmount Recovery ------- -------- stop quota recovery; disable quotas truncate_log_shutdown() flush existing completion work recover another failed node queue completion flush local log; release buffer complete_truncate_log_recovery() use released osb_tl_bh recovery_exit(): disable and drain An extra buffer reference alone would still let completion append new records after the final truncate-log flush. Split stopping and draining recovery from freeing its state. Stop all recovery producers and drain completion work before shutting down either local allocator. Keep recovery-state release at its existing later point, so its lifetime relative to other teardown users stays unchanged. The second stop at recovery_exit() is harmless once recovery is disabled. KASAN report as below: BUG: KASAN: slab-use-after-free in ocfs2_truncate_log_needs_flush+0x23d/0x360 Read of size 8 at addr ffff8881093711e8 by task kworker/u16:3/53 CPU: 0 UID: 0 PID: 53 Comm: kworker/u16:3 Not tainted 7.3.0-rc4-next-20260921-pmb-ocfs2-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Workqueue: ocfs2_wq ocfs2_complete_recovery Call Trace: <TASK> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? ocfs2_truncate_log_needs_flush+0x23d/0x360 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? ocfs2_truncate_log_needs_flush+0x23d/0x360 kasan_report+0xe0/0x110 ? ocfs2_truncate_log_needs_flush+0x23d/0x360 ocfs2_truncate_log_needs_flush+0x23d/0x360 ? __pfx_ocfs2_truncate_log_needs_flush+0x10/0x10 ? __pfx_down_write+0x10/0x10 ocfs2_complete_truncate_log_recovery+0x315/0x780 ? trace_hardirqs_on+0x18/0x160 ? __pfx_ocfs2_complete_truncate_log_recovery+0x10/0x10 ? ocfs2_complete_recovery+0x666/0x11b0 ? srso_alias_return_thunk+0x5/0xfbef5 ? kfree+0x308/0x580 ocfs2_complete_recovery+0x676/0x11b0 ? __pfx_ocfs2_complete_recovery+0x10/0x10 ? reacquire_held_locks+0xdd/0x200 ? process_one_work+0x7c8/0x1b40 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_acquire+0x190/0x300 ? __pfx_autoremove_wake_function+0x10/0x10 ? process_one_work+0x834/0x1b40 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0xc8/0x290 ? srso_alias_return_thunk+0x5/0xfbef5 process_one_work+0x9a8/0x1b40 ? __pfx_process_one_work+0x10/0x10 ? lock_acquire+0x190/0x300 ? lock_is_held_type+0x8f/0x100 ? srso_alias_return_thunk+0x5/0xfbef5 worker_thread+0x65c/0xe40 ? srso_alias_return_thunk+0x5/0xfbef5 ? __kthread_parkme+0x177/0x220 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx_worker_thread+0x10/0x10 kthread+0x351/0x460 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx_kthread+0x10/0x10 ret_from_fork+0x659/0x940 ? __pfx_ret_from_fork+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? __switch_to+0x74f/0xf70 ? __pfx_kthread+0x10/0x10 ret_from_fork_asm+0x1a/0x30 </TASK> Allocated by task 538: kasan_save_stack+0x33/0x60 kasan ---truncated---
CVE-2026-99691
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ocfs2/cluster: unlink socket containers before releasing resources A socket container's node and socket must remain alive while the container is on sock_containers. The debugfs formatter reads sc_node and sc_sock under o2net_debug_lock without taking their references, but sc_kref_release() releases both before taking that lock to unlink the container. With CONFIG_DEBUG_FS enabled, a synchronous sender can retain its last socket-container reference after o2net_disconnect_node() has detached the connection and flushed o2net_wq. The caller runs outside that workqueue. After the sender removes its configfs dependency, node removal can proceed without waiting for the sender's final sc_put(): Sender (final sc_put) Configfs rmdir Debugfs reader -------------------- -------------- -------------- o2nm_undepend_item() Drop node item refs o2nm_node_put() [node can be freed] sc_seq_show() Lock debug lock Read sc_node->nd_name Unlock debug lock sc_node = NULL o2net_debug_del_sc() The earlier socket release has a similar window. The container is still selectable while its socket has been released and sc_sock has not yet been cleared: Sender (final sc_put) Debugfs reader -------------------- -------------- sock_release(sc->sc_sock) [socket can be freed] sc_seq_show() Lock debug lock Read sc_sock->sk fields Unlock debug lock sc_sock = NULL ... o2net_debug_del_sc() Move o2net_debug_del_sc() before releasing either resource. Unlinking under the existing debug lock waits for an active formatter to finish and prevents later readers from selecting the container. This covers both socket fields and node fields, including nd_num in the stats formatter. KASAN report as below: BUG: KASAN: slab-use-after-free in string+0x42b/0x470 Read of size 1 at addr ffff88810f56fc90 by task python3/506 CPU: 0 UID: 0 PID: 506 Comm: python3 Not tainted 7.3.0-rc4-next-20260921-pmb-ocfs2-functional-v1+ #1 PREEMPT(lazy) Hardware name: QEMU Ubuntu 24.04 PC v2 (i440FX + PIIX, arch_caps fix, 1996), BIOS 1.16.3-debian-1.16.3-2 04/01/2014 Call Trace: <TASK> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 kasan_report+0xe0/0x110 string+0x42b/0x470 vsnprintf+0x330/0x1110 seq_printf+0x1a8/0x260 sc_seq_show+0x604/0x9f0 seq_read_iter+0x480/0x1110 seq_read+0x362/0x5a0 full_proxy_read+0x11f/0x180 vfs_read+0x1a0/0xc20 ksys_read+0x111/0x200 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f (User register dump omitted.) </TASK> Allocated by task 497: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 __kmalloc_cache_noprof+0x28d/0x610 o2nm_node_group_make_item+0xea/0x1a0 configfs_mkdir+0x762/0xca0 vfs_mkdir+0x399/0x7e0 filename_mkdirat+0x129/0x450 __x64_sys_mkdir+0x70/0xa0 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f Freed by task 505: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 kasan_save_free_info+0x3b/0x60 __kasan_slab_free+0x5f/0x80 kfree+0x308/0x580 config_item_cleanup+0x14b/0x230 config_item_put+0x79/0x90 sc_put+0x454/0x6e0 o2net_send_message_vec+0x63d/0x1560 o2net_send_message+0xa6/0xe0 validation_send_write+0x17f/0x1d0 full_proxy_write+0x11f/0x180 vfs_write+0x25a/0x1010 ksys_write+ ---truncated---
CVE-2026-99690
번역 확인 필요2026년 11월 20일리눅스 커널의 다음 취약점이 해결되었다: ocfs2: dentry 잠금 콜백에 대한 마운트 컨텍스트를 캐시 ocfs2_drop_dentry_lock()이 DENTRY 잠금 해제 전에 inode 참조를 해제한다. 이는 로컬 inode 및 열려 있는 잠금을 원격 링크 해제(DENTRY 잠금을 지나가도록 한다) 전에 릴리스하도록 한다. DLM 콜백은 DENTRY 잠금이 해제되기 전에 여전히 도착할 수 있다. ocfs2_get_dentry_osb()은 dl_inode->i_sb를 통해 마운트 컨텍스트를 얻는데, 다운컨버트 스레드가 잠금 해제 후후속 콜백에서 마지막 inode 참조를 해제하면 해제된 inode에 접근할 수 있다: Downconvert 스레드 DLM 콜백 스레드 ------------------ ------------------- ocfs2_process_blocked_lock() ocfs2_dentry_post_unlock() ocfs2_dentry_lock_put() ocfs2_drop_dentry_lock() iput(dl->dl_inode) [RCU 이후 inode 회수] ocfs2_blocking_ast() ocfs2_get_dentry_osb() dl->dl_inode->i_sb ocfs2_simple_drop_lockres() 마운트 컨텍스트를 DENTRY 잠금 리소스의 l_priv 필드에 저장하고 기본 마운트-컨텍스트 조회를 사용한다. refcount 잠금에 대해 이미 수행된 것처럼 container_of()로 포함된 dentry 잠금을 복구하고 ocfs2_get_dentry_osb()를 제거한다. ocfs2_dismount_volume()는 마운트 컨텍스트를 자유롭게 해제하기 전에 DLM을 종료하므로 콜백이 inode에 접근하지 않고도 이를 사용할 수 있다. 로컬 inode 및 열기 잠금 해제의 지연 없이 DENTRY 잠금이 해제된 후에 남은 iput-전.unlock 순서를 유지한다.
CVE-2026-99689
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: fix temporary cursor leak in btree shift corruption paths In xfs_btree_lshift and xfs_btree_rshift, when XFS_IS_CORRUPT detects an invalid firstrec/lastrec result after xfs_btree_dup_cursor has successfully allocated a temporary cursor, the error path jumps to error0 which returns without freeing tcur. This leaks the cursor memory, the xfs_group reference, and the per-level buffer references held by the duplicated cursor. Jump to error1 instead, which calls xfs_btree_del_cursor(tcur, XFS_BTREE_ERROR) to properly release all resources.
CVE-2026-99688
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: net/sched: sch_qfq: 집계 자체 교체 방지 qfq_change_class()는 현재 집계 설정을 큐 디스패치 계층( qdisc 트리 잠금) 을 보유한 상태에서 스냅샷하지만 목적지 집계를 선택하기 전에 잠금을 해제한다. 그 틈 사이에 qfq_enqueue()가 요청된 설정과 일치하는 집계로 클래스를 이동시킬 수 있다. qfq_change_class()가 재개되면 qfq_find_agg()는 cl->agg를 반환한다. 그것이 단일 인스턴스인 경우 qfq_deact_rm_from_agg()가 동일 포인터를 즉시 접근하기 전에 집계를 해제하고, 이로 인해 해제 후 사용(use-after-free)이 발생한다. 트리 잠금을 보유하는 동안 목적지가 이미 현재 집계인 경우 교체를 건너뎀라. 이미 모든 추정기 교체가 완료되었으므로 클래스 변경은 정상적으로 마무리된다.
CVE-2026-99687
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: vhost-scsi: zero misaligned I/O bounce pages The misaligned I/O fallback copies the full bounce scatterlist to the request buffer during completion. If a data-in command transfers less than requested, part of a newly allocated bounce page can remain unwritten. Allocate bounce pages with __GFP_ZERO so all bytes copied during completion have a defined value. This path is already the slow fallback for misaligned I/O, so the added initialization cost is acceptable. Found during an LLM-assisted source audit and validated with a QEMU/KVM vhost-scsi target using misaligned data-in commands.
CVE-2026-99686
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결됐다: vhost: 사용된 링 인덱스 래핑을 vhost_add_used_n_in_order에서 수정 vhost_add_used_n_in_order()는 nheads[i] 만큼 시작점을 앞으로 이동시키지만 단일 뺄셈으로 래핑한다. start + nheads[i]가 2 * vq->num 이상이 되면 start가 링 밖에 남을 수 있다. Used-ring 로깅이 활성화된 상태에서 start > vq->num이면 (vq->num - start)이 언더플로우된다. 그 후 log_write()가 dirty-log 비트 맵의 범위를 넘는 비트를 설정하여 인접한 사용자 공간 메모리를 손상시킬 수 있다. 이 문제는 VIRTIO_F_IN_ORDER가 적용된 vhost-net TX 경로에서 도달 가능하며, done_idx가 VHOST_NET_BATCH(64)에 도달하면 32-entry 링에서 이 문제가 발생한다. 링 내에 시작점을 유지하도록 마스크로 래핑한다. VHOST_SET_VRING_NUM은 0이 아닌 2의 거듭제곱 링 크기를 강제하므로 & (vq->num - 1)로 시작점을 래핑할 수 있다.
CVE-2026-99685
2026년 11월 20일리눅스 커널에서 아래 취약점이 해결되었습니다: iommu/virtio: probe 실패 시 virtqueues를 삭제하기 전에 디바이스를 리셋 viommu_probe()는 이벤트 큐를 채우고 sysfs에 IOMMU 디바이스를 등록하기 전에 디바이스에 DRIVER_OK를 표시합니다. viommu_fill_evtq()가 virtqueue_add_inbuf()를 통해 디바이스에 일련의 디바이스-쓰기 버퍼를 전달하므로, 그 시점부터 디바이스는 버퍼와 링에 쓸 수 있습니다. 두 단계 중 하나라도 실패하면 에러 경로에서 디바이스를 먼저 리셋하지 않고 virtqueues를 삭제합니다. 이벤트 버퍼는 devm_kmalloc_array()로 할당되고 probe의 unwind 과정에서 해제되므로 디바이스가 이미 해제된 메모리에 쓰기를 계속할 수 있습니다. viommu_remove()가 이미 수행하는 것처럼 virtqueues를 삭제하기 전에 디바이스를 리셋합니다.
CVE-2026-99684
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: hwrng: virtio - prevent use-after-free after a failed restore remove_common() frees the driver data during freeze, but does not clear vdev->priv, which points to freed memory. If probe_common() then fails during restore, a later remove or freeze can dereference the dangling pointer. Clear vdev->priv on the probe_common() error cleanup path and before freeing the driver data in remove_common(). Also reset the device and return early from remove_common() if vdev->priv is already NULL for a safe teardown after a failed restore.
CVE-2026-99683
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: vduse: fix VA/PA confusion in the coherent page fault path vduse_domain_get_coherent_page() assumes that iotlb entries above bounce_size were installed by vduse_domain_alloc_coherent(), so it treats map->addr as a physical address. But vduse registers with use_va = true, and when the device is bound to vhost_vdpa, vhost_vdpa_va_map() stores a userspace virtual address in map->addr, which vduse_domain_set_map() then copies into the same iotlb. A process holding the domain file descriptor across a rebind can therefore fault in an arbitrary physical page with read/write access, ignoring the entry permissions. Additionally, since the domain file mmap lacks VM_IO, the domain file itself can be mapped and passed to vhost_vdpa_va_map(), producing self-referential entries that bypass the coherent path check. To fix, only translate entries whose backing file is the domain file itself in vduse_domain_get_coherent_page(), reject such entries in vduse_domain_set_map() since only external mappings should be imported, and set VM_IO on the domain file mmap so vhost_vdpa_va_map() refuses to map it in the first place.
CVE-2026-99682
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: virtio_blk: use synchronous quiesce in virtblk_freeze_priv() blk_mq_run_work_fn() can call blk_mq_sched_dispatch_requests() through blk_mq_run_dispatch_ops(). The dispatcher checks QUEUE_FLAG_QUIESCED while the flag is clear. It can then be preempted before it gets a request. At that time, it has no queue usage reference, so blk_mq_freeze_queue() does not wait for it. virtblk_freeze_priv() then calls blk_mq_quiesce_queue_nowait() and blk_mq_unfreeze_queue(). A new request can enter the queue. The old dispatcher can run again, use its old flag check, get the new request, and call virtio_queue_rq(). At the same time, virtblk_freeze_priv() can reset the device, delete the virtqueues, and free vblk->vqs. The old dispatcher can then use a deleted virtqueue or a NULL vblk->vqs, and the kernel can crash. Fix this by using blk_mq_quiesce_queue(), which waits for dispatch code that was already running. Keep the existing freeze and unfreeze order. The queue remains quiesced until virtblk_restore_priv() calls blk_mq_unquiesce_queue().
CVE-2026-99681
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: blk-mq: fix out-of-bounds read in blk_mq_free_rqs A KASAN slab-out-of-bounds read can occur in blk_mq_free_rqs() when there is a mismatch between the number of hardware queues allocated for the IO scheduler (et->nr_hw_queues) and the number of hardware queues in the block tag set (set->nr_hw_queues). This mismatch can happen if blk_mq_update_nr_hw_queues() fails halfway through (e.g., due to memory pressure during blk_mq_prealloc_tag_set_tags()). In this error path, the elevator is restored with a larger number of hardware queues than the block tag set actually has. When the elevator is later freed, blk_mq_free_sched_tags() iterates up to the new et->nr_hw_queues and calls blk_mq_free_rqs(). In blk_mq_free_rqs(), it attempts to access set->tags[hctx_idx] to get the driver tags. Because set->nr_hw_queues was not updated due to the earlier failure, set->tags still has the old (smaller) size, leading to an out-of-bounds read. BUG: KASAN: slab-out-of-bounds in blk_mq_free_rqs+0xde/0x680 Read of size 8 at addr ffff88818d67fc28 by task syz-executor117/5839 Call Trace: blk_mq_free_rqs+0xde/0x680 blk_mq_free_map_and_rqs+0x40/0xf0 blk_mq_free_sched_tags blk_mq_free_sched_res+0xeb/0x280 elevator_change_done+0x1d2/0x5c0 elevator_change+0x34f/0x480 elv_iosched_store+0x504/0x630 queue_attr_store+0x207/0x2b0 To fix this, explicitly check if hctx_idx < set->nr_hw_queues before accessing set->tags[hctx_idx]. If hctx_idx >= set->nr_hw_queues, the hardware queue doesn't exist in the tag set, meaning there are no driver tags to clear mappings from. In this case, safely set drv_tags to NULL. The subsequent call to blk_mq_clear_rq_mapping() already handles a NULL drv_tags pointer and will safely return.
CVE-2026-99680
번역 확인 필요2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: xfs: pNFS 쓰기 레이아웃의 EOF를 지나 마크될 inode xfs_fs_map_blocks()는 쓰기 레이아웃에 대해 블록을 할당할 때만 XFS_DIFLAG_PREALLOC를 마크합니다. EOF를 지나가는 쓰기 레이아웃도 할당된 블록을 제공할 수 있으며, 예를 들어 예측적 프리할당이 그렇습니다. blockgc가 레이아웃 하에서 이를 해제하면 다른 파일이 이를 가질 수 있습니다. EOF를 지나가는 때마다 쓰기 매핑이 끝났을 때 inode를 마크합니다.
CVE-2026-99679
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: xfs: 블록 없이 LAYOUTCOMMIT의 구간을 거부 클라이언트가 LAYOUTCOMMIT에서 구멍(hole)을 커밋할 수 있는데, nfsd가 레이아웃에 대한 확장을 검사하지 않기 때문이다. 그 결과 xfs_iomap_write_unwritten()가 그 자리에 기록된 블록을 할당한다. 큰 구멍은 블록 예약을 초과하고 XFS를 종료시킨다. 작은 구멍은 오래된 데이터를 노출한다. - EIO로 이러한 구간을 거부하고, XFS_BMAPI_CONVERT_ONLY를 사용한다.
CVE-2026-99678
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: xfs: xfs_iomap_write_direct()의 블록 수를 한 개의 확장으로 제한 xfs_iomap_write_direct()는 전체 개수에 대해 unsigned int로 블록을 예약합니다. pNFS 레이아웃의 경우 클라이언트가 그 개수를 선택하고 RW LAYOUTGET이 16 TiB인 경우 예약이 래핑되어 XFS가 중단됩니다. xfs_bmapi_write()는 여기에서 최대 XFS_MAX_BMBT_EXTLEN 블록을 매핑하므로 개수를 그 값으로 제한합니다. nfsd가 나머지를 다시 요청합니다. 다른 호출자들은 기존과 동일한 매핑을 얻습니다.
CVE-2026-99677
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: clamp the pNFS layout range to the maximum file size xfs_fs_map_blocks() lets two bad layout ranges through. An offset of 2^63 or more is negative and passes "offset > limit". A length above the limit, such as NFS4_UINT64_MAX, wraps "offset > limit - length" and stays unclamped. With NFS4_UINT64_MAX, a read layout is built from an uninitialized mapping. Reject a negative offset and one at the limit, and clamp the length. This needs "xfs: cap the block count of xfs_iomap_write_direct() at one extent".
CVE-2026-99676
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: net: lockless 소켓 접근을 위한 refcount 순서 복원 커밋 fb041bb7c0a9 ("locking/refcount: refcount_t 구현 일관화") 이전에는 기본 빌드가 atomic_add_unless()를 사용하여 refcount_inc_not_zero()를 구현했고, 성공 시 전체 메모리 순서를 보장했다. 그러나 이 순서는 약한 순서형 아키텍처에서 제거되어 참조 획득 후의 접근이 그 전에 재정렬될 수 있었다. IPv4 및 IPv6 설정된 조회(established lookups)와 inet_twsk_purge()에서 소켓이 참조를 얻은 후 다시 검증될 때, acquire 순서를 사용한다. bpf_sk_assign()가 참조 없이 BTF를 통해 얻은 소켓 포인터를 받을 수 있다. 자체 참조를 얻을 때 refcounted 소켓에 대해 acquire 순서를 사용한다. SYN 쿠키, TCP Fast Open, 요청 마이그레이션, TIME_WAIT 경로에서 refcount를 설정할 때 refcount_set_release()를 사용한다. 기존의 TIME_WAIT smp_wmb()는 해시 게시 이전에 refcount 저장의 순서를 별도로 보장한다.
CVE-2026-99675
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: nvmet: reject keep-alive timeouts that would overflow nvmet_set_feat_kato() and nvmet_alloc_ctrl() convert the 32-bit millisecond KATO from the host to seconds with DIV_ROUND_UP(kato, 1000). The addition in DIV_ROUND_UP() is done in 32 bits, so any KATO above 4294966296 ms wraps around and rounds to 0 seconds. A Set Features command with KATO 0xffffffff then succeeds but disables the keep-alive timer: Get Features returns 0 and Keep Alive fails with Keep Alive Timeout Invalid. A Connect command with such a KATO creates a controller without a keep-alive timer. The converted value has more consumers that can overflow. Get Features multiplies it by 1000, and the timer paths multiply it by HZ in 32 bits and arm a delay that must not exceed MAX_JIFFY_OFFSET. Reject a KATO whose rounded value does not fit all of these. Return Keep Alive Timeout Invalid from both Set Features and Connect. Validate Set Features before stopping the current timer so a failed update leaves its timeout unchanged. Round in 64 bits. A KATO of 0 keeps its current meaning.
CVE-2026-99674
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: can: dev: can_dropped_invalid_skb: 비 CAN XL 디바이스에서 CAN XL 프레임을 dropp합니다 PF_PACKET를 전송하면 CAN 프레임워크 로직을 우회하고 CAN 드라이버의 xmit() 함수에 직접 도달할 수 있습니다. PF_PACKET 프레임워크는 skb->len이 net_device MTU를 초과하지 않는지만을 검사합니다. CAN XL을 지원하지 않는 디바이스의 경우 CANFD_MTU(72바이트) 초과는 드라이버에 도달하기 전에 드롭됩니다. 그러나 CAN XL 프레임은 가변 길이입니다. can_is_canxl_skb()는 CANXL_HDR_SIZE + CANXL_MIN_DLEN부터 CANXL_MTU까지의 길이(즉 13~2060바이트)를 허용합니다. 그 결과, 13~72바이트 길이의 ETH_P_CANXL skb는 MTU 검사와 can_dropped_invalid_skb() 검사를 모두 통과할 수 있습니다. CAN XL을 지원하지 않는 드라이버는 canxl_frame->flags를 길이로 해석하게 되며, can_frame->len과의 중첩 때문에 CANXL_XLF가 설정됩니다. 그 결과 길이는 128에서 255 사이가 됩니다. 그리고 대다수의 드라이버가 can_frame->len을 데이터 복사 전에 확인하지 않기 때문에, 이는 최대 247바이트의 버퍼 오버플로를 일으킵니다. CAN_CAP_XL 기능이 없는 디바이스의 경우 ETH_P_CANXL 스킵을 드롭합니다. 검증을 위해 CAN XL 스킵은 can_is_canxl_skb()를 유지합니다.
CVE-2026-99673
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: can: replace ARPHRD_CAN type checks with can_get_ml_priv() Commit 4e096a18867a ("net: introduce CAN specific pointer in the struct net_device") introduced an explicit way to assign the midlayer private pointer (dev->ml_priv) to named users like ML_PRIV_CAN. A valid pointer returned by can_get_ml_priv() therefore identifies a real CAN device. The referenced commit only converted the j1939 and proc code to this check, while the other parts of the CAN subsystem still rely on dev->type == ARPHRD_CAN. The TUNSETLINK ioctl allows a down TUN/TAP device to set its hardware type to ARPHRD_CAN while dev->ml_priv remains NULL. Such a repurposed netdevice passes the ARPHRD_CAN checks. Commit 8aa59e355949 ("can: af_can: fix NULL pointer dereference in can_rx_register()") already made can_rx_register() reject such devices. But can_rx_unregister() still only checks dev->type and dereferences the NULL ml_priv when it walks the receive lists of the device. CAN_ISOTP reaches this path: isotp_bind() ignores the return values of can_rx_register() and binds the socket anyway. When the socket is released or the device is unregistered, isotp_release() and isotp_notify() remove the filters that have never been registered and trigger the NULL pointer dereference in can_rx_unregister(). This only requires owning a TUN/TAP device or CAP_NET_ADMIN in an unprivileged user namespace. Convert the remaining ARPHRD_CAN checks in af_can, bcm, gw, isotp and raw to can_get_ml_priv().