총 16,343건
CVE-2026-89715
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: NFS/localio: fix ref leak on nfs_uuid_add_file failure When nfs_uuid_add_file() races with nfs_uuid_put() tearing down uuid->net, it returns -ENXIO without publishing nfl->nfs_uuid via rcu_assign_pointer(). nfs_open_local_fh() then enters its error branch and only releases the slot's file ref and its paired net ref plus its own entry-time net ref, while the close path is a no-op: nfs_close_local_fh() nfs_uuid = rcu_dereference(nfl->nfs_uuid); if (!nfs_uuid) { rcu_read_unlock(); return; } /* always */ nfsd_open_local_fh() returns localio holding a caller-owned +1 nfsd_file reference (from nfsd_file_get() after nfsd_file_acquire_local()) and an entry-time nfsd_net reference (from its first nfsd_net_try_get()) embedded as nf->nf_net. Both are leaked on the failure path, pinning one nfsd_file (and the underlying struct file, dentry, inode) and one nfsd_net_ref per occurrence, which blocks nfsd_net and netns teardown. Fix by releasing the caller-owned file ref and its net ref through the existing helper, using a stack-local RCU pointer so the helper can xchg it out, then returning -ENXIO so callers do not dereference a localio whose slot has been cleared: struct nfsd_file __rcu *tmp = RCU_INITIALIZER(localio); nfs_to_nfsd_file_put_local(pnf); nfs_to_nfsd_file_put_local(&tmp); localio = ERR_PTR(-ENXIO); The trailing nfs_to_nfsd_net_put(net) continues to release the outer net ref, so all three nfsd_net_try_get() increments are balanced on the error branch.
CVE-2026-89714
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: NFS: fix delegation_hash_table leak when nfs4_server_common_setup() fails nfs4_server_common_setup() allocates server->delegation_hash_table first, but server->destroy - the only path that frees the table via nfs4_destroy_server() - is not assigned until the very end of the function. If any intermediate step fails (the is_ds_only_client() check, nfs4_init_session(), nfs4_get_rootfh(), or nfs_probe_server()), the function returns with server->destroy still NULL, so the caller's nfs_free_server() skips the destroy callback and the hash table is leaked (4 KiB per attempt with the default delegation watermark). This is trivially reachable from userspace: every failed NFSv4 mount leaks one allocation. A client that persistently retries a mount that cannot succeed leaks kernel memory without bound. Observed in production where a Longhorn backup poller retried mount.nfs4 against an NFSv3-only server roughly 10 times per second, leaking ~3.4 GiB of unreclaimable slab (kmalloc-rnd-13-4k) per day; the node accumulated 12 GiB of leaked slab before the source was identified via the kmem:kmalloc tracepoint (call_site=nfs4_delegation_hash_alloc). Reproducer: # server exports NFSv3 only (or export path absent for v4) while :; do mount -t nfs4 <server>:/missing /mnt; done # watch SUnreclaim in /proc/meminfo grow 4 KiB per iteration Free the table on the error paths between the allocation and the assignment of server->destroy.
CVE-2026-89713
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: NFSD: inode 락 하에서 잘림 권한 확인 nfsd_setattr()는 inode_lock()을 획득하기 전에 크기 업데이트에 NFSD_MAY_TRUNC이 필요한지 확인한다. 이 비교는 락이 없는 읽기로 샘플링된 파일 크기를 사용하지만, 실제 ATTR_SIZE 업데이트는 inode_lock() 하에서 notify_change()에 의해 나중에 적용된다. 이로 인해 추가 전용 파일에 대해 TOCTOU(시간-경쟁 조건) 창이 발생한다. 클라이언트가 락이 없는 샘플 시점에 파일 크기를 줄이지 않는 SETATTR을 보내면, 동시 추가 작업이 nfsd_setattr()이 inode_lock()을 획득하기 전에 파일을 확장할 수 있다. 그런 다음 notify_change()는 IS_APPEND(inode)를 거부하는 NFSD_MAY_TRUNC 검사 없이 실제 잘림을 적용한다. VFS truncate 시스템 호출 경로는 notify_change()를 호출하기 전에 자체 추가 전용 검사를 수행하므로, NFSD는 변경하려는 락이 걸린 크기에 대해 이 결정을 내려야 한다. 쓰기 횟수 획득을 잘림 권한 검사와 분리한다. get_write_access()는 락이 걸린 setattr 작업 전에 유지하고, inode_lock()이 획득된 후 notify_change(ATTR_SIZE) 전에 요청된 크기가 i_size_read(inode)보다 작은지 다시 확인한다. 이는 단순한 락이 없는 inode->i_size 로드도 방지한다.
CVE-2026-89712
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: NFSD: nfsd_ssc_lock 해제 후 ssc_expire_umount 순회 재시작 nfsd4_ssc_expire_umount()는 list_for_each_entry_safe(ni, tmp, ...)를 사용하여 nn->nfsd_ssc_mount_list를 순회한다. 만료된 각 항목에 대해 nsui_busy를 true로 설정하고, nfsd_ssc_lock을 해제하여 소스 vfsmount에서 mntput()을 실행한 후, 다시 락을 획득하여 해당 항목을 list_del 및 kfree하고 매크로의 저장된 tmp 포인터를 통해 순회를 계속한다. nsui_busy 플래그는 락 해제 구간 동안 현재 ni를 동시 실행 중인 nfsd4_ssc_setup_dul() 탐색기로부터 보호하지만 tmp는 고정하지 않는다. 다른 nfsd RPC 스레드가 소스 서버 마운트에 실패하고 같은 구간 동안 nfsd4_ssc_cancel_dul()에 도달하면 nfsd_ssc_lock을 획득하고 자신의 ssc_umount 항목을 list_del 및 kfree한 후 락을 해제한다. 만약 그 항목이 expire 순회의 저장된 tmp라면, 다음 반복에서 해제된 nfsd4_ssc_umount_item을 역참조하게 된다. mntput() 락 해제 구간 후 순회를 리스트 헤드부터 재시작하여 락 해제 동안 저장된 다음 포인터가 남아있지 않도록 한다. 리스트는 활성 인터서버 소스 마운트 수(일반적으로 적음)로 제한되며 expire 지연 작업은 IO마다가 아니라 주기적으로 실행되므로 재시작 비용은 적다.
CVE-2026-89711
2026년 9월 12일리눅스 커널에서 다음 취약점이 해결되었다: NFSD: nfsd_mode_check에서 결함이 있는 WARN_ON_ONCE 제거 커밋 e75b23f9e323("nfsd: 디렉터리의 fh_verify에서 d_can_lookup 확인")의 헤더는 nfsd_mode_check()에 WARN_ON_ONCE를 추가한 근거가 된 가정을 상세히 설명하는데, 그 가정은 무효하다(NFS 재내보내기 경우). NFSD가 NFS 파일시스템을 내보낼 때 nfsd_mode_check()가 i_op->lookup이 없는 @dentry를 만날 가능성이 매우 높다(nfs_fhget()의 NFS_ATTR_FATTR_MOUNTPOINT 및 NFS_ATTR_FATTR_V4_REFERRAL 처리, d_flags_for_inode() 참조). 따라서 nfsd_mode_check()의 WARN_ON_ONCE()를 제거한다. 해당 분기에서의 nfserr_notdir 반환은 유지해야 한다. 이는 이후 lookup_one_unlocked() -> __lookup_slow() 경로를 보호하는데, 이 경로는 NULL 체크 없이 inode->i_op->lookup()을 호출하므로 nfserr_notdir 반환이 클라이언트가 그러한 @dentry에 대해 NULL 메서드 포인터 역참조를 방지한다.
CVE-2026-89710
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: NFSv4.1: fix layout segment leak on the pnfs_layout_process() forget path When the server returns a new layout stateid while a valid one is still held, pnfs_layout_process() calls pnfs_mark_matching_lsegs_return() on the on-stack free_me list and jumps to out_forget. Segments whose reference count drops to zero are unlinked from lo->plh_segs and moved to free_me by mark_lseg_invalid(); for an idle cached segment the layout header holds the only reference, so this happens on the first decrement. out_forget never drains free_me -- only the success path calls pnfs_free_lseg_list(). Commit 814b84971388 ("pNFS/NFSv4: Fix a layout segment leak in pnfs_layout_process()") added the drain; commit 08bd8dbe8882 ("pNFS/NFSv4: Try to return invalid layout in pnfs_layout_process()") removed it while switching the destination to lo->plh_return_segs, which is drained elsewhere. Commit fb700ef02676 ("NFSv4.1: Simplify layout return in pnfs_layout_process()") switched the destination back to free_me without restoring the drain. Restore the pnfs_free_lseg_list() call.
CVE-2026-89709
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: lockd, nfsd: RCU 보호 nlmsvc_ops 디스패치 nlmsvc_ops는 nfsd_lockd_init()에 의해 게시되고 nfsd_lockd_shutdown()에 의해 일반 저장 방식으로 초기화되며, lockd는 fs/lockd/svcsubs.c의 디스패치 지점에서 이를 보호 없이 역참조한다. 이 포인터는 nfsd의 .rodata를 가리키고 fopen/fclose 콜백은 nfsd의 .text에 존재하므로, rmmod nfsd 이후의 오래된 로드는 NULL 역참조 또는 모듈 텍스트 해제 후 사용(use-after-free)을 초래한다. nlmsvc_ops를 __rcu로 선언하고 rcu_assign_pointer()를 통해 게시하며 RCU_INIT_POINTER() + synchronize_rcu()를 통해 초기화한다. nlmsvc_binding에 struct module *owner 필드를 추가하고 try_module_get/module_put으로 간접 호출 시 모듈을 고정한다. 바인딩이 해제될 때는 struct file 참조 누수를 방지하기 위해 fput()으로 대체한다.
CVE-2026-89708
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: 세션 종료 시 use-after-free 문제를 해결하기 위해 cl_cb_session을 RCU 보호로 변경 DESTROY_SESSION 이후 세션별 종료 경로가 세션을 해제할 수 있는데, rpciod는 여전히 clp->cl_cb_session을 역참조하는 진행 중인 콜백 rpc_task를 보유하고 있다. nfsd4_probe_callback_sync()는 cl_callback_wq를 플러시하지만, nfsd4_run_cb_work()가 rpc_call_async()를 호출한 후에는 rpc_task가 rpciod에 남아 있으며, 작업 큐 플러시는 이를 기다리지 않는다. rpc_shutdown_client()는 rpciod 작업을 소진하지만 1초 대기 이벤트 타임아웃을 사용한다 — rpc_delay()에 갇힌 작업들(예: 2초 NFS4ERR_DELAY 재시도)은 소진을 초과할 수 있다. 종료 경로 rpciod ------------ ------ unhash_session(ses) nfsd4_probe_callback_sync(clp) flush_workqueue(cl_callback_wq) /* 반환; rpc_task는 여전히 살아 있음 */ nfsd4_put_session_locked(ses) free_session(ses) -> kfree(ses) nfsd4_cb_sequence_done() cb_clp->cl_cb_session을 읽음 /* 해제된 슬랩 */ 두 번째 취약점 창은 nfsd4_process_cb_update()에 존재한다. __nfsd4_find_backchannel()가 NULL을 반환하는데, 이는 unhash_session()이 이미 파괴된 세션을 cl_sessions에서 제거했기 때문이다. setup_callback_client()는 v4.1 조기 반환을 수행하여 clp->cl_cb_session = ses 할당이 발생하지 않고, 해당 필드는 곧 해제될 세션을 가리키는 포인터를 유지한다. 두 문제 모두 cl_cb_session을 RCU 보호 포인터로 변환하여 수정한다: - setup_callback_client()에서 cl_cb_session = ses 할당을 rpc_create() 성공 후로 이동하여 작동하는 백채널이 존재할 때만 게시되도록 한다. nfsd4_process_cb_update()의 오류 반환 시 cl_cb_session을 초기화한다. 두 저장 모두 rcu_assign_pointer()를 사용한다. - cl_cb_session에 __rcu 주석을 추가한다. 모든 rpciod 측 읽기 작업은 rcu_read_lock()/rcu_dereference()를 사용하고 NULL을 확인하여 적절한 오류 또는 재큐 경로로 빠져나간다: encode_cb_sequence4args(), decode_cb_sequence4resok(), nfsd41_cb_get_slot(), nfsd41_cb_release_slot(), nfsd4_cb_prepare(), nfsd4_cb_sequence_done(). - __free_session()을 kfree()에서 kfree_rcu()로 변경하여 세션 슬랩이 RCU 유예 기간 후에만 회수되도록 하여 rpciod 읽기 작업이 해제된 메모리를 역참조하지 않도록 보장한다. - nfsd_cb_seq_status 및 nfsd_cb_free_slot 추적 지점에 세션 포인터를 전달하여 cl_cb_session을 다시 읽지 않도록 한다. - nfsd4_cb_prepare()는 세션이 NULL일 때 rpc_exit()를 호출하여 완료/해제 경로를 통해 콜백을 재큐한다.
CVE-2026-89707
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: follow_down() 오류 시 경로 참조 해제 nfsd_cross_mnt()는 follow_down()을 호출하기 전에 mntget()과 dget()으로 로컬 struct path를 초기화한다. 음수 반환 시 오류 분기(err < 0)는 참조를 해제하지 않고 out으로 점프한다: err = follow_down(&path, follow_flags); if (err < 0) goto out; follow_down()은 어떤 오류 하위 경우에도 호출자의 진입 시점 참조를 해제하지 않는다; 예를 들어 pre-cross d_manage() 실패는 path를 변경하지 않아 진입 시 취득한 mntget()/dget() 참조가 유지된다. nfsd_cross_mnt()의 다른 모든 조기 종료 분기(다른 네임스페이스 반환, IS_ERR(exp2), 스왑 후 성공 경로)는 이미 path_put(&path)를 호출하지만, err < 0 분기만 누락되었다. 이 누수는 실패한 크로스 마운트마다 mnt_count와 d_count를 증가시켜 umount를 차단하고 dentries를 shrinker에 고정시키며, 인증된 NFS 클라이언트가 nfsd_lookup_dentry 또는 NFSv4 READDIR 인코딩 경로를 통해 접근할 수 있다. 수정은 err < 0 분기에서 goto out 전에 path_put(&path)를 호출하여 모든 follow_down() 오류 반환 시 진입 시점 참조를 해제하도록 한다.
CVE-2026-89706
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: 비동기 COPY 쓰기 백이 실패할 때 쓰기 검증자를 재설정함 비동기 COPY는 요청 시점에 nn->writeverf를 캡처하고 작업자 커널 스레드가 완료된 후 CB_OFFLOAD를 통해 클라이언트에 보고한다. _nfsd_copy_file_range() 내의 post-copy vfs_fsync_range() 또는 filemap_check_wb_err()가 오류를 보고하면 작업자는 NFSD4_COPY_F_COMMITTED를 해제 상태로 유지하여 CB_OFFLOAD가 wr_stable_how를 NFS_UNSTABLE로 인코딩하도록 하지만, 서버의 쓰기 검증자는 회전하지 않는다. CB_OFFLOAD에서 NFS_UNSTABLE을 받은 클라이언트는 복사된 데이터를 내구성 있게 만들기 위해 COMMIT을 수행한다. 검증자가 변경되지 않으면 COMMIT은 클라이언트가 CB_OFFLOAD를 통해 방금 받은 동일한 값을 반환하고, 클라이언트는 복사가 내구성 있다고 결론 내리며 실제로는 쓰기 백이 실패한 데이터를 조용히 버린다. 이는 UNSTABLE+COMMIT 내구성 계약(RFC 7862 15.1절, RFC 8881 18.32절)을 위반하며 nfsd_vfs_write()와 nfsd_commit()에서 방금 수정된 버그와 일치한다. 쓰기 백 실패 지점에서 nn->writeverf를 회전시킨다. 비동기 COPY 작업자는 svc_rqst가 없으므로 commit_reset_write_verifier()를 사용할 수 없으며, 여기서 nfsd_reset_write_verifier()를 직접 호출하는 것은 동일한 목적을 위해 nfsd_file_check_write_error()에서 이미 사용된 추적 없는 재설정을 반영한다. 내구성 저장 실패를 나타내지 않는 -EAGAIN 및 -ESTALE은 commit_reset_write_verifier()와 일치하도록 필터링한다.
CVE-2026-89705
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: 모든 nfsd_dispatch() 종료 경로에서 rq_status_counter를 짝수로 복원 nfsd_dispatch()는 요청이 디코딩된 후 rq_status_counter를 홀수 값으로 설정하고, 완전히 처리된 후에는 짝수 값으로 다시 설정하여 nfsd_nl_rpc_status_get_dumpit()의 락 없는 리더와 seq-lock 유사 프로토콜을 형성한다. 완전히 성공한 경로만 카운터를 짝수로 복원했다. 캐시 히트(RC_REPLY), 드롭(RC_DROPIT / RQ_DROPME) 및 인코딩 오류 경로는 모두 홀수 값 저장 후 카운터를 짝수로 되돌리지 않고 반환한다. 이러한 경로 중 하나가 선택되면 rq_status_counter는 홀수 상태로 남아 다음 요청의 디코드는 1을 OR 연산하여(여전히 홀수) 이후 성공적인 인코딩에서만 짝수로 복원된다. 홀수 상태가 지속되는 동안 dumpit 리더는 rqstp 필드를 안정적인 것으로 처리하고 재시도 검사는 동일한 변하지 않는 홀수 값을 비교하므로 동시 변경을 감지하지 못한다. 이로 인해 락 없는 리더가 활성으로 변경 중인 필드(예: 복합 디코딩 및 해제 중 args->ops / args->opcnt)를 읽을 수 있으며, 8요소 인라인 ops 배열의 끝을 넘어 읽을 수 있다. 홀수 값을 다음 짝수 값으로 진행시키는 헬퍼 함수를 추가하고 홀수 값 저장 후 모든 반환 경로에서 호출한다. 디코드 오류 경로는 카운터가 홀수로 설정되기 전에 도달하므로 변경하지 않았다.
CVE-2026-89704
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: 비동기 COPY 루프 이전의 샘플 쓰기 오류 커서 _nfsd_copy_file_range()는 복사 루프 이후에 dst->f_wb_err를 "since"에 샘플링하고, vfs_fsync_range()가 반환된 후 filemap_check_wb_err()를 통해 쓰기 오류를 감지하는 데 사용한다. nfsd_file 캐시는 동일한 inode를 대상으로 하는 요청 간에 단일 struct file을 재사용하기 때문에, 동시 COMMIT 또는 안정적인 WRITE가 dst에서 자신의 vfs_fsync_range() 동안 file_check_and_advance_wb_err()를 통해 dst->f_wb_err를 현재 mapping->wb_err로 진행시킨다. 만약 그 진행이 mapping->wb_err에 쓰기 오류가 나타난 시점과 COPY 작업자가 "since"를 샘플링하는 시점 사이에 발생하면, 작업자는 이미 진행된 커서를 캡처하고 errseq_check()는 cur == since로 보고 0을 반환하며, 쓰기 오류가 발생했음에도 NFSD4_COPY_F_COMMITTED가 설정된다. CB_OFFLOAD는 wr_stable_how = FILE_SYNC4를 인코딩하고, 클라이언트는 복사된 데이터를 내구성 있는 것으로 처리하여 실패가 무음 데이터 손실로 이어진다. 함수 시작 시점에 한 번 since를 샘플링한다. 커서는 이 COPY가 어떤 쓰기도 수행하기 전 상태를 반영하며, filemap_check_wb_err()는 어떤 스레드가 먼저 오류를 관찰했는지와 관계없이 복사 중 발생하는 모든 오류를 감지한다. 이는 nfsd_vfs_write()와 nfsd4_clone_file_range()에서 사용되는 패턴과 일치한다.
CVE-2026-89703
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: 위임에 대해 nfsd4_drop_revoked_stid에서 SC_STATUS_FREED 설정 nfsd4_drop_revoked_stid()는 관리자에 의해 취소된 위임에 대해 FREE_STATEID를 처리하지만 cl_lock을 해제하기 전에 SC_STATUS_FREED를 설정하지 않는다. revoke_delegation()은 이 플래그를 사용하여 FREE_STATEID가 이미 위임을 처리했는지 감지한다. 이 플래그가 없으면 해제된 위임이 list_add()를 통해 cl_revoked에 추가되어, 이후 __destroy_client()에서 cl_revoked를 순회할 때 해제 후 사용(use-after-free)이 발생한다. nfsd4_free_stateid()의 SC_STATUS_REVOKED 경로(라인 7983)는 이미 SC_STATUS_FREED를 올바르게 설정한다. 동일한 패턴을 nfsd4_drop_revoked_stid()의 SC_STATUS_ADMIN_REVOKED 경로에 적용한다.
CVE-2026-89702
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: xpt_locallen에 의해 서버 sockaddr 슬롯 크기 지정 오류 nfsd_fh_verify와 nfsd_fh_verify_err 추적 지점은 서버 sockaddr 슬롯을 xpt_remotelen 크기로 선언하지만 xpt_locallen을 사용하여 xpt_local에서 값을 채운다: TP_STRUCT__entry( ... __sockaddr(server, rqstp->rq_xprt->xpt_remotelen) ... ) TP_fast_assign( ... __assign_sockaddr(server, &rqstp->rq_xprt->xpt_local, rqstp->rq_xprt->xpt_locallen); ... ) xpt_locallen이 xpt_remotelen을 초과할 경우, __assign_sockaddr의 memcpy가 예약된 링 버퍼 슬롯을 넘어 쓰기를 수행한다. 반대로(xpt_locallen < xpt_remotelen) 슬롯이 과도하게 크고, 쓰이지 않은 꼬리 부분이 이전 링 버퍼 내용을 추적 소비자에게 노출한다. 이 쓰기 초과 종료 케이스는 NFS/UDP에서 도달 가능하다. svc_xprt_set_remote()는 svc_tcp_accept() (net/sunrpc/svcsock.c)와 RDMA 연결 경로에서만 호출되며, UDP의 svc_create_socket()는 svc_xprt_set_local()만 호출하므로 xpt_remotelen은 xprt의 수명 동안 0으로 유지된다. 따라서 NFSv2/v3-over-UDP 요청의 모든 fh_verify 추적은 xpt_local에서 16 또는 28 바이트를 0 바이트 슬롯으로 복사한다. 서버 주소를 기록하는 다른 NFSD 추적 지점들(NFSD_TRACE_PROC_CALL_FIELDS, NFSD_TRACE_PROC_RES_FIELDS, SVC_RQST_ENDPOINT_FIELDS)은 이미 서버 슬롯을 xpt_locallen 크기로 지정하고 있으며, nfsd_fh_verify와 nfsd_fh_verify_err만 예외였다. 서버 슬롯을 xpt_locallen으로 크기 지정하여 선언된 슬롯이 복사 길이와 일치하도록 수정하였다. 클라이언트 슬롯과 그 할당은 이미 xpt_remotelen에 일치하므로 변경하지 않았다.
CVE-2026-89701
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: nfsd: validate nseconds in TIME_DELEG decode paths The xdrgen-based TIME_DELEG_ACCESS and TIME_DELEG_MODIFY decode arms store a raw uint32_t nseconds directly into tv_nsec without enforcing nseconds < NSEC_PER_SEC. The legacy nfsd4_decode_nfstime4 has this check but the TIME_DELEG paths do not. A malformed timespec can propagate through notify_change() to disk. Add range checks in both nfs4xdr.c (SETATTR path) and nfs4callback.c (CB_GETATTR path).
CVE-2026-89700
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: nfsd: validate sockaddr length per family in listener_set nfsd_sock_nl_policy declares NFSD_A_SOCK_ADDR as a bare NLA_BINARY attribute with no minimum length. A CAP_NET_ADMIN caller can send a 16-byte NFSD_A_SOCK_ADDR with sa_family=AF_INET6, causing a 12-byte OOB read across three consumers (rpc_cmp_addr_port, svc_find_listener, kernel_bind). nfsd_nl_listener_set_doit() also parsed and validated each listener entry inline in two separate loops, interleaved with mutating the running listener configuration. The validation was duplicated, used an open-coded "nla_len < sizeof(struct sockaddr)" check that was too short for AF_INET6, and handled a malformed entry inconsistently depending on which loop noticed it. Add an nfsd_nl_validate_listeners() helper that walks the entire list once and confirms each entry parses, carries both an address and a transport name, and is long enough for its address family (sizeof(struct sockaddr_in) for AF_INET, sizeof(struct sockaddr_in6) for AF_INET6, -EAFNOSUPPORT otherwise). Call it before taking nfsd_mutex or creating the serv, so a malformed request fails cleanly with no side effects. Since every entry is known valid by the time the two existing loops run, drop the redundant presence and per-family length checks from both, leaving only the nla_parse_nested() call needed to extract the data.
CVE-2026-89699
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: NFSv4 CREATE에서 심볼릭 링크 대상 길이 검증 nfsd4_decode_create()는 NF4LNK 심볼릭 링크 대상에 대해 와이어에서 제한 없는 cr_datalen을 허용하여, 클라이언트가 각 COMPOUND 작업마다 최대 RPC 페이로드 크기(수 메가바이트)에 해당하는 kmalloc 할당을 강제할 수 있으며, 이는 컴파운드 종료 시까지 지속된다. VFS는 ENAMETOOLONG으로 과도한 크기의 대상을 거부하지만, 할당은 이미 발생한 상태이다. 할당을 제한하기 위해 cr_datalen이 0인 경우에는 nfserr_inval로, cr_datalen이 NFS4_MAXPATHLEN(PATH_MAX)보다 큰 경우에는 nfserr_nametoolong으로 조기에 거부한다.
CVE-2026-89698
2026년 9월 12일In the Linux kernel, the following vulnerability has been resolved: nfsd: widen nfsd_genl_rqstp address fields to sockaddr_storage struct nfsd_genl_rqstp declares rq_daddr and rq_saddr as plain "struct sockaddr" (16 bytes). When an IPv6 NFS client is connected, nfsd_genl_rpc_status_compose_msg() casts these fields to "struct sockaddr_in6 *" (28 bytes) and reads sin6_addr at offset 8..24, which extends 8 bytes past the end of the 16-byte sockaddr field into the adjacent rq_flags member. The 16-byte nla_put_in6_addr then ships 8 bytes of truncated IPv6 address followed by 8 bytes of rq_flags to userspace via the NFSD_A_RPC_STATUS_SADDR6/DADDR6 netlink attributes. This is reachable by any unprivileged process in the network namespace because NFSD_CMD_RPC_STATUS_GET uses GENL_CMD_CAP_DUMP without GENL_ADMIN_PERM. Fix by widening rq_daddr and rq_saddr to struct sockaddr_storage so the IPv6 casts operate within bounds, copying sizeof(struct sockaddr_storage) bytes in the memcpy calls so the full address is captured, and zero-initializing the genl_rqstp stack variable to prevent leaking uninitialized tail bytes through netlink.
CVE-2026-89697
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: nfsd_proc_setattr()에서 조기 검증된 SETATTR을 위해 fh_want_write() 추가 BOTH_TIME_SET 분기에서는 fh_verify()를 조기에 호출하여 setattr_prepare()가 dentry를 검사할 수 있게 한다. 이로 인해 nfsd_setattr()이 fh_want_write()를 건너뛰어 notify_change()가 마운트 쓰기 참조 없이 실행된다. 조기 fh_verify() 호출 후 누락된 fh_want_write() 호출을 추가하였다.
CVE-2026-89696
2026년 9월 12일Linux 커널에서 다음 취약점이 해결되었다: nfsd: FOREIGN PUTFH 이후에 NULL 역참조를 방지하기 위해 비-SAVEFH 작업 차단 CONFIG_NFSD_V4_2_INTER_SSC가 활성화된 경우, nfsd4_putfh()는 fh_verify()가 nfserr_stale를 반환하고 putfh->no_verify가 true일 때 fh_dentry와 fh_export가 모두 NULL인 상태로 성공을 반환할 수 있다. NFSD4_FH_FOREIGN 플래그가 설정되지만, 복합 디스패치 루프는 이 플래그를 nfserr_nofilehandle 검사를 우회하는 데만 사용하며, NULL fh_dentry 상태에서 후속 작업이 실행되는 것을 방지하지 않는다. 원격 클라이언트는 COMPOUND를 조작하여 이를 악용할 수 있는데, 여기에는 inter-SSC COPY가 포함되어 check_if_stalefh_allowed()가 저장된 PUTFH에 대해 no_verify=true를 설정하며, 소스 PUTFH와 SAVEFH 사이에 추가 작업이 삽입된다. 예를 들어, SETATTR는 fh_want_write()를 호출하는데, 이는 먼저 fh_verify()를 호출하지 않고 fh_export->ex_path.mnt를 역참조하여 nfsd 커널 스레드에서 NULL 포인터 역참조를 발생시킨다. 이 문제는 디스패치 루프를 제한하여 해결한다: NFSD4_FH_FOREIGN가 설정되고 fh_dentry가 NULL일 때는 OP_SAVEFH(인터-SSC 흐름에 필요)와 ALLOWED_WITHOUT_FH(해결된 파일 핸들이 필요 없는 작업)만 진행할 수 있다. 다른 모든 작업은 RFC 7862 15.2.3절에 따라 nfserr_stale를 받는데, 이 절은 외부 파일 핸들 검증이 소비 작업으로 연기되고 그 시점에 NFS4ERR_STALE가 반환되어야 함을 명시한다.