총 15,720건
CVE-2026-99431
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ocfs2: cancel quota sync work before freeing quota info OCFS2 quota info owns dqi_sync_work and must outlive both its timer and qsync_work_fn(). ocfs2_local_free_info() frees that owner without cancelling the work, relying on the quota suspend/disable wrappers. Loading quotas on a read-only to read-write remount can successfully queue the work in ocfs2_global_read_info() and then fail while attaching a dquot to an existing inode in add_dquot_ref(). The quota core unwinds that failure directly through dquot_disable(), bypassing the OCFS2 wrapper: Remount task (s_umount write) Timer/workqueue ocfs2_global_read_info() schedules dqi_sync_work add_dquot_ref() returns an error dquot_disable() ocfs2_local_free_info() frees oinfo delayed-work timer expires qsync_work_fn() reads oinfo The timer core can then write to the freed embedded timer, or qsync_work_fn() can read oinfo->dqi_gqinode before its s_umount trylock. The outer ocfs2_disable_quotas() cleanup skips the failed type because dquot_disable() has already cleared its loaded state. Cancel dqi_sync_work synchronously at the start of ocfs2_local_free_info(), before dropping the global inode or freeing any owner state. The work is initialized whenever read_file_info() succeeds. dquot_disable() holds s_umount for write, so the callback skips its quota scan via down_read_trylock() and can finish without waiting for teardown. The synchronous cancel also handles its self-rearm. KASAN report as below: BUG: KASAN: slab-use-after-free in __run_timers+0x9e9/0xa10 Write of size 8 at addr ffff888111b0aad0 by task swapper/3/0 Call Trace: <IRQ> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? __run_timers+0x9e9/0xa10 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? __run_timers+0x9e9/0xa10 kasan_report+0xe0/0x110 ? __run_timers+0x9e9/0xa10 __run_timers+0x9e9/0xa10 ? __pfx___run_timers+0x10/0x10 ? __lock_acquire+0x5a3/0x2140 ? __pfx_do_raw_spin_lock+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 timer_expire_remote+0xfa/0x160 ? __pfx_timer_expire_remote+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? trace_hardirqs_on+0x18/0x160 tmigr_handle_remote_up+0x4ba/0x9d0 ? __pfx_tmigr_handle_remote_up+0x10/0x10 ? tmigr_handle_remote+0x21a/0x340 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0xc8/0x290 ? __pfx_tmigr_handle_remote_up+0x10/0x10 __walk_groups_from+0x5a/0x160 tmigr_handle_remote+0x24f/0x340 ? __pfx_tmigr_handle_remote+0x10/0x10 ? lock_acquire+0x190/0x300 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0xc8/0x290 run_timer_softirq+0x222/0x270 ? __pfx_run_timer_softirq+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? srso_alias_return_thunk+0x5/0xfbef5 ? lockdep_hardirqs_on_prepare+0xb8/0x1a0 ? srso_alias_return_thunk+0x5/0xfbef5 handle_softirqs+0x1fa/0x8d0 ? __pfx_handle_softirqs+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? _raw_spin_unlock+0x23/0x40 ? srso_alias_return_thunk+0x5/0xfbef5 ? __hrtimer_rearm_deferred+0x1fb/0x5d0 __irq_exit_rcu+0x113/0x1e0 irq_exit_rcu+0xe/0x20 sysvec_apic_timer_interrupt+0x6c/0x80 </IRQ> <TASK> asm_sysvec_apic_timer_interrupt+0x1a/0x20 ? ct_kernel_exit.constprop.0+0xc5/0xf0 ? do_idle+0x3ae/0x650 default_idle+0x9/0x10 default_idle_call+0x6c/0xb0 do_idle+0x3ae/0x650 ? cpuhp_online_idle+0x9c/0xb0 ? __pfx_do_idle+0x10/0x10 ? __entry_text_end+0x1020f6/0x1020f9 ? lockdep_hardirqs_on_prepare+0xeb/0x1a0 ? srso_alias_return_thunk+0x5/0xfbef5 ? trace_hardirqs_on+0x18/0x160 ? srso_a ---truncated---
CVE-2026-99430
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: ocfs2: 로컬 할당 quota 파일의 첫 번째 청크의 번호를 수정 정의된 OCFS2 이미지를 마운트하면 커널 메모리가 손상될 수 있습니다. 그러한 이미지의 로컬 quota 파일 헤더가 0개의 청크를 주장하면, 마운트 중 할당된 첫 번째 quota 항목은 커널 포인터에서 가져온 청크 번호를 갖게 되고, 해당 항목을 해제하면 청크 비트맵 밖에 있는 비트를 지웁니다. 이 쓰기는 해당 주소에 저장된 데이터를 손상시키며, 손상은 시스템 크래시나 관련 없는 데이터 손상을 야기할 수 있습니다. 또한 마운트에는 CAP_SYS_ADMIN 권한이 필요하므로 USB 미디어나 파일의 루프 마운트와 같이 신뢰할 수 없는 이미지를 사용하는 경우가 있습니다. 청크 번호가 커널 포인터에서 오기 때문에 지워지는 비트의 주소가 부팅마다 다르며, 이 문제는 여러 제목으로 보고되었습니다: - BUG: ocfs2_local_release_dquot에서 커널 페이징 요청 처리 불가 - KASAN: ocfs2_local_release_dquot에서 쓰기 후 해제(use-after-free) - KASAN: ocfs2_local_release_dquot에서 슬랩 경계 밖 쓰기(slab-out-of-bounds) - KASAN: ocfs2_local_release_dquot에서 슬랩 이후 해제(use-after-free) - KFENCE: ocfs2_local_release_dquot에서 해제 후 쓰기(use-after-free) 참고로 이 중 어느 것도 쿼터 코드의 use-after-free가 아닙니다: 청크와 그 버퍼 헤드는 살아 있습니다. 지워지는 비트는 비트맵의 경계 밖에 위치합니다. KASAN과 KFENCE는 주소를 점유하는 객체를 기준으로 보고를 하며, 동일한 이슈가 여러 다른 제목으로 보고되는 이유를 설명합니다. 제가 보낸 보고에서 주소는 자유 페이지에 속했고, KASAN은 이를 use-after-free로 표시합니다. 레포트에는 재현 코드가 있습니다. 제 보고 스레드의 구글 드라이브 링크 [1]에서 syzkaller 및 C 재현 코드를 확인할 수 있습니다. 이 이슈는 수정된 syzkaller에 의해 발견되었지 이론적인 것이 아니라 LLM에 의해 발견된 것이 아닙니다. fuzzing 외부에서의 영향을 본 적은 없으므로 실제 환경에서의 영향은 제한적입니다. OCFS2의 로컬 quota 파일은 청크로 나뉘며, 각 청크는 그 청크가 할당한 quota 항목의 비트맵을 보유한 헤더 블록으로 시작합니다. 청크는 0부터 번호를 매기며, 이 번호는 파일 오프셋을 비트맵의 비트 위치로 다시 변환하는 데 사용됩니다. ocfs2_local_quota_add_chunk()는 메모리 목록에 새 청크를 덧붙이고 번호를 마지막 청크보다 하나 크게 매깁니다: list_add_tail(&chunk->qc_chunk, &oinfo->dqi_chunk); chunk->qc_num = list_entry(chunk->qc_chunk.prev, struct ocfs2_quota_chunk, qc_chunk)->qc_num + 1; 전임자는 새 청크가 목록에 추가된 후에 조회되므로, 목록이 비어 있으면 prev 포인터는 목록 머리 자체입니다. 머리는 struct ocfs2_mem_dqinfo의 dqi_chunk 멤버이며 청크가 아니므로, 여기에서 qc_num을 통해 읽으면 머리의 시작점에서 16바이트 지나친 위치에 도달합니다. 그 결과 파일의 첫 번째 청크는 0 대신 커널 포인터의 하위 비트를 사용해 번호가 매겨집니다. 로컬 quota 파일 헤더가 파일에 청크가 없다고 주장할 때 목록은 비어 있습니다. ocfs2_local_read_info()는 그 헤더에서 dqi_chunks를 가져오고 이를 검증하지 않으므로 dqi_chunks == 0인 이미지는 첫 quota 항목이 할당될 때 이 경로를 사용합니다. ocfs2_create_local_dquot()는 잘못된 번호를 파일 오프셋으로 바꿔 32비트 블록 번호를 블록 크기 비트만큼 좌시켜, 그러한 큰 블록 번호의 상위 비트가 손실됩니다. ocfs2_local_release_dquot()은 오프셋을 다시 비트 인덱스로 바꿔주는데, 이때 전체 청크 번호를 사용하므로 손실된 비트가 비트맵 밖으로 밀려나고, 그 지점을 지우면 관련 없는 메모리가 손상됩니다. 목록에 청크를 올려 놓기 전에 청크 번호를 계산하고, 목록이 비어 있을 때는 0을 사용한다.
CVE-2026-99429
번역 확인 필요2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: ocfs2: 조회 잠금을 해제하기 전에 refcount 트리를 고정(pin)한다 ocfs2_lock_refcount_tree()에 대한 호출이 남겨진 동안에는 상호 작용 참조를 유지해야 한다. 그러나 ocfs2_get_refcount_tree()는 osb_lock를 해제한 후 캐시된 포인터를 반환하고, 호출자는 그 후에만 kref를 취한다. 레지스트리 참조는 이 간극을 동시 제거로부터 보호하지 못한다. 이 mount가 오래된 캐시된 트리를 보유하는 동안 다른 노드가 refcount 루트를 해제하고 그 블록을 다른 생성으로 재사용하는 경우에 발생할 수 있다. 새로운 루트를 공유하는 서로 다른 inode에서의 두 개의 로컬 연산(예: 데이터 CoW와 외부 xattr 업데이트)은 동일한 오래된 트리를 조회하게 될 수 있다. 해당 inode 잠금은 독립적이며, 첫 번째 연산 참조 이후 REFCOUNT DLM 잠금과 rf_sem이 획득된다. 다음과 같은 순서가 다른 작업 참조 없이 가능하다: 데이터 CoW Xattr 업데이트 -------- ------------ osb_lock 아래에서 이전 트리를 조회한 후 osb_lock 해제 같은 트리를 조회하고 kref 취득 트리 잠금을 취득하고 디스크상의 새 생성 읽기 osb_lock 아래에서 이전 트리 제거 작업의 kref 해제 및 드롭 레지스트리 kref를 드롭하여 트리 해제 해제된 트리 포인터를 통해 kref 취득 최종 kref_get()은 해제된 rf_getcnt 저장소를 읽고, ocfs2_lock_refcount_tree()의 이후 접근도 해제된 할당을 사용한다. osb_lock을 해제하기 전에 ocfs2_get_refcount_tree()에서 작업 참조를 취해야 하며, 삽입이 다른 조회에 지는 경우에도 마찬가지이다. 제거는 같은 잠금을 획득해야 하므로 조회가 트리를 핀(pin)하기 전에 레지스트리 참조를 해제할 수 없다. 기존의 해제 및 오류 경로를 유지한다. 이미 refcount 트리 잠금을 보유하고 있는 두 호출자는 borrow 된 조회 동작을 유지하며 추가 참조를 취하지 않는다. KASAN 보고서는 아래와 같다: BUG: KASAN: slab-use-after-free in ocfs2_lock_refcount_tree+0x94a/0x9b0 Read of size 4 at addr ffff888117212820 by task python3/497 [커널 및 하드웨어 식별 생략.] Call Trace: <TASK> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? ocfs2_lock_refcount_tree+0x94a/0x9b0 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? ocfs2_lock_refcount_tree+0x94a/0x9b0 kasan_report+0xe0/0x110 ? ocfs2_lock_refcount_tree+0x94a/0x9b0 ocfs2_lock_refcount_tree+0x94a/0x9b0 ? __pfx_ocfs2_lock_refcount_tree+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? ocfs2_refcount_cow+0x3b6/0xd90 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx___might_resched+0x10/0x10 ? __kmalloc_cache_noprof+0x28d/0x610 ? ocfs2_refcount_cow+0x3b6/0xd90 ocfs2_refcount_cow+0x410/0xd90 ? __pfx_ocfs2_refcount_cow+0x10/0x10 ? __pfx___might_resched+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? lock_release+0x121/0x290 ocfs2_file_write_iter+0x157b/0x1d30 ? __pfx_ocfs2_file_write_iter+0x10/0x10 ? lock_vma_under_rcu+0x154/0x4a0 ? __pfx_vfs_write+0x10/0x10 ? lock_release+0x121/0x290 __x64_sys_pwrite64+0x1b7/0x220 ? __pfx___x64_sys_pwrite64+0x10/0x10 ? irqentry_exit+0xbe/0x820 ---truncated---
CVE-2026-99428
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ocfs2: snapshot dentry names in file and setattr traces Patch series "ocfs2: stabilize dentry names in file and setattr traces", v4. Snapshot names at all six users of ocfs2__file_ops and at the separate setattr event. Patch 1 handles the five ordinary file-operation callers and setattr. Patch 2 handles release separately to preserve its locked open-count sample and take the snapshot outside that critical section. The release explanation distinguishes its existing RCU lifetime coverage from name/length consistency. It does not claim that the ordinary callers' external-name UAF interleaving crosses the held inode spinlock. The release source change is unchanged from v3. Patch 1 also removes the read callback's redundant NULL-inode check. The two patches apply independently and leave trace formats unchanged. This patch (of 2): The open, fsync, read, write and splice-read trace calls pass the live dentry name and length to the shared ocfs2__file_ops event class. ocfs2_setattr() passes the same unprotected arguments to its own event. Both events size and copy a __string field separately. A reference to the dentry does not pin the external storage backing an individual name. With an event enabled, a caller can be preempted after loading the name pointer. A long-to-short rename can then replace the name and reclaim its old external allocation before the trace callback sizes or copies it, provided no other snapshot retains that allocation. The setattr inode lock does not exclude every rename: a same-directory rename of a source directory need not take that directory's inode lock. It can therefore change the dentry name while setattr records its event. Inline names and separately loaded lengths can also change during trace record sizing and copying. Take a dentry name snapshot around each of these six trace calls and pass both the string and length from the snapshot. Check event enablement before taking a snapshot. Keep the event classes and formats unchanged. Also remove the redundant NULL-inode check in the read callback. file_inode() returns the open file's inode, which is already used by the trace call above the check. The historical report below is from the read path. KASAN report as below: BUG: KASAN: slab-use-after-free in strlen+0x85/0xa0 Read of size 1 at addr ffff88810a5b2b18 by task python3/496 [CPU and host details omitted.] Call Trace: <TASK> dump_stack_lvl+0x93/0xd0 print_report+0xce/0x630 ? strlen+0x85/0xa0 ? srso_alias_return_thunk+0x5/0xfbef5 ? __virt_addr_valid+0x20e/0x420 ? strlen+0x85/0xa0 kasan_report+0xe0/0x110 ? strlen+0x85/0xa0 strlen+0x85/0xa0 trace_event_raw_event_ocfs2__file_ops+0xf0/0x480 ? __pfx_trace_event_raw_event_ocfs2__file_ops+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? pmbd_probe_hit_cookie+0xe7/0x1c0 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx_pmbd_probe_hit_cookie+0x10/0x10 ocfs2_file_read_iter+0x6cd/0xb30 ? __pfx_ocfs2_file_read_iter+0x10/0x10 ? selinux_file_permission+0x11d/0x540 ? srso_alias_return_thunk+0x5/0xfbef5 ? security_file_permission+0x26/0x80 vfs_read+0x7d2/0xc20 ? __pfx_vfs_read+0x10/0x10 ? srso_alias_return_thunk+0x5/0xfbef5 ? __pfx_do_sys_openat2+0x10/0x10 ksys_read+0x111/0x200 ? __pfx_ksys_read+0x10/0x10 ? irqentry_exit+0xbe/0x820 ? srso_alias_return_thunk+0x5/0xfbef5 ? trace_hardirqs_on_prepare+0x11d/0x150 ? srso_alias_return_thunk+0x5/0xfbef5 do_syscall_64+0x114/0x620 entry_SYSCALL_64_after_hwframe+0x77/0x7f [User register dump omitted.] </TASK> Allocated by task 489: kasan_save_stack+0x33/0x60 kasan_save_track+0x14/0x30 __kasan_kmalloc+0xaa/0xb0 __kmalloc_noprof+0x2de/0x780 __d_alloc+0x5fc/0x8c0 d_alloc_parallel+0x106/0x11d0 lookup_open+0x3ff/0 ---truncated---
CVE-2026-99427
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB last_entry pointer from unbounded LastNameOffset CIFSFindFirst() and CIFSFindNext() locate the last entry of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 response by adding the LastNameOffset of the response parameters to the start of the data area, and store the result in psrch_inf->last_entry. MS-CIFS 2.2.6.2.2 defines that offset as the offset of the entry's file name; the client follows the reading of NT and Samba servers, which point it at the entry. LastNameOffset is only checked against CIFSMaxBufSize, which says nothing about the response actually received: validate_t2() lets the data area start up to 1024 bytes into the buffer, and SendReceive() copies at most CIFSMaxBufSize + MAX_CIFS_HDR_SIZE bytes of a response, 16468 by default, into a cifs_request allocation of CIFSMaxBufSize + MAX_SMB2_HDR_SIZE bytes, 16588 by default. The pointer itself can therefore be placed anywhere from the end of the received data to 820 bytes past the end of the allocation. The read through that pointer is far larger than its displacement. find_cifs_entry() hands last_entry to cifs_save_resume_key() after every FindNext and after the FindFirst of a search rewind, and cifs_fill_dirent() takes the length of the name from the entry itself: a __le32 FileNameLength for most levels, a __u8 for SMB_FIND_FILE_INFO_STANDARD, and for SMB_FIND_FILE_UNIX the result of a scan for the terminating NUL over up to PATH_MAX + 1 UTF-16 units. The name is recorded as the resume name of the search, and the next CIFSFindNext() rejects only a recorded length of PATH_MAX or more before copying the name into the ResumeFileName of its request and sending it with the resume key taken from the same entry: up to 4 KiB of memory from past the end of the allocation leaks to the server, and for SMB_FIND_FILE_UNIX the NUL scan runs about twice as far before the length is even known. The entry does not have to lie outside the response for that either: a maximal response ends about 120 bytes before the end of the allocation, so an entry in its last bytes with a name just under PATH_MAX has nearly all of that name copied from past the allocation. It needs nothing unusual from the client: a FindNext response that reports no entries and does not end the search makes find_cifs_entry() send the next FindNext at once, carrying whatever was parsed at LastNameOffset, and a search rewind can do the same after its FindFirst. SMB1 is not negotiated by default: this takes a malicious or compromised server, a mount of it with an explicit vers=1.0, which CONFIG_CIFS_ALLOW_INSECURE_LEGACY (default y) permits, and a directory listing on that mount. With KASAN enabled, a response that places the last entry past the buffer, with a large DataOffset and a LastNameOffset near the end of its range, gives: ================================================================== BUG: KASAN: slab-out-of-bounds in cifs_save_resume_key.isra.0+0x7aa/0x7f0 Read of size 4 at addr ffff88807b55c33b by task ls/83 CPU: 1 UID: 0 PID: 83 Comm: ls Not tainted 7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy) Call Trace: <TASK> kasan_report+0xdf/0x1a0 cifs_save_resume_key.isra.0+0x7aa/0x7f0 cifs_readdir+0x1ed6/0x29c0 iterate_dir+0x1c0/0x570 __x64_sys_getdents64+0x133/0x270 do_syscall_64+0x109/0x5d0 entry_SYSCALL_64_after_hwframe+0x77/0x7f </TASK> Allocated by task 83 on cpu 0 at 19.317556s: cifs_buf_get+0x36/0x90 smb_init+0x4f/0x110 CIFSFindNext+0xf7/0x14c0 cifs_readdir+0xf51/0x29c0 The buggy address belongs to the object at ffff88807b558000 which belongs to the cache cifs_request of size 16588 The buggy address is located 623 bytes to the right of allocated 16588-byte region [ffff88807b558000, ffff88807b55c0cc) ================================================================== The four bytes read there are the FileNameLength of the entry, which cifs_fill_dirent() tak ---truncated---
CVE-2026-99426
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: hold server info until cifsd exits The last session reference can be dropped while the cifsd demultiplex thread is still running clean_demultiplex_info(). That thread frees TCP_Server_Info there, racing with cifs_put_tcp_session() as it releases the server crypto state. syzbot reported a KASAN use-after-free in cifs_crypto_secmech_release(). Keep an object reference for the cifsd thread. Defer final crypto, session-key, network namespace, string, and structure cleanup until both the last session reference and the thread reference are dropped. Drop the thread reference after clean_demultiplex_info() has finished using the server. Build-tested with ARCH=arm64 and W=1 for fs/smb/client/connect.o. The KASAN reproducer was not run on the patched kernel.
CVE-2026-99425
2026년 11월 20일Linux 커널에서 다음 취약점이 해결되었습니다: ovl: readdir에서 부모에 대한 참조를 보유 Overlay에서 디렉터리를 나열하면 해제된 dentry를 사용하게 되어 디렉터리를 동시에 위치시키려 할 때 커널이 충돌합니다. 지연이 있을 수 있는 코드에서는 d_parent를 참조와 함께 사용하지 않고, dentry의 이동을 막고 있습니다. ovl_iterate_real(), ovl_need_adjust_d_ino(), ovl_cache_update()는 나열된 디렉터리의 d_parent를 사용하고 해당 디렉터리의 잠금만 보유합니다. 레이어 변경 후 다른 부모 아래의 디렉터리를 찾으면, d_splice_alias()가 그 잠금 없이 이를 이동시키고 이전 부모에 대한 참조를 버립니다. overlay 디렉터리에서 getdents64가 지연된 ovl_iterate_real()으로 인해 하부 계층에서의 이름 바꾸기와 dentry를 이동하는 lookup가 경쟁(Race)했고, 예전 부모의 rmdir 이후 security_inode_getattr()에서 use-after-free가 보고되었습니다. 이를 해결하기 위해 세 함수에서 dget_parent()를 사용합니다. [amir: ovl_need_adjust_d_ino()의 주석 수정]
CVE-2026-99424
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: ovl: 상위 디렉터리를 게시하기 전에 OVL_WHITEOUTS를 설정 복사 중인 디렉터리를 나열하면 readdir 캐시의 사용 후 해제(use-after-free)가 발생합니다. 병합 디렉터리는 실제 상위 디렉터리로 순회해서는 안 됩니다. 이 모드에서 캐시를 refcount를 보지 않고 해제하는 OVL_I(inode)->cache를 해제하는 반면, 병합 모드로 열려 있는 파일은 여전히 이를 사용합니다. ovl_copy_up_workdir()는 상위 엔트리를 설정하기 전에 upper dentry를 게시하고, ovl_dir_open()은 두 시점 모두 잠금 없이 샘플하므로 두 저장 사이에 열려 있으면 상위 디렉터리가 실제 디렉터리로 간주되어 사용될 수 있습니다. 두 저장 사이에 지연이 있으면, 복사-up 중에 디렉터리를 나열한 권한이 없는 프로세스가 "."와 ".."만 보게 되고, 다음 getdents가 다른 디렉터리 서술자의 readdir 캐시를 해제했습니다. OVL_WHITEOUTS를 ovl_inode_update() 이전에 설정하여 ovl_dir_reset()이 ovl_dir_open()와 일치하도록 하고, 경로 타입의 OVL_TYPE_MERGE()를 ovl_dir_open()에서 검사하여, 상위 dentry를 관찰하는 열림이 순서에 상관없이 병합 디렉터리를 실제 디렉터리로 순회하지 않도록 했습니다. [amir: ovl_dir_open()에서 smp_rmb() 대신 OVL_TYPE_MERGE()를 테스트]
CVE-2026-99423
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: take a snapshot of the name for copy up The copy up of a directory reads a freed dentry name when a lookup moves the directory at the same time. A pointer to the name of a dentry is only valid while something stops a move of the dentry. ovl_do_copy_up() keeps a plain copy of c->dentry->d_name in c->destname, and ovl_copy_up_start() only keeps ovl_rename() away. When a lookup finds the same directory under another name after a change to the lower layer, d_splice_alias() moves the dentry and frees its external name. With a delay in ovl_do_copy_up(), a chmod of a lower-only directory with a 60 byte name raced with a rename of that directory in the lower layer and a stat of the new name, and KASAN reported a use-after-free in lookup_noperm_common(). Fix this by using take_dentry_name_snapshot() for c->destname.
CVE-2026-99422
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: ovl: ovl_fix_origin()에서 상위 디렉터리를 핀으로 고정 사용 조회 중 상위 파일 시스템에서 직접 이름 바꾸기를 수행하면 커널이 충돌한다. vfs_setxattr()에 전달되는 dentry는 핀으로 고정되어 있어야 한다. ovl_fix_origin()은 upper->d_parent를 ovl_set_impure()에 참조 없이 전달하고, 조회 과정은 상위 디렉터리에 대한 잠금을 가지지 않는다. 상위 파일 시스템에서 이름을 바꾸면 d_parent가 바뀌고, 자식만 새 부모를 핀로 고정하기 때문에 두 번째 이름 바꾸기와 rmdir으로 인해 해제될 수 있다. ovl_fix_origin()와 ovl_set_impure()에서 지연이 있으면 상위 디렉터리를 두 번 이름 바꾸고 origin xattr가 없는 병합 디렉터리의 조회 도중 중간 부모를 제거하면 vfs_setxattr()에서 KASAN 사용 후 해제(use-after-free)가 발생한다. 오버레이 상위 dentry가 오버레이 부모가 보유하도록 전달해 이 문제를 수정한다. [amir: 보조 함수 ovl_set_impure_dir 추가]
CVE-2026-99421
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: always encode the origin fh when index is enabled On an overlay with index=on,nfs_export=on, copy up of a directory crashes the kernel once an LSM has started to deny CAP_DAC_READ_SEARCH to the mounter, the task that mounted the overlay. The mount and the LSM policy change require root. After that, any user who can write to a directory that exists only in a lower layer triggers the oops by doing so. Before a file or directory that exists only in a lower layer is changed for the first time, overlayfs copies it to the writable upper layer. This is called copy up. On copy up, ovl_get_origin_fh() encodes the file handle of the lower inode, called the origin. It returns NULL if ovl_can_decode_fh() says that the lower filesystem cannot decode handles. Whether the callers can handle NULL depends on the index option: - Without an index, NULL is fine: the callers store an empty origin xattr. - With index enabled, overlayfs keeps entries for copied up inodes in an internal index directory. The name of an index entry is derived from the handle, so ovl_get_origin_fh() must return a handle or an error. The mount only enables the index if ovl_can_decode_fh() succeeds for all layers, but the result can change later. The function checks the export operations of the filesystem and capable(CAP_DAC_READ_SEARCH). Copy up runs with the mounter's credentials, and an LSM can start to deny the capability to those credentials after the mount. ovl_get_origin_fh() then returns NULL with index enabled. This goes wrong in two callers: - With nfs_export=on, copy up of a directory creates an index entry for the directory. ovl_create_index() passes the NULL handle to ovl_get_index_name_fh(), which dereferences it. - If the result changes while mount(2) is still running, ovl_get_indexdir() passes a NULL from ovl_get_origin_fh() to ovl_verify_set_fh() in the same way. Before the commit in the Fixes tag, these two callers encoded the handle themselves, without consulting ovl_can_decode_fh(). Reproduced with a BPF LSM program that started to deny the capability after the mount. An unprivileged touch in a directory that had not been copied up yet oopsed in ovl_get_index_name_fh(). With this patch the touch succeeds and the directory gets its index entry. Fix this by calling ovl_can_decode_fh() in ovl_get_origin_fh() only when index is disabled.
CVE-2026-99420
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: check that the parents of volatile/dirty are dirs An unprivileged user crashes the kernel by mounting overlayfs with the volatile option. A dentry that serves as the parent of a lookup must be a directory. ovl_create_volatile_dirty() walks work/incompat/volatile/dirty by name, and ovl_lookup_or_create() returns an existing entry whatever its type. A file or a symlink that another task creates during the mount becomes the parent of the next lookup, which calls a NULL ->lookup. An unprivileged user mounted overlayfs with "volatile" in a user namespace while a second process created a symlink named work/incompat, and the mount task oopsed on a NULL ->lookup call. Fix this by returning -ENOTDIR from ovl_lookup_or_create() when the caller asked for a directory and the existing entry is a non-dir.
CVE-2026-99419
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: do not copy up a dentry that was removed A change to a removed file through an open descriptor replaces whatever has its old name in the upper layer. Copy up must only create a name in the upper directory, never replace one. After an unlink, an rmdir or a rename over a lower dentry, a dentry that an open file keeps alive still has its old parent and name, but in the upper directory that name is now a whiteout or a new object. ovl_copy_up_workdir() renames the copy over it, which brings back the removed object and destroys whatever took its name. An unprivileged user opened a lower FIFO and unlinked it, root created a file at that name, and fchmod on the old descriptor replaced the file of root with the FIFO. Fix this by looking up the target name of the rename in ovl_copy_up_workdir() with LOOKUP_EXCL, so that copy up fails with -EEXIST if the name is taken, as copy up with O_TMPFILE already does when it links the copy to the name. [amir: use LOOKUP_EXCL instead of relying on d_unhashed()]
CVE-2026-99418
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: do not copy up an xattr value that was never read Copy-up stores uninitialized kernel memory in an xattr of the upper file, where the user can read it. ovl_copy_xattr() may only pass bytes to ovl_do_setxattr() that ovl_do_getxattr() has read. When the read fails with -ERANGE the function asks for the size again, and if the new size fits the buffer it stores the buffer although nothing was read into it. The buffer comes from kvmalloc(), or it still holds the value of the previous xattr. A FUSE lower layer that answers every sized GETXATTR with -ERANGE made copy-up store 4096 bytes that the server never sent, with a kernel pointer in them, as an xattr of the upper file. Fix this by failing the copy-up with -EIO when the size that follows -ERANGE fits the buffer.
CVE-2026-99417
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: fix a torn path in ovl_get_redirect() A hard link of a metacopy file that races with a rename of an ancestor stores a redirect to the wrong lower file. Each component of an absolute redirect must be the name that a dentry has in the parent that the walk continues with. ovl_get_redirect() copies the name under d_lock and calls dget_parent() after the unlock, and the callers for a hard link hold no lock that stops a rename across directories. A rename between the two steps combines the old name with the new parent. With delays in ovl_get_redirect(), an unprivileged user hard-linked a metacopy file while renaming its ancestor to another directory, the stored redirect named another lower path, and after a remount the file showed the data of a root-only file. Fix this by taking the parent first and checking it again under d_lock.
CVE-2026-99416
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: read the nlink xattr of every indexed non-dir With nfs_export=on, data written through a file handle to a lower file, i.e. a file that exists only in a lower layer of the overlay, can be lost on the next mount. A lookup of the file by name then returns -EIO. Also, a file with one name reports st_nlink 2 once it has been copied to the upper layer. After such a file is removed, its file handle can still open it until the next mount. Before a lower file is changed for the first time, overlayfs copies it to the writable upper layer. This is called copy up. The index directory is $workdir/index, where $workdir is the directory given by the workdir= option. Each entry is named after the file handle of a lower inode, so that overlayfs can get from the handle to the copied up inode. With nfs_export=on, copy up indexes every non-directory: it copies the file to an entry in the index directory and then hard links that entry into the upper directory. The index entry is an extra link to the upper inode, so overlayfs stores the link count that users should see in the overlay.nlink xattr. A file can also be opened by handle, either by an NFS client or by a process with CAP_DAC_READ_SEARCH calling open_by_handle_at(). If the file is not in the dcache, its overlay dentry is disconnected, i.e. it has no parent yet. Copy up then creates the index entry but no hard link in the upper directory. The index entry has i_nlink 1 and holds the only copy of the data written to the file. ovl_get_nlink() reads the stored count. Its caller passes a default, which the function returns if there is no stored count. If the lower inode has i_nlink 1, the function returns the default without reading the xattr. That was correct as long as only lower files with multiple links were indexed. On the next mount, ovl_verify_index() looks for orphans, i.e. index entries of files whose last name was removed. For an index entry with i_nlink 1, it passes a default of 0 to ovl_get_nlink() and treats a result of 0 as an orphan. Here the lower inode also has i_nlink 1, so the result is the default. ovl_indexdir_cleanup() then replaces the entry with a whiteout, which in the index marks a file as deleted. The written data is lost. A lookup by name then returns -EIO, because a whiteout as the index entry of a lower file that still exists is a bad index. ovl_get_inode() gets the wrong count the same way. Its default is the i_nlink of the upper inode, which includes the index entry, so a copied up file with one name reports st_nlink 2. When that name is removed, the count drops to 1 rather than 0. ovl_nlink_end() replaces the index entry with a whiteout only at a count of 0, so the entry stays, and the handle of the removed file still opens it. Reproduced by writing through open_by_handle_at() to an uncached lower file with one link. After a remount the data was lost, and the name returned EIO. Fix this by adding an argument to ovl_get_nlink() that says whether the caller found an index entry, and by skipping the xattr only if the caller found none. Known gaps: - An index entry that a kernel without this patch left behind for a removed file now stays, and the handle of that file keeps working. The entry has i_nlink 1 and a stored count of 1, just like the entry of a file that was only written by handle. Without this patch, the next mount treated it as an orphan.
CVE-2026-99415
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: set the revalidate flags after d_instantiate() stat() of a file on an overlayfs mount triggers a kernel warning and fails with ECHILD if another task is creating that file at the same time. This happens on an overlay with a FUSE upper layer, which is the layer where overlayfs creates new files. Write access to a directory on such an overlay is all a user needs to run the two tasks. The revalidate flags are DCACHE_OP_REVALIDATE and DCACHE_OP_WEAK_REVALIDATE. They tell path walk to call ->d_revalidate() or ->d_weak_revalidate() on a dentry, so that the filesystem can check that the cached dentry is still valid. An overlay dentry only has one of these flags if a dentry in one of its layers has it. FUSE dentries have the first one. When a flag is set on an overlay dentry, path walk calls ovl_dentry_revalidate_common(). That function only expects a dentry without an inode in RCU walk, while the dentry is being destroyed. For such a dentry outside of RCU walk, it hits a WARN_ON() and returns -ECHILD. So a negative overlay dentry must never have the flags set. ovl_instantiate() breaks this rule. When a task creates a file, the overlay dentry for the new name is hashed but still negative. ovl_instantiate() then works in this order: - It copies the flags from the new upper dentry to the overlay dentry. - It calls ovl_get_inode(), which can sleep in a getxattr request to the FUSE server. - Only then does it call d_instantiate(). A second task that looks up the name between the first step and the last finds a negative dentry with the flags set and revalidates it. Reproduced with a FUSE server that delays its getxattr reply: stat() of a name that was being created hit the WARN_ON() and failed with ECHILD. Fix this by setting the flags after d_instantiate().
CVE-2026-99414
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: ovl: skip copy up of empty security.capability ovl_copy_xattr() gives up if it can't read an attribute that listxattr() has named. An empty security.capability, which anybody has been able to store on any file for a long time, is such a case: it is listed, and getxattr() has nothing to return for it. A file in a lower layer that carries one can't be copied up: it can't be written to, renamed or have its mode changed. There is nothing to copy if there are no data. Go on with the next one. [amir: treat -EINVAL as no capability too, and do the same in ovl_copy_up_meta_inode_data()]
CVE-2026-99413
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: fix buffer overruns in xfs_ioc_attr_list When we converted the al_offset array in struct xfs_attrlist into a VLA, the size of the object shrank by 4 bytes. Unfortunately, the buffer size validation in the attrlist ioctl wasn't updated to notice this, so the al_offset[0] assignment blindly writes off the end of the buffer. LOLLM noticed the omitted check and complained.
CVE-2026-99412
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: avoid cross-rtgroup reaping after a repair LOLLM notices that the extents stored in a xrtb_bitmap (aka xfs_rtblock bitmap) can span multiple rtgroups due to two circumstances. The first is that the size of an rtgroup is an exact power of two, which means that rtgroups are adjacent in the segmented xfs_rtblock_t address space. This is fairly common to reduce the amount of multiplication and division needed to handle space on the rt volume. The second is that (unlike in the original rtgroups design), rtgroups do not have fixed-location metadata like AGs do, which means that there's nothing to force a break between rtgroups. Therefore, we must loop through the rtgroups in xreap_rtmeta_extent to avoid running off the end of an rtgroup while reaping.