총 15,720건
CVE-2026-99246
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tipc: 노드 리셋 트레이스 덤프를 노드 락으로 보호 tipc_node_reset_links 트레이스 이벤트는 tipc_node_dump()에 노드의 링크 항목을 순회하도록 요청한다. 링크 데이터를 요청하는 다른 노드 이벤트와 달리, 이 이벤트는 노드 락 없이 실행된다. 이로 인해 트레이스 콜백이 덤프하는 동안 베어러 해제가 링크를 해제할 수 있다: CPU 0 CPU 1 trace_tipc_node_reset_links() tipc_node_dump() l = n->links[0].link tipc_node_write_lock() kfree(l) n->links[0].link = NULL tipc_node_write_unlock() tipc_link_dump(l) tipc_link_dump()는 이후에 오래된 포인터를 역참조한다. KASAN이 다음을 보고했다: BUG: KASAN: slab-use-after-free in tipc_link_dump Read of size 4 by task poc/115 Call Trace: tipc_link_dump+0x10cb/0x16b0 tipc_node_dump+0x4bb/0x740 trace_event_raw_event_tipc_node_class+0x258/0x360 tipc_node_reset_links+0x14d/0x1a0 tipc_rcv+0x13f5/0x3030 tipc_udp_recv+0x4e3/0x670 Allocated by task 0: tipc_link_create+0x1e1/0x1020 tipc_node_check_dest+0x7d2/0x11a0 tipc_disc_rcv+0xdbf/0x1430 Freed by task 89: kfree+0x131/0x3c0 tipc_node_link_down+0x267/0x4b0 tipc_node_delete_links+0xec/0x160 bearer_disable+0x107/0x260 트레이스 이벤트 주위에 노드 쓰기 락을 취한다. 이는 덤프를 tipc_node_link_down(delete=true)과 직렬화하여, 동일한 쓰기 락 아래에서 링크를 해제하는 것을 방지한다.
CVE-2026-99245
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: KEYS: Fix key_reject_and_link() race with keyring restriction The restrict_link check in key_reject_and_link() is done before taking the keyring semaphore, racing with a concurrent keyring_restrict() that installs the restriction while holding the semaphore in write mode. Move the check to after __key_link_lock(), so it is done under the semaphore, matching the pattern used in __key_create_or_update().
CVE-2026-99244
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: pid_namespace: prevent TIF_NOTIFY_SIGNAL from interrupting the reaper Since commit 7fea700e04bd ("zap_pid_ns_processes: clear TIF_NOTIFY_SIGNAL along with TIF_SIGPENDING") zap_pid_ns_processes() clears TIF_NOTIFY_SIGNAL before every kernel_wait4() call. Otherwise kernel_wait4() doesn't sleep and returns -ERESTARTSYS if signal_pending() is true and the reaper busy-waits. But clearing TIF_NOTIFY_SIGNAL doesn't fix it. It can get raised again. For example, klp_send_signals() sets it raw against any task that hasn't transitioned yet. And it keeps sending it until the livepatch finishes. The sleep loop waiting for pid_allocated to drop has the same problem and it doesn't even clear anything. So a schedule() in TASK_INTERRUPTIBLE returns immediately. Use a no_notify_signal guard. signal_pending() will ignore TIF_NOTIFY_SIGNAL and the pid namespace reaper sleeps until a child exits or free_pid() wakes it.
CVE-2026-99242
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: ntfs: fix race between fallocate and mmap reads The fallocate implementation only takes invalidate_lock for punch hole, collapse range, and insert range operations. For standard allocation modes (mode == 0, FALLOC_FL_KEEP_SIZE), the lock is not held. During ntfs_attr_fallocate(), new clusters are mapped to the runlist via ntfs_attr_map_cluster() before being zeroed by ntfs_dio_zero_range(). This creates a window where concurrent mmap page faults can read uninitialized disk data. Since mmap uses filemap_fault() which takes invalidate_lock in shared mode, it can fault in pages during this window and expose old disk contents to userspace. This is an information leak and data integrity issue. Fix by taking invalidate_lock for all fallocate operations, not just for punch/collapse/insert modes. This prevents concurrent page faults from accessing unzeroed clusters during the allocation window.
CVE-2026-99241
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: ntfs: take invalidate_lock in ntfs_filemap_page_mkwrite() ntfs_filemap_page_mkwrite() calls iomap_page_mkwrite() without holding mapping->invalidate_lock, so a concurrent truncate or fallocate can be in the middle of invalidating pagecache and rewriting the runlist while the write fault maps blocks and dirties the folio. This races with ntfs_attr_fallocate(), which merges clusters into the in-memory runlist, drops the runlist lock, and only afterwards zeroes the newly allocated clusters on disk; and with the punch-hole/insert/collapse paths that free clusters after truncating the cache. Per Documentation/filesystems/locking.rst, ->page_mkwrite() must ensure there are no truncate/invalidate races, "usually mapping->invalidate_lock is suitable for proper serialization". xfs takes its mmaplock (= the invalidate_lock rwsem) shared in exactly this path. Take invalidate_lock shared around iomap_page_mkwrite(). The read-only fault path is already covered because filemap_fault() itself grabs invalidate_lock shared on instantiation/read paths; only page_mkwrite was bypassing it in this driver.
CVE-2026-99240
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: mm/damon/core: error damos_commit_quota_goal() for zero target_value Patch series "mm/damon: move zero damos quota target_value handling to the core layer". Having zero DAMOS quota target value can cause division by zero. DAMON API callers are checking the target value parameters to avoid that. It is easy to make mistakes in some of the multiple API callers. Move that to the core layer. Patch 1 adds the corner case handling into the core layer DAMON parameters validation logic. Patches 2 and 3 remove no more needed DAMON API callers side handling of the corner case in DAMON_LRU_SORT and DMON_SAMPLIE_MTIER, respectively. This patch (of 3): If a DAMOS scheme has a damos_quota_goal of zero target_value, damos_quota_goal() could trigger division-by-zero error. Hence each DAMON API callers should do the zero target_value validation. It is easy to make mistakes. Actually such bugs in DAMON_LRU_SORT and DAMON_SAMPLE_MTIER were found and fixed [1]. It is better to handle the corner case only once in the core layer, instead of multiple places in all DAMON API callers. One straightforward option is using an alternative denominator for the corner case in the damos_quota_goal(). However, the zero target_value is meaningless. In this case, the quota goal is always evaluated as achieved or over-achieved. The quota will only keep being reduced. Simply avoid using zero target_value by adding a check in the core layer DAMOS quota goal parameters validation/commit path, damos_commit_quota_goal(). Update it to return an error in the case. Also update its caller to propagate the error.
CVE-2026-99239
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: Bluetooth: L2CAP: chan에 이미 conn이 있으면 __l2cap_chan_add를 거부함 l2cap_chan은 최대 한 번만 l2cap_conn에 연결될 수 있다. 이는 여러 곳에서 가정되며, 예를 들어 l2cap_chan_del 정리 과정에서 그렇다. 불변 조건이 위배되는 TOCTOU 경쟁 조건이 존재한다: [작업 1] [작업 2] l2cap_chan_connect l2cap_sock_bind l2cap_chan_lock lock_sock l2cap_state_change if (sk->sk_state != BT_OPEN) chan->state = BT_CONNECT l2cap_sock_state_change_cb chan->state = BT_BOUND sk->sk_state = BT_BOUND lock_sock <------------------ release_sock sk->sk_state = BT_CONNECT l2cap_sock_connect()는 sk->sk_state를 확인하지 않으므로, chan->state가 이제 BT_BOUND이 되어 이후 connect()가 두 번째 __l2cap_chan_add를 호출하게 된다. __l2cap_chan_add에서 WARN_ON_ONCE로 불변 조건을 명시적으로 문서화하고 검사한다. 이 조건이 위배될 수 있는 유일한 호출 지점은 l2cap_chan_connect이므로, chan->state에 의존하지 않도록 사전 검사를 추가한다. 현재 chan->state 읽기/쓰기는 적절히 보호되지 않아 다른 TOCTOU 문제가 발생할 수 있다. l2cap_sock_bind()에 l2cap_lock_chan을 추가하여 chan->state 쓰기를 보호한다.
CVE-2026-99238
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tracing: 영구 인스턴스에서 모듈을 업데이트할 때 trace_types_lock을 유지함 trace_module_record()는 trace_types_lock 없이 모듈 노티파이어에서 ftrace_trace_arrays를 순회한다. 인스턴스의 동시 rmdir이 해당 락 하에서 리스트에서 제거하고 해제하므로, 모듈 로드 또는 언로드가 해제된 trace_array로 접근할 수 있다.
CVE-2026-99237
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tracing: 마지막 부팅 데이터를 리더에서 재설정할 때 trace_types_lock을 유지함 update_last_data_if_empty()는 tracing_open()에서 O_TRUNC와 함께, tracing_read_pipe() 및 tracing_buffers_read()에서 trace_types_lock 없이 호출된다. 두 리더가 모두 LAST_BOOT 테스트를 통과하여 module_delta를 두 번 해제할 수 있으며, 모듈 알림자는 module_delta가 해제되는 동안 이를 업데이트할 수 있다. 해당 경로에서 trace_types_lock을 획득하고 이미 이를 보유한 호출자는 잠금 해제된 변형을 유지한다.
CVE-2026-99236
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tracing: 불완전한 이벤트 필터 표현식을 거부함 비어 있지 않은 표현식은 일반적으로 predicate_parse()의 내부 루프에서 종료되며, 이 루프는 최종 처리로 점프하기 전에 보류 중인 논리 연산자를 해결한다. 입력이 연산자 뒤에 끝나고, 그 뒤에 단항 '!' 토큰이 올 수 있는 경우, 외부 루프는 해결되지 않은 연산자 상태로 계속 진행된다. 예를 들어, "common_pid == 1 || common_pid == 2 &&"는 prog[0].target을 -1로 남긴다. 두 번째 패스는 forward-jump 검사가 이를 거부하기 전에 prog[-1]을 읽는다. 인접한 슬랩 내용에 따라, forward-only 검사를 통과하는 분기 대상에 범위 밖 단어를 복사할 수도 있다. 자기 자신을 대상으로 하는 perf tracepoint 카운팅 이벤트는 PERF_EVENT_IOC_SET_FILTER를 통해 이 경로에 도달할 수 있다. 이미 술어가 파싱된 경우 외부 루프의 계속 진행을 거부한다. 이는 비어 있지 않은 표현식이 내부 루프가 연산자를 해결한 후에만 최종 처리에 도달하도록 보장한다. 술어가 없는 입력에 대해서는 기존의 필터 없음 오류를 유지한다. 후행 논리 연산자와 단항 부정에 대한 회귀 테스트를 추가한다.
CVE-2026-99235
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tracing: 호환 가능한 히스토그램 대신 이벤트 파일을 저장 create_field_var_hist()는 필드 변수를 제공하기 위해 일치하는 이벤트에 히스토그램을 생성하고, 나중에 해제할 수 있도록 대상에 기록한다: hist_data = find_compatible_hist(target_hist_data, file); ... /* 호환 가능한 히스토그램 정보 저장 */ var_hist->hist_data = hist_data; hist_data는 생성된 히스토그램이 아니다. 이미 존재하는 히스토그램으로, 새 히스토그램이 그 키를 복사한다. 저장된 포인터의 단일 사용자는 대상이 제거될 때 실행되는 unregister_field_var_hists()이다: file = hist_data->field_var_hists[i]->hist_data->event_file; find_compatible_hist()는 키만으로 일치시키므로 자체 변수 없는 히스토그램을 선택할 수 있다. check_var_refs()는 false를 반환하고 사용자는 대상이 여전히 가리키고 있을 때 이를 제거할 수 있다: BUG: KASAN: slab-use-after-free in event_hist_trigger_free+0x2b2/0x320 Read of size 8 at addr ffff8880093b90e0 by task init/1 작업 1에 의해 해제됨: kfree+0x154/0x420 event_hist_trigger_free+0x1d5/0x320 event_hist_trigger_parse+0x35f3/0x69e0 trigger_process_regex+0x1a6/0x250 이벤트 파일을 대신 저장한다. 이것이 모든 역참조가 필요로 하는 것이며, 사용자가 트리거를 제거해도 사라지지 않는다.
CVE-2026-99234
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: tracing: Unregister field variable histograms when the command fails An action that names a field on another event needs that field as a variable, so create_field_var_hist() registers a second hist trigger on that event to provide it, and records it in target_hist_data->field_var_hists[]. If a later part of the same command fails, create_actions() returns an error and event_hist_trigger_parse() jumps to out_free. The write fails with -EINVAL and sched_switch gets no trigger, but: # echo 'hist:keys=pid:ts0=common_timestamp.usecs' >> \ events/sched/sched_waking/trigger # echo 'my_synth u64 lat; int a; int b' >> synthetic_events # echo 'hist:keys=next_pid:wakeup_lat=common_timestamp.usecs-$ts0:\ onmatch(sched.sched_waking).my_synth($wakeup_lat,prio,nosuchfld)'\ >> events/sched/sched_switch/trigger # cat events/sched/sched_waking/trigger hist:keys=pid:vals=hitcount:ts0=common_timestamp.usecs:sort=hitcount:size=2048:clock=global [active] hist:keys=pid:vals=hitcount:synthetic_prio=prio:sort=hitcount:size=2048 [active] The second histogram is the one created for 'prio'. It is still active and still counting. out_free reaches destroy_field_var_hists(), which frees the field_var_hists[] entries, but never unregister_field_var_hists(), which is what removes the triggers and runs only from event_hist_trigger_free(). The entry is freed and the trigger is left with nothing tracking it. Unregister the field variable histograms in out_free as well, and record each one as soon as its trigger is registered rather than after the lookup that follows it, so no exit can leave a registered trigger untracked. The entry then belongs to field_var_hists[] and is released by destroy_field_var_hists(), so freeing it on that exit would be a double free.
CVE-2026-99233
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: tracing/histograms: synth_event 참조 카운트를 업데이트할 때 event_call 신원을 검증함 event_hist_trigger_parse()와 hist_unreg_all()에서 히스토그램 등록 및 등록 해제 경로는 trace_event_name(file->event_call)을 사용하여 find_synth_event()를 조회하고 일치하는 경우 se->ref를 조정한다. find_synth_event()는 이벤트 베이스 이름만 비교하기 때문에, 베이스 이름이 합성 이벤트와 일치하는 비합성 추적 이벤트에 히스토그램을 등록하거나 제거하면 합성 이벤트의 참조 카운트가 잘못 수정된다. 만약 합성 이벤트가 생성되기 전에 비합성 이벤트에 히스토그램이 등록되고 이후 제거되면, se->ref가 증가 없이 감소되어 합성 이벤트가 활성 히스토그램 액션이 여전히 포인터를 보유한 상태에서 해제될 수 있다. se->ref를 조정하기 전에 &se->call이 file->event_call과 일치하는지 확인하는 find_synth_event_call()을 도입하였다.
CVE-2026-99232
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: tracing/syscalls: Use copy_from_user for the faultable syscall buffer syscall_copy_user_array() copies the buffer argument of faultable syscalls (write, pwrite64, ...) with __copy_from_user(), which skips access_ok(). Use copy_from_user() instead so a non-user address is rejected and the entry is recorded as faulted. It could be a security concern for machines that trust perf a bit too much.
CVE-2026-99231
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: io_uring/waitid: ->head를 지우기 전에 요청 소유 io_waitid_remove_wq()는 ->head가 설정된 경우에만 대기 큐 락을 획득한다. io_waitid_wait()는 요청의 소유자가 되기 위해 ->refs를 증가시키기 전에 가장 먼저 ->head를 지운다. 만약 그 시점에 다른 누군가가 요청을 소유하고 있다면, 깨어나기 핸들러가 여전히 요청을 만지는 동안 요청을 완료하는 것을 막을 수 없다: CPU0 (io_waitid_wait) CPU1 (io_waitid, 참조 보유) list_del_init(&wait->entry) smp_store_release(&iw->head, NULL) __do_wait()가 다른 자식을 찾음 io_waitid_remove_wq() // ->head == NULL, 락 없음 io_waitid_finish(), IOU_COMPLETE // 요청이 해제되고 재사용됨 atomic_fetch_inc(&iw->refs) __io_waitid_cancel()도 해당 창에서 요청을 주장하면 동일한 문제가 발생한다. ->refs는 요청의 opcode별 데이터 일부이므로, 이는 요청의 다음 사용자가 거기에 보관하는 값을 증가시킨다. 만약 그 값이 0이라면, 핸들러는 자신이 요청을 소유한다고 판단하고 io_waitid_cb()를 큐에 넣는다. 지연으로 인해 창이 열려 있고, 요청이 데이터를 기다리는 수신에 재사용되는 경우: BUG: KASAN: slab-use-after-free in __wake_up_common+0x1ca/0x1f0 __wake_up_sync_key+0x36/0x50 sock_def_readable+0xf1/0x420 unix_stream_sendmsg+0x60b/0x1110 작업 87에 의해 할당됨: io_arm_apoll+0x1ed/0x940 작업 87에 의해 해제됨: __io_submit_flush_completions+0x118d/0x1a10 tctx_task_work_run+0x327/0x950 핸들러가 요청을 소유할 때만 ->head를 지운다. 그렇지 않으면 소유자는 ->head가 설정된 것을 발견하고 핸들러 호출자가 보유한 락을 기다려야 한다. 이미 삭제된 항목을 다시 삭제하는 것은 무해하다.
CVE-2026-99230
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: io_uring/cmd: don't leave list poison in ->hash_node io_uring_cmd_del_cancelable() uses hlist_del() to take a command off ->cancelable_uring_cmd, which leaves LIST_POISON1/2 behind in ->hash_node. Requests are recycled through the request cache without being reinitialised, and not every user of ->hash_node sets it up before it is used: If a vectored futex wait is woken while futex_wait_multiple_setup() is still queueing the futexes, io_futexv_wait() doesn't add the request to ->futex_list, and leaves the completion to the task_work queued by the wake up. io_futexv_complete() ends in __io_futex_complete(), whose hlist_del_init() is fine for a request that is unhashed, which is how all other users of the node leave it. If the request was a cancelable uring_cmd in its previous life, e.g. a ublk FETCH_REQ, it writes through LIST_POISON2: Oops: general protection fault, probably for non-canonical address KASAN: maybe wild-memory-access in range [0xdead000000000120-...] RIP: 0010:io_futexv_complete+0x219/0x420 Call Trace: tctx_task_work_run+0x804/0x950 tctx_task_work+0x71/0xa0 task_work_run+0x118/0x200 Leave the node unhashed.
CVE-2026-99229
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: io_uring/wait: don't spin on a stuck overflow list As long as IO_CHECK_CQ_OVERFLOW_BIT is set, io_cqring_wait_schedule() returns right away, before it gets to look at signals or arms the timeout, for io_cqring_wait() to flush the overflow list. If that doesn't empty the list, and the CQ ring doesn't hold the number of events the caller wants, the loop starts over, with the same result. The task spins in the kernel, and can't be killed. The assumption is that this can't happen: if CQEs can't be flushed, the ring is full, and min_events is capped to the size of the ring. But: - With IORING_SETUP_CQE_MIXED a 32b CQE needs two contiguous entries. It is stuck on the list if a single one is free, and then the ring holds less than cq_entries events. A single threaded application that asks for as many events as the ring has entries never gets out of io_uring_enter(). - Whether the ring is full is up to the CQ head, which the application can write to. While one thread waits for events on an empty ring, another one can move the head back so that the ring looks full and have a CQE overflow. The waiter can't be stopped any more, not even by SIGKILL. Only the application can make room in the CQ ring. Return to it if the list could not be flushed.
CVE-2026-99228
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: io_uring/io-wq: don't lose the signal that ends work When a thread exits, only its tracked requests are cancelled. Then its io-wq is torn down. io_wq_exit_workers() signals every worker, to get it out of an interruptible sleep, and waits for all of them to exit. Before they do, they go through the work that is left. Unbounded work is cancelled. Bounded work is run, as it is expected to end by itself. Not all of it does. An open has no file yet, so it counts as bounded, and the open of a FIFO waits for the other end. That is what the signal is for. But the workers are signalled once, and a worker that hasn't started the work by then loses the signal: io_wq_exit_workers() io_worker_handle_work() io_wq_worker_wake() set TIF_NOTIFY_SIGNAL io_assign_current_work() io_run_task_work() clear TIF_NOTIFY_SIGNAL io_wq_submit_work() fifo_open() wait_for_partner() wait_for_completion_timeout() The thread never gets out of do_exit(): IORING_OP_OPENAT of a FIFO without a writer, IOSQE_ASYNC exit of the thread that has submitted it hangs in more than 9 of 10 attempts (4 CPUs, KVM), until the process is killed. Set TIF_NOTIFY_SIGNAL for bounded work that is started with IO_WQ_BIT_EXIT set. The bit is set before the workers are signalled, and it is tested after the flag has been cleared, with clear_notify_signal() providing the barrier. So either the flag stays, or the bit is seen. Work that is started while the io-wq exits is treated like work that is being run at that time: it isn't interrupted unless it waits interruptibly.
CVE-2026-99227
2026년 11월 3일Linux 커널에서 다음 취약점이 해결되었다: io_uring/waitid: 취소 참조 랩핑 방지 io_waitid는 취소 상태를 ->refs의 31번째 비트에 패킹하고 30:0 비트를 31비트 참조 카운터로 사용한다: #define IO_WAITID_CANCEL_FLAG BIT(31) #define IO_WAITID_REF_MASK GENMASK(30, 0) __io_waitid_cancel()은 요청을 취소된 것으로 표시한 후 ->refs의 낮은 비트를 증가시켜 완료 소유권을 주장한다. 다른 경로가 요청을 소유할 때, 증가가 발생하지만 취소는 false를 반환한다. 요청은 취소로 계속 발견 가능하므로, 반복된 실패 시도가 31비트 참조 필드를 0으로 랩핑할 수 있다. 이후 취소는 소유권을 주장하고 요청을 두 번째로 완료할 수 있다. 취소 플래그를 설정할 때 atomic_fetch_or()를 사용하고 이전 플래그 값을 검사한다. 첫 번째 취소 시도는 기존 소유권 증가를 계속하여 깨어남과 발행자 인계 의미를 유지한다. 이후 시도는 취소 플래그를 보고 참조 필드를 증가시키지 않고 반환한다. 이로 인해 반복된 실패한 취소 시도가 멱등성을 가지면서 첫 번째 취소 상태 전환은 변경되지 않는다.
CVE-2026-99226
2026년 11월 3일In the Linux kernel, the following vulnerability has been resolved: keys: Avoid the owner account dereference in named keyring lookup Named keyring lookup must keep the storage containing the owner UID alive through the namespace mapping check. find_keyring_by_name() reads keyring->user->uid under keyring_name_lock, but that lock protects the keyring's name entry and allocation, not its separate key_user. A named session-keyring join can overlap a privileged KEYCTL_CHOWN on another CPU. If the keyring holds the last reference to its old dynamic key_user and the ownership transfer succeeds, the following ordering is possible: Named join Chown find_keyring_by_name() keyctl_chown_key() read_lock(keyring_name_lock) down_write(key->sem) load old keyring->user replace key->user and key->uid up_write(key->sem) key_put(key) key_user_put(old user): free read old user->uid read_unlock(keyring_name_lock) Chown neither takes keyring_name_lock nor key_session_mutex, so it can free the old account between the pointer load and the UID read. The lookup then reads freed memory even though the keyring itself is alive. Use keyring->uid for the mapping check. key_alloc() initializes this inline owner UID and keyctl_chown_key() updates it on chown. The existing name lock keeps its containing keyring allocated throughout the check, so lookup no longer depends on the account's lifetime. This also matches the owner UID used by the permission check. KASAN report as below: BUG: KASAN: slab-use-after-free in find_keyring_by_name+0x577/0x5d0 Read of size 4 at addr ffff8881128ae2ec by task keycase/500