총 15,720건
CVE-2026-99672
번역 확인 필요2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: per-device 잠금으로 수신 리스트를 보호하는 CAN 장치의 수신 리스트는 장치의 can_ml_priv에 위치하며 네트워크 네임스페이스가 다른 곳으로 이동될 때 장치를 따라간다. 그러나 이들은 per-netns rcvlists_lock으로 보호된다. 그래서 can_rx_unregister()는 dev_net(dev)로 올바른 잠금을 선택해야 하며 전달된 네임스페이스가 더 이상 dev_net(dev)와 일치하지 않으면 조용히 반환한다. isotp_release() 및 bcm_release()는 RTNL에서 직렬화를 수행하는 잠금(lock)을 얻기 전에 notifier 목록을 남겨 두는데, 이때 바인딩된 장치가 다른 네임스페이스로 이동하는 경우 notifier가 소켓을 건너뛰고 해제 경로가 필터를 스스로 제거해야 한다. isotp_release()는 소켓의 네임스페이스를 전달하지만 이는 더 이상 dev_net(dev)와 일치하지 않는다. bcm_rx_unreg()는 dev_net(dev)을 전달하는데, can_rx_unregister()는 이를 다시 읽어 확인하므로 두 읽기 사이의 네임스페이스 변경은 확인 실패를 야기한다. 두 경우 모두 can_rx_unregister()는 조용히 반환한다. can_rx_register()가 rcv->sk를 참조 없이 저장하므로 남은 수신자는 해제된 소켓(isotp) 또는 해제된 오브젝트(bcm)를 가리킨다: BUG: KASAN: use-after-free in isotp_rcv+0x1570/0x24d0 Read of size 1 at addr ffff888118130552 by task isotp_ns_uaf/578 can_rcv_filter+0x4af/0x8c0 can_receive+0x28d/0x3c0 can_rv+0x2a9/0x310 __netif_receive_skb_one_core+0x21a/0x260 process_backlog+0x210/0x760 그 외에도 장치의 목록은 전달된 네임스페이스의 rcvlists_lock으로 보호된다. dev_net(dev)로 전달하는 호출자는 서로 다른 시점에서 이를 읽으므로 장치가 이동하는 동안 서로 다른 네임스페이스의 잠금 하에서 같은 목록이 수정될 수 있다. 이 해제 경로에서 RTNL을 사용하는 것은 옵션이 아니다: raw_bind(), raw_setsockopt() 및 raw_release()는 CAN_RAW_FILTER_MAX 수의 필터를 추가/제거하는 동안 RTNL을 이미 보유하고 있는데, 이는 일반 사용자가 반복적으로 트리거할 수 있으며 RTNL을 전역 병목으로 만든다. 대신 근본 원인을 수정하고 CAN 장치의 수신 목록을 보호하는 struct can_dev_rcv_lists에 스핀락을 추가한다. 이는 CAN 장치의 수신 목록 또는 네임스페이스의 'any' CAN 장치 목록을 보호한다. can_set_ml_priv()에서 초기화되며 모든 CAN 네트워크 장치가 사용한다. 이를 통해 can_rx_unregister()는 현재 장치의 네임스페이스에 관계없이 구독을 찾는다. 프로토콜은 추적된 참조로 장치를 유효하게 유지한다. per-netns rcvlists_lock은 더 이상 수신 목록 통계만 보호하고 CAN_RAW, CAN_BCM 및 CAN_ISOTP는 can_rx_register()에 사용된 네임스페이스를 전달한다. 따라서 isotp_release() 및 bcm_release()가 이제 RTNL 없이 필터를 올바르게 제거하고, raw_release(), raw_setsockopt(), raw_bind() 및 isotp_bind()는 더 이상 RTNL이 필요 없으며 lock_sock() 아래에서 필터를 추가/제거한다. NETDEV_UNREGISTER와의 바인딩 직렬화를 위해 bind()는 lookup의 RCU 구간 내에서 장치를 게시하고, raw_notify() 및 isotp_notify()는 lock_sock() 아래에서 바인딩된 장치를 다시 확인한다. RTNL이 bind()에서 NETDEV_DOWN을 더 이상 유지하지 않으므로 bind()는 바인딩된 장치를 게시한 후 IFF_UP를 검사하고, raw_notify() 및 isotp_notify()에 대한 배리어 쌍으로 인해 바인딩 중 다운 전환은 ENETDOWN으로 여전히 보고된다.
CVE-2026-99671
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: can: raw, isotp: copy socket options outside of lock_sock() The CAN_RAW and CAN_ISOTP specific socket options are copied from and to user space while holding lock_sock(). A copy that faults or stalls, e.g. on a userfaultfd or FUSE backed mapping, holds lock_sock() for its whole duration. raw_notify() and isotp_notify() take lock_sock() of a socket that is bound to the vanishing device while holding RTNL. As the CAN_RAW options can also be changed on a bound socket, a stalled copy can block RTNL on an unregistration or namespace change of the bound device. Before "can: protect the receive lists with a per-device lock", raw_setsockopt() even held RTNL itself during the copy. CAN_ISOTP only copies its options for unbound sockets, which isotp_notify() skips without taking lock_sock(). Keep the user space copies out of the locked sections: Check the option name and length and copy the option values, including the CAN_RAW_FILTER filters, to kernel memory before lock_sock(). raw_setsockopt_locked() and isotp_setsockopt_locked() get the copied values directly and drop their now redundant length checks and copies. As a side effect, a failing copy can not leave partially overwritten options behind anymore. In raw_getsockopt() duplicate the filters under lock_sock() and copy them to user space after release_sock(). As the option name and length are now checked before lock_sock(), the order of the checks in isotp_setsockopt() and accordingly the order of the returned error values changes. This is in line with POSIX, which does not define an order in which multiple error conditions are detected and reported. The generic SOL_SOCKET options in sk_setsockopt() are not affected by this patch.
CVE-2026-99670
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: can: dev: can_fill_info(): don't wake up controller if interface is down If the interface is down, the CAN controller might be powered down and its clocks gated. Don't call do_get_berr_counter() to read the bus error counters if the interface is down, and adjust can_get_size() to match. This removes one trigger for a synchronous external abort seen on i.MX8QXP when "ip link show" is run on a flexcan interface that was never brought up. The underlying cause is platform-specific: on i.MX8QXP the CAN clocks are gated through the SCU LPCG and the subsystem shares the IMX_SC_R_CAN_0 power domain, and there is a window after pm_runtime_resume_and_get() returns where the clock has not reached the module yet. This patch avoids the netlink query path while the interface is down, but does not root-cause the LPCG window itself. As a result, IFLA_CAN_BERR_COUNTER is no longer reported for down interfaces. Userspace must treat the attribute as optional. The issue was triggered on an i.MX8QXP board by running "ip link show" without ever bringing the interface up: Internal error: synchronous external abort: 0000000096000210 pc : flexcan_read_le+0x0/0x18 lr : flexcan_get_berr_counter+0x4c/0x8c Call trace: flexcan_read_le+0x0/0x18 flexcan_get_berr_counter+0x4c/0x8c can_fill_info+0x1f8/0x434 rtnl_fill_ifinfo+0x8fc/0xbb4 rtnl_dump_ifinfo+0x364/0x448 This is the same class of problem fixed for m_can in commit 91a55c72a821 ("can: m_can: m_can_get_berr_counter(): don't wake up controller if interface is down").
CVE-2026-99669
2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었습니다: mm/huge_memory: PMD 제거와 잘못된 연산 간의 경쟁 상태 수정 zap_huge_pmd_folio()는 folio_mark_dirty()를 호출하기 전에 rmap을 제거합니다. 만약 이가 마지막 매핑이라면, 트렁케이션이 folio의 매핑 해제를 건너뛰고 PMD 잠금 대기를 하지 않고 더티링과의 레이스를 발생시킬 수 있습니다. ifs_set_range_dirty()는 XFS에서 MADV_DONTNEED가 ftruncate()와 경쟁하는 경우, folio가 더 이상 매핑되지 않는 것으로 판별된 후 더티로 표시되는 시점에서 oops가 발생할 수 있습니다. folio_mark_dirty()와 folio_mark_accessed()를 rmap 제거 전에 옮겨 PTE zap 경로와 일치시켰습니다. 이로써 상태를 업데이트하는 동안 folio가 매핑된 상태를 유지하므로 트렁케이션은 페이지 테이블 잠금을 대기해야 합니다. LLM에 의해 생성되고 Chris Mason이 비공개로 보낸 수정입니다. [ david: 주석 및 설명 간소화 ]
CVE-2026-99668
2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었습니다: mm/huge_memory: 디바이스-프라이빗 THP의 마이그레이션 엔트리 제거를 수정 PMD 마이그레이션 엔트리는 디바이스-프라이빗 폴리오를 참조할 수 있습니다. zap_huge_pmd_folio()가 엔트리 타입이 아닌 폴리오 타입을 검사하므로 이러한 마이그레이션 엔트리를 디바이스-프라이빗 엔트리로 간주합니다. 이미 역 매핑을 제거하고 매핑 참조를 삭제한 상태에서 마이그레이션 엔트리를 제거하면 이를 반복해서 수행하면 안 됩니다. 시스템 메모리로의 마이그레이션 중 컨커런트 MADV_DONTNEED는 이를 트리거할 수 있습니다. pmd_is_device_private_entry()를 사용하여 PMD 엔트리 타입을 확인하십시오. LLM에 의해 생성되었고 Chris Mason이 비공개로 보낸 수정입니다. [ david: 설명 간소화 ]
CVE-2026-99667
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: mm/khugepaged: try_collapse_pte_mapped_thp()에서 pmd를 다시 확인한다는 항상 수행하는 검사 try_collapse_pte_mapped_thp()는 페이지 테이블을 지운 뒤 PTE 잠금을 해제하고, 이를 제거하기 위해 PMD 잠금과 PTE 잠금을 획득합니다. 그 사이에 CONFIG_PT_RECLAIM가 설정된 상태에서 MADV_DONTNEED가 페이지 테이블을 회수할 수 있습니다. pmd_same() 체크는 이를 처리하기 위한 것이지만, CONFIG_SPLIT_PTE_PTLOCKS일 때만 수행됩니다. 체크를 무조건 수행하도록 수정합니다. 생성은 LLM에 의해 이루어졌고 private로 Josef Bacik가 보냈습니다. [ david: 설명 보정 ]
CVE-2026-99666
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: fix PMD table lock leak in try_collapse_pte_mapped_thp() For a private mapping with userfaultfd, try_collapse_pte_mapped_thp() takes the PMD table lock before it maps the page table for the second time. If that (pte_offset_map_rw_nolock) fails, because the page table vanished in the meantime due to concurrent page table reclaim, it leaves through the abort label, where the PMD table lock is unlocked if it differs from PTE table lock. In case the PMD table lock and the PTE table lock match, which is the case without CONFIG_SPLIT_PTE_PTLOCKS after pte_offset_map_rw_nolock() failed, we miss to unlock the PMD table. To fix it, forget the PTE table lock when we unmap+unlock the PTE table. Fix generated by an LLM and sent by Josef Bacik in private. [ david: move the ptl = NULL handling; rewrite description, drop wrong comments ]
CVE-2026-99665
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/khugepaged: preserve dirty bits when collapsing PTE-mapped THPs try_collapse_pte_mapped_thp() clears PTEs without transferring their dirty bits to the folio. A shmem read fault can map a clean folio writable, so a later store only dirties the PTE. Losing that dirty bit allows reclaim to discard modified data. The assumption that regular files are read-only is also obsolete since commit 1b6444331bebb ("mm/khugepaged: enable clean pagecache folio collapse for writable files"). In any case, transferring PTE dirty bits to the folio when removing mappings (and while the folio is still mapped) is the right thing to do. Use get_and_clear_ptes() to collect the dirty bits and mark the folio dirty before unmapping it. Update the comment. This was reproduced with shmem using MADV_COLLAPSE followed by MADV_PAGEOUT. Fix generated by an LLM and sent by Chris Mason in private. [ david: adjust comment; simplify description; cover file-thp as well ]
CVE-2026-99664
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/gup: recheck the PUD under PTL in follow_pud_mask() follow_pud_mask() reads the PUD without a lock. If it is a leaf, it takes the lock and calls follow_huge_pud(), which reads the entry again, but only tests whether it is present. A leaf can be zapped concurrently and a page fault can fill the empty entry with a page table. This currently only applies when device-dax makes use of PUD entries, and the fault after e.g., MADV_DONTNEED would find THPs to be disabled. That requires a sequence like 1) Fault in the PUD 2) Disable THP 3) Have GUP race against concurrent MADV_DONTNEED + refault Which is rather unlikely to happen in practice, which is why we never received a report about such a problem. Before commit 1b1676180246 ("mm/gup: handle huge pud for follow_pud_mask()"), we performed that check in follow_devmap_pud() by testing for pud_devmap(). Let's fix it by just structuring follow_pud_mask() similar to follow_pmd_mask(), minus protnone stuff that does not apply and minus FOLL_SPLIT_PMD handling. That makes it much easier to spot any such inconsistencies. Perform the pud_bad() check early in follow_pmd_mask() and just forward the PUD value. We can drop the pud_present() check in follow_huge_pud(), just like we have in follow_huge_pmd(). Even though we are performing more changes than strictly necessary, the fix should be easy to backport.
CVE-2026-99663
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/gup: fix clearing folios in memfd_pin_folios() memfd_pin_folios() pins folios obtained directly from the page cache without checking whether they are uptodate. However, shmem fallocate() can leave newly allocated folios uncleared and not uptodate. Callers such as udmabuf can then expose uninitialized memory to userspace. Clear non-uptodate folios and mark them uptodate under the folio lock before returning them to the caller. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description and comment ]
CVE-2026-99662
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: mm/gup: GUP-fast에서 nr_pages == 0일 때 범위를 벗어나는 쓰기를 수정 nr_pages == 0인 경우에도 GUP-fast는 여전히 페이지 테이블 순회를 진입할 수 있으며 호출자의 페이지 배열을 넘겨 쓰기를 할 수 있다. 예전의 end <= start 검사로 비워진 범위를 잡아내었지만, 이는 오버플로우 검사로 대체되었다. OrangeFS와 같은 사용자는 사용자 공간에서 주어진 길이로부터 0 페이지 수를 전달할 수 있다. 따라서 GUP-slow와 같이 순회를 시작하기 전에 nr_pages == 0에 대해 0을 반환하자. _private로 Chris Mason이 보낸 LLM에 의해 생성된 수정사항이다. [ david: 설명 간소화 ]
CVE-2026-99661
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/gup: check for overflow when converting nr_pages to bytes in GUP-fast The overflow check in gup_fast_fallback() only covers the addition to start. The preceding nr_pages << PAGE_SHIFT can already have truncated the length on 32bit. Users such as RapidIO's rio_dma_transfer() can derive such page counts from a 64-bit userspace length. Let's just check_shl_overflow() to reject any such overflow with -EOVERFLOW early.
CVE-2026-99660
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/userfaultfd: write-lock the VMA before waking waiters when unregistering userfaultfd_unregister() wakes pending missing faults before clearing the VMA's userfaultfd registration. With per-VMA fault locking, holding mmap_lock for write does not prevent another fault from queuing after the wakeup but before userfaultfd_clear_vma() write-locks the VMA. That waiter can then remain asleep indefinitely. Call vma_start_write() before waking waiters. Existing fault handlers queue themselves before dropping the VMA read lock, and new readers are excluded until mmap_write_unlock().
CVE-2026-99659
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: mm/mmu_gather: 4 GiB 이상 범위의 플러시를 수정 __tlb_adjust_range()는 플러시할 범위의 크기를 부호 없는 정수(unsigned int)로 취합니다. 이를 호출하는 tlb_flush_{pte,pmd,pud,p4d}_range()는 unsigned long을 전달받아 사용합니다. 그 결과 4 GiB 이상인 범위는 잘려서(0으로 될 수 있음) 처리될 수 있습니다. arm64에서 hugetlb를 사용할 때, 64k 커널은 PMD 레벨에서 16 GiB의 hugetlb 폴리오를 서로 연속적으로 매핑하고 이를 언매핑 시 플러시할 수 있으며, 16k 커널은 tlb_unshare_pmd_ptdesc()를 통해 64 GiB의 PUD를 플러시할 수 있습니다. 따라서 이 두 시나리오가 영향을 받습니다. 잘린 범위가 아닌 올바른 범위를 플러시하도록 범위 크기에 대해 "unsigned long"을 올바르게 사용하여 수정합니다. 생성 수정은 LLM에 의해 자동 생성되었고 private로 Josef Bacik가 보냈습니다. [ david: 두 개의 탭 들여쓰기 사용, 설명 간소화 ]
CVE-2026-99658
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/mmu_notifier: finish non-blocking interval invalidation on error When an ordinary MMU notifier rejects a non-blocking invalidation, the interval invalidation started beforehand is left unfinished: the caller skips mmu_notifier_invalidate_range_end(). Subsequent interval notifier operations can then wait forever. The only in-tree trigger is nouveau SVM, which uses both notifier types and rejects non-blocking invalidations. Reaping via the OOM reaper or process_mrelease() can therefore leave the GPU fault worker stuck, holding a reference that prevents the dying process's address space and memory from being freed. End the interval invalidation when an ordinary notifier fails a non-blocking invalidation, like mn_itree_invalidate() already does when an interval notifier fails. Make that handling clearer in the documentation of mmu_notifier_invalidate_range_start_nonblock(). Fix generated by an LLM and sent by Josef Bacik in private. [ david: simplify description, update function doc ]
CVE-2026-99657
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: mm/mmu_notifier: set ->mm는 mmgrab() 후에만 수행 Radeon은 버퍼 객체를 해제할 때 mmu_interval_notifier_remove()를 호출할지 여부를 결정하기 위해 non-NULL notifier->mm를 사용한다. __mmu_interval_notifier_insert()는 범위를 검증하기 전에 ->mm를 설정하므로 래핑된 userptr 범위가 삽입 실패 후에도 ->mm를 남겨둘 수 있다. 정리 과정에서 등록되지 않은 알림기에 대해 mm 참조가 획득되지 않은 상태에서 제거를 시도한다. 삽입이 더 이상 실패할 수 없게 된 직후 mmgrab() 이후에만 ->mm를 설정한다. 레데온(Radeon)의 코드를 대신 수정하는 방법도 있었지만, 성공 시에만 ->mm를 설정하는 것이 코드의 안전성을 높인다. 생성 수정은 LLM으로부터 받았고 Chris Mason이 비공개로 전송했다. [ david: 설명 간소화 ]
CVE-2026-99656
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/madvise: fix data loss from MADV_FREE on a KSM page MADV_FREE can clear the dirty flag of a singly mapped KSM folio. The folio remains in the stable tree and can gain new mappings without being dirtied again. Once marked lazyfree, reclaim can discard data that those mappings still need. KSM always marks a folio dirty when converting it to a KSM folio in try_to_merge_one_page(). Marking a folio lazyfree clears PG_swapbacked but leaves PG_dirty unchanged. Preserving PG_dirty makes reclaim restore PG_swapbacked instead of discarding the folio. This also protects folios that were already lazyfree when KSM converted them. Skip KSM folios before clearing their dirty flag, checking under the folio lock to serialize with KSM conversion.
CVE-2026-99655
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm/memory: reject remote COW faults on PFN mappings When handling a COW fault without a normal source page (PFN mappings), __wp_page_copy_user() copies from the faulting user address. For remote faults, this accesses the wrong address space, resulting in wrong data getting copied. For example, user_events updates an enable bit in the registering process's memory. If that memory needs to be faulted in, user_event_enabler_fault_fixup() calls fixup_user_fault() from a work item. Placing the enable bit in a private PFN mapping can trigger this remote COW path. Reject these faults with VM_FAULT_SIGBUS when the target mm differs from current->mm: remote faults. Ordinary (non-PFN) mappings are not affected. The user-address copy dates back to commit 6aab341e0a28 ("mm: re-architect the VM_UNPAGED logic"); likely, actual ways to get remote faults in there on COW PFN mappings appeared afterwards. But the fix is simple and straight forward. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify comment and description ]
CVE-2026-99654
번역 확인 필요2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었다: mm: 32비트에서 4 GiB를 넘는 영역에 대한 unmap_mapping_range()를 수정 커밋 9eab0421fa94 ("mm: fix unmap_mapping_range high bits shift bug") 은 holebegin과 holelen을 시프트되기 전에 unsigned로 만들기 위해 pgoff_t로 형변환했다. 이는 unsigned long이며, 32비트 커널에서는 두 loff_t 값의 윗부분이 잘려 나가 버려, 파일의 처음 4 GiB에 해당하는 부분이 4 GiB 이상 시작하는 구간이 첫 4 GiB의 일부로 간주된다. truncate_pagecache()는 파일의 새 크기를 전달하고 private COW된 페이지를 unmapped 하도록 요청한다. 예를 들어 6 GiB인 파일을 5 GiB로 잘라내면 1 GiB부터는 모두 unmapped되며, 1 GiB에서 5 GiB 사이의 범위에 대한 private 매핑에 대해 프로세스가 기록한 내용은 손실된다: 파일의 내용을 다시 읽는다. 범위의 끝이 있는 경우, 잘못된 범위가 해제되며 올바른 범위가 해제되지 않는다. 페이지 캐시는 이를 보상하며 제거된 folio를 모두 unmapped한다. unmap_mapping_range()만을 가지고 사용자 매핑을 제거하는 호출자 예로 drm_vma_node_unmap()이 있는데, 이때의 가짜 오프셋은 32비트를 넘어서 32비트를 초과하는 물리 주소를 갖는 revoke_iomem()에 대해서도 작동한다. u64로 캐스팅한다. 64비트 커널에서는 아무 것도 바뀌지 않는다. 생성은 비공개로 Josef Bacik이 보낸 LLM에 의해 Fix된 것이다.
CVE-2026-99653
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: mm: fix unkillable fault loop on MAP_DROPPABLE memory handle_mm_fault() suppresses VM_FAULT_OOM for VM_DROPPABLE mappings. For user-mode faults, pending signals are processed before retrying the access. Kernel-mode faults on user buffers instead return directly to the faulting instruction. With persistent allocation failures (esp. memcg limits), a syscall, such as write(), can therefore loop while not dropping locks. Only suppress VM_FAULT_OOM when FAULT_FLAG_USER is set, allowing kernel-mode faults and GUP to fail and signal allocation errors. Fix generated by an LLM and sent by Chris Mason in private. [ david: simplify description ]