총 15,720건
CVE-2026-99391
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: don't try to scrub self-referential dirent in metapath checker LOLLM observes that the _ilock_both helper will loop forever trying to double-lock the same inode if mpath->dp == sc->ip. Callers are not supposed to call us with parent == child because that makes no sense. Trigger an assertion, mark the scan incomplete, and return IO error so that this fails noisily.
CVE-2026-99390
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: xfs: fix correction of unwritten extents in quota file data fork LOLLM noticed a couple of problems with the code that fixes unwritten mappings in the quota file's data fork: first, we should zero the ondisk contents as part of converting them to "unwritten" just in case we crash shortly after the conversion. Second, and more importantly, it noticed that we fail to resynchronize the iext tree cursor after modifying the iext tree. If the tree shape changes, we could be in a world of hurt. Third, we should force a quotacheck if we reset an ondisk dquot. Fix all issues.
CVE-2026-99389
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: smb: 서버: 디렉터리 이름 변환 버퍼를 올바르게 처리 UTF-16로 변환될 때 종료 문자를 포함하여 2048바이트의 ASCII 디렉터리 이름은 4098바이트가 필요하다. ksmbd_convert_dir_info_name()는 할당 크기를 PATH_MAX으로 제한하고 그 버퍼의 끝을 넘겨 쓴다. 입력 바이트당 하나의 UTF-16 코드 단위를 위한 공간과 종료 문자를 위해 공간을 할당한다. 크기 계산을 확인하기 위해 kmalloc_array()를 사용한다.
CVE-2026-99388
2026년 11월 20일리눅스 커널의 다음 취약점이 해결되었습니다: smb: smbdirect: RDMA 전송 시 버퍼 길이 하한 문제 수정 원격 버퍼 설명자가 남은 로컬 버퍼보다 큰 경우, smbdirect_connection_rdma_xmit()는 길이를 한정하고 buf_len를 0으로 설정합니다. 그런 다음 공통 회계 코드는 잘린 길이를 buf_len에서 빼서 언더플로우를 일으킵니다. 다른 설명자가 뒤따를 경우, 루프는 남은 길이가 래핑된 상태로 이를 처리하고 RDMA 전송에 로컬 버퍼를 넘치는 메모리를 포함합니다. 클라이언트는 마지막 RDMA 버퍼 설명자 이전에 치솟는 설명자를 여러 개 제공함으로써 SMB WRITE 요청으로 커널에 범위 밖 쓰기(out-of-bounds kernel write) 또는 SMB READ 요청으로 커널에 범위 밖 읽기(out-of-bounds kernel read)를 트리거할 수 있습니다. buf_len에 대한 조기 할당을 제거합니다. 잘린 길이를 빼면 이미 남은 버퍼가 소모되므로 다음 반복은 중단되고 로컬 버퍼 내의 설명자만 작업 요청을 구성하는 데 사용됩니다.
CVE-2026-99387
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: bound POSIX lock data area by response length CIFSSMBPosixLock() receives a TRANS2 response whose server-provided DataOffset and DataCount are not required by validate_t2() to describe an interval inside the response. A server can therefore make the client read a cifs_posix_lock beyond the response buffer and return those kernel bytes through F_GETLK. Use smbCalcSize() to obtain the full response length after any multipart TRANS2 reassembly, then reject data areas that extend past it before dereferencing them.
CVE-2026-99386
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: smb: 클라이언트: 캐시된 디렉터리 작업자에서 기존 tcon을 복구하지 않음 cfids_laundromat_worker()가 만료된 열린 cfid마다 tcon->tc_count를 증가시키고 cached_dir_offload_close()를 큐에 넣으면서 tcon이 이미 종료 중인지 확인하지 않는다. 최종 cifs_put_tcon()과 경쟁하는 동안, tcon은 0에서 돌아와 두 번 해제된다: T1 T2 cifs_put_tcon() --tc_count == 0, TID_EXITING tconInfoFree() free_cached_dirs() cancel_delayed_work_sync() cfids_laundromat_worker() ++tc_count == 1 queue_work(serverclose_wq) kfree(tcon->origin_fullpath) kfree(tcon) cached_dir_offload_close() close_cached_dir() [UAF] cifs_put_tcon() tconInfoFree() [이중 해제] cached_dir_lease_break()도 tc_lock 없이 tc_count를 증가시키며, laundromat의 잠긴 업데이트와 경쟁한다. tcon 참조를 tcon이 TID_EXITING이 되었거나 참조 카운트가 0으로 떨어진 후에는 거부하는 도우미를 통해 참조를 유지한다. 큐에 들어간 put_work와 close_work는 항상 tcon 참조를 보유하므로 tconInfoFree()가 먼저 실행되어 free_cached_dirs()가 어떤 작업 큐도 플러시할 필요가 없게 된다. laundromat이 참조를 얻을 수 없다면 cfid를 죽은 목록으로 되돌려 free_cached_dirs()가 해제하도록 하며; 핸들은 트리 연결과 함께 사라진다. lease break 경로는 ses->tcon_list에서 cifs_tcp_ses_lock 아래 tcon을 찾으므로 TID_EXITING을 볼 수 없지만, 이제 tc_lock을 사용한다.
CVE-2026-99385
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: smb: 클라이언트: SMB2_tcon()의 버퍼 오버플로 수정 SMB2_tcon()에서 unc_path는 고정 버퍼 크기인 MAX_SHARENAME_LENGTH * 2 바이트(672 바이트)로 할당됩니다. 그러나 사용자가 제어하는 UNC 경로(트리) 길이가 cifs_strtoUTF16()에 전달되며, 이 함수는 대상 버퍼가 충분히 크다고 가정하고 strlen(tree) + 1 UTF-16 코드 유닛을 기록합니다. 커밋 62a1a439e0fd("cifs: unc= 옵션 처리 정리")은 UNC 마운트 옵션의 길이 검사를 제거하여 마운트 경로가 MAX_SHARENAME_LENGTH를 초과하더라도 SMB2_tcon()의 고정 크기 버퍼 할당은 유지되도록 했습니다. 그 결과, 과도한 UNC 문자열은 cifs_strtoUTF16()가 힙 객체의 끝을 넘어 기록하도록 하여 슬래브(out-of-bounds) 쓰기를 초래합니다. 더불어 트리 이름이 MAX_TREE_SIZE를 초과하는 경우, cifs_tcon::tree_name에서 strscpy()가 이를 잘라내어 이후 재연결이나 장애 조치가 실패하게 만듭니다. 이 문제를 해결하려면 먼저 트리의 길이가 MAX_TREE_SIZE를 초과하는지 확인하고 초과하면 -EINVAL을 반환합니다. 그런 다음 트리의 길이를 기반으로 unc_path를 동적으로 할당하여 MAX_TREE_SIZE 내의 모든 UTF-16 코드 유닛을 안전하게 수용하도록 합니다. [pc: 사용되지 않는 MAX_SHARENAME_LENGTH 제거]
CVE-2026-99384
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: fix OOB read of the resume name sent in TRANS2_FIND_NEXT2 cifs_fill_dirent() reads the fixed part of a directory entry and the name length it holds, or for SMB_FIND_FILE_UNIX scans the name for its terminating NUL, without knowing where the response ends. cifs_save_resume_key() calls it for the entry at the LastNameOffset the server chose, after every FindNext and after the FindFirst of a search rewind, and records the name it returns as the resume name of the search without bounding it; the next CIFSFindNext() copies up to PATH_MAX - 1 bytes from that name into its request and sends them to the server. cifs_filldir() bounds the name against the end of the response since commit f8cf09a53a0d ("smb: client: bound dirent name against end of SMB response in cifs_filldir"), but only after cifs_fill_dirent() has read the entry, and nxt_dir_entry() checks the entries it walks only against sizeof(FILE_DIRECTORY_INFO), for every level but SMB_FIND_FILE_INFO_STANDARD, and never sees the first entry of a response. Bounding where last_entry starts, as the preceding patch does, does not bound the read. A last entry that starts within the final bytes of the response still has its fixed part read past the end of the received data, and the name length it declares, a __le32 for every level but SMB_FIND_FILE_INFO_STANDARD and SMB_FIND_FILE_UNIX, is recorded without being checked against anything. CIFSFindNext() rejects only a length of PATH_MAX or more, then copies the name, up to 4095 bytes, into its request and sends it, and as the report below shows that copy can run past the end of the cifs_request allocation that holds the response. For SMB_FIND_FILE_UNIX the name is in addition scanned for its terminating NUL over up to PATH_MAX + 1 UTF-16 units, or PATH_MAX bytes, before any check. The FindNext that carries the name is only sent by the SMB1 dialect, which is not negotiated by default; reaching it requires an explicit vers=1.0 mount. With KASAN enabled, a response whose last entry declares a name longer than the bytes that follow it gives: ================================================================== BUG: KASAN: slab-out-of-bounds in CIFSFindNext+0x8ca/0x14c0 Read of size 4080 at addr ffff88807c823f98 by task ls/83 CPU: 0 UID: 0 PID: 83 Comm: ls Not tainted 7.3.0-rc4-00457-gf14572c203d5 #69 PREEMPT(lazy) Call Trace: <TASK> kasan_report+0xdf/0x1a0 kasan_check_range+0x10f/0x1e0 __asan_memcpy+0x23/0x60 CIFSFindNext+0x8ca/0x14c0 cifs_readdir+0xf51/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 1 at 13.497119s: cifs_buf_get+0x36/0x90 smb_init+0x4f/0x110 CIFSFindNext+0xf7/0x14c0 cifs_readdir+0xf51/0x29c0 The buggy address belongs to the object at ffff88807c820000 which belongs to the cache cifs_request of size 16588 The buggy address is located 16280 bytes inside of allocated 16588-byte region [ffff88807c820000, ffff88807c8240cc) ================================================================== The read is the memcpy() that copies the recorded name into the next request, so those bytes go to the server. Pass the end of the response to cifs_fill_dirent() and have it reject an entry whose fixed part does not fit or whose name extends past the end, before either is used, so that both callers are covered; cifs_save_resume_key() computes the end the same way cifs_readdir() does. The name bound compares the bytes left between the name and the end with the name length rather than adding the length to the name pointer, since the length is a 32-bit value taken from the entry and the sum could wrap on 32-bit systems. cifs_fill_dirent() is also used on the SMB2 readdir path; there smb2_parse_query_directory() has already checked every entry against the end of the response, so a vali ---truncated---
CVE-2026-99383
번역 확인 필요2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: smb: 클라이언트: 매칭되지 않는 mid가 있는 복호화된 읽기(read) 크레딧을 회수 암호화된 SMB2 READ 응답에 대하여 매치되는 미 outstanding 요청이 없으면 inline receive_encrypted_read()와 offloaded smb2_decrypt_offload() 경로 모두 프레임을 보낸 크레딧을 서버가 부여한 크레딧을 고려하지 않고 버립니다. cifs_demultiplex_thread()의 암호화되지 않은 프레임 경로는 이미 smb2_add_credits_from_hdr()로 이를 회수하므로, 암호화된 읽기는 암호문 경로에서 처리되지 않는 크레딧을 누출합니다. 또한 합법적인 프레임에도 이 현상이 발생합니다. 예를 들어 클라이언트가 타임아웃 후 MID를 보유하고 있던 프레임에 대한 응답이 도착하는 경우처럼 장기간 연결에서 클라이언트의 크레딧 수가 점차 줄어들어 결국 요청을 발행할 수 있는 능력이 소진될 수 있습니다. 프레임은 AEAD으로 인증되므로 복호화 헤더에 부여된 크레딧은 실제 서버에서 온 것이고 적용해도 안전합니다. 프레임을 버리기 전에 복호화된 헤더에서 크레딧을 회수하고, SMB2 수신 경로에서 이를 사용할 수 있도록 smb2_add_credits_from_hdr()를 내보냅니다.
CVE-2026-99382
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: reject FIND data areas that run past the received response CIFSFindFirst() and CIFSFindNext() take the directory entries of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 response from DataOffset for DataCount bytes. validate_t2() bounds DataOffset at 1024 and ParameterCount + DataCount by the byte count, and nothing compares DataOffset + DataCount with the number of bytes SendReceive() copied into the buffer. smb_init() places the request and the response in the same cifs_request allocation and cifs_buf_get() clears only the start of it, so a short response whose data area extends past its end has srch_entries_start point at bytes of the request that was just sent, or at whatever the allocation held before, and those bytes are parsed as directory entries. cifs_readdir() and find_cifs_entry() walk the entries with nxt_dir_entry(), which checks every entry but the first of a response against the end of the SMB; cifs_query_path_info() and cifs_backup_query_path_info() read the first entry with no check at all. Those reads stay inside the allocation, but what they return is not part of the response. The last entry, which LastNameOffset locates relative to the data area, is bounded against the received response by an earlier patch of this series, as is every entry that cifs_fill_dirent() parses; the walk itself and the two query functions are not. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject a response whose data area extends past the received length, with the -EINVAL that validate_t2() returns for the other malformed transaction responses. cifs_query_path_info() and cifs_backup_query_path_info() still read a whole entry from a data area that may be smaller than one; that is not changed here. A conforming server is not affected. The data block of a transaction response is part of the SMB, so DataOffset + DataCount cannot exceed the smbCalcSize() bytes that SendReceive() copies; coalesce_t2() appends each secondary response to the data area and adds its length to both DataCount and the byte count, which keeps that relation.
CVE-2026-99381
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: smb: client: reject short or out-of-range FIND response parameters CIFSFindFirst() and CIFSFindNext() read the SearchHandle, SearchCount, EndofSearch and LastNameOffset of a TRANS2_FIND_FIRST2 or TRANS2_FIND_NEXT2 response at ParameterOffset. validate_t2() bounds the offset at 1024 and ParameterCount below 512, and nothing compares them with the number of bytes SendReceive() copied into the buffer or with the size of the response parameters. smb_init() places the request and the response in the same cifs_request allocation and cifs_buf_get() clears only the start of it, so a short response with a ParameterOffset past its end has the search handle, the entry count, the end-of-search flag and the last-entry offset read out of the request that was just sent, or out of whatever the allocation held before, and a ParameterCount smaller than the parameters has them read past the end of the parameter block. The reads stay inside the allocation, but what they return is not part of the response, and CIFSFindFirst() then hands back a search handle the server never sent. That handle is sent back to the server in the next FIND_NEXT2 or FIND_CLOSE2, so two bytes of the buffer leak at an offset the server picks. SMB1 is not negotiated by default; reaching this code requires an explicit vers=1.0 mount. Reject a response whose parameter area is smaller than the response parameters or extends past the received length, returning smb_EIO2() with a new smb_eio_traces value for each of the two responses, like the other response checks this file gained since v6.19. Backports to trees before v6.19 need smb_EIO2() replaced with -EINVAL and the trace.h hunk dropped. A conforming server is not affected. The parameter block of a transaction response is part of the SMB, so ParameterOffset + ParameterCount cannot exceed the smbCalcSize() bytes that SendReceive() copies, and the response parameters are 10 bytes for FIND_FIRST2 and 8 bytes for FIND_NEXT2, which is what T2_FFIRST_RSP_PARMS and T2_FNEXT_RSP_PARMS hold. This patch depends on "smb: client: reject FIND data areas that run past the received response", whose declarations it extends.
CVE-2026-99380
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었습니다: smb: 클라이언트: NT 거래 응답 레이아웃과 오프셋 검증 validate_ntransact()는 응답이 고정된 18단어 NT 거래 레이아웃을 사용한다고 가정합니다. 다른 WordCount는 get_bcc()가 pSMBr->ByteCount에서 바이트 수를 찾는 오프셋을 다르게 만들고, 그로 인해 이후 경계 검사가 일관되지 않은 응답 경계를 사용하게 됩니다. 함수는 또한 32비트 파라미터Offset 및 DataOffset 필드를 경계를 확인하기 전에는 포인터로 변환합니다. 32비트 클라이언트에서 큰 오프셋은 포인터를 end_of_smb 아래로 래핑하고 단측 포인터 비교를 통과시키게 됩니다. 그 호출자는 파라미터 포인터를 역참조하거나 데이터 포인터에서 복사합니다. 읽기 전에 예상 WordCount를 요구하고, 수신된 SMB 길이에 대해 각 오프셋과 개수를 정수로 확인한 후 포인터를 형성합니다. 오프셋을 검증한 뒤 뺄셈을 사용하므로 범위 검사가 오버플로우되지 않게 합니다.
CVE-2026-99379
2026년 11월 20일리눅스 커널에서 다음 취약점이 해결되었다: smb: 클라이언트: 파싱 전에 SMB1 EA 목록 경계 확인 CIFSSMBQAllEAs()는 서버가 제공한 EA 목록의 길이를 응답 포인터에 더해 확인한다. 32비트 시스템에서 양의 길이는 포인터를 감싸며 비교를 지나칠 수 있다. 그 파서를 통해 수신된 응답 범위를 벗어나 다음 FEA 헤더를 읽게 된다. 길이가 0x40000000인 응답은 i386 페이지 오류 및 SMB1 서버에 대한 listxattr()에서 커널 패닉으로 재현된다. 헤더를 읽기 전에 EA 목록이 SMB 바이트 영역 안에서 시작하는지 확인한다. 길이는 부호 없는 값으로 유지하고 포인터를 더하지 않고 응답에 남은 바이트와 비교한다. SMB1은 기본적으로 협상되지 않으며 명시적으로 vers=1.0 마운트가 필요하다.
CVE-2026-99378
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: pnfs/blocklayout: Complete a device upcall when the pipe is closed Once blkmapd has read a whole upcall, rpc_pipe_read() unlinks the message from every pipe list, so the purges in rpc_pipe_release() and rpc_close_pipes() no longer reach it. bl_upcall_ops supplies no .release_pipe callback, and bl_pipe_destroy_msg() returns without completing the upcall because a downcall is expected to follow. A daemon that exits between the read and the write therefore strands its waiter: bl_resolve_deviceid() sleeps in wait_for_completion() and never returns, and it holds nn->bl_mutex across that wait, so every later device resolution in the net namespace blocks behind it. Add a .release_pipe that completes an upcall blkmapd has consumed and left unanswered. Completing an upcall retires it, so a message the framework has already purged is no longer in flight and is not completed a second time here.
CVE-2026-99377
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFSv4/pnfs: bound the CB_NOTIFY_DEVICEID array count before allocating decode_devicenotify_args() hands the server's notification count straight to kmalloc_objs() as the array length, without checking it against the message that carried it. Bound it the way nfs4xdr.c bounds an attribute length, against xdr_stream_remaining().
CVE-2026-99376
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFSv4/pnfs: Free the netid when draining a data-server address list nfs4_pnfs_ds_addr_free() releases all three of an address entry's allocations, but the four sites that drain a decoded list before it reaches a data server open-code the loop and free only da_remotestr and the entry, leaking da_netid. Both layout drivers drain that list when nfs4_pnfs_ds_add() returned a data server already in the cache, and again on their error exits. Lift the drain into nfs4_pnfs_ds_addr_list_free() so an address list has one owner. A striping mount reaches the cached case on nearly every GETDEVICEINFO, since many deviceIDs name the same data servers.
CVE-2026-99375
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFSv4/flexfiles: fail I/O to the data server once a lock is lost When a client loses a byte-range lock, because its lease expired and it may not recover the lock (nfs.recover_lost_locks=0) or because reclaim failed, it marks the lock state NFS_LOCK_LOST and fails further I/O by that lock owner. Otherwise an application that believes it holds a lock over a range is never told that the lock is gone, and can overwrite data that another client has since written under its own lock on that range. The NFSv4 READ/WRITE and file layout I/O paths apply this in rpc_call_prepare, where nfs4_set_rw_stateid() returns -EIO for a lost lock. The flexfiles data server I/O path does not: the NFSv3 data server path never checked, and the check on the NFSv4 path was removed when the data server stateid began to be taken from the layout. Fail read and write RPCs to the data server in rpc_call_prepare when the lock is lost. The data server path has no use for the stateid that nfs4_set_rw_stateid() selects, and selecting it looks up a delegation or open stateid on every I/O. Instead add nfs4_lock_context_lost(), which only tests NFS_LOCK_LOST, and check it alongside the open state. Its lookup, __nfs4_lookup_lock_state(), is split out of __nfs4_find_lock_state() and takes no reference: a lock state is only unlinked from state->lock_states under state->state_lock, so one found while holding that lock cannot be freed before it is released. Use it in nfs4_copy_lock_stateid() as well, which only reads the lock state under that lock. That drops a reference get and put from stateid selection for all NFSv4 I/O without changing the stateid selected. Terminating the RPC in rpc_call_prepare is not enough on its own. The done callback reads the -EIO as a data server connection error, forgets the device ID, and resets the I/O to pNFS (or, for an NFSv4 data server, possibly to the MDS). After a reset to pNFS a new LAYOUTGET is granted and rpc_call_prepare fails the I/O again, without end. The existing NFS_CONTEXT_BAD check does not loop, since the open state is then invalid and pnfs_update_layout() fails the reset I/O, but it still forgets the device ID. So when an RPC that was never sent fails and the open context is bad, the open state is invalid, or the lock is lost, complete it with -EIO without error handling. An RPC that was sent and failed is handled as before, so a real data server error is still reported to the MDS.
CVE-2026-99374
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFSv4/flexfiles: Use the full 64-bit stripe_unit ff_layout_alloc_lseg() decodes stripe_unit as the 64-bit value the protocol defines and struct nfs4_ff_layout_segment stores it as one, but both consumers narrow it back to 32 bits: nfs4_ff_layout_calc_dss_id() divides with do_div(), which casts the divisor, and ff_layout_pg_test() copies it into a u32 first. A stripe_unit that does not fit is silently truncated, so the client stripes on a unit the server did not specify -- or divides by zero, if the low 32 bits happen to be clear. Divide by the full value, with div64_u64() and div64_u64_rem().
CVE-2026-99373
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFS/localio: detect a short read or write before the iterator has moved nfs_local_call_read() and nfs_local_call_write() issue a misaligned DIO as up to three segments and must stop at the first short one, or the next segment lands at the wrong file offset. They test for that by comparing the bytes transferred against iov_iter_count() of the segment, read after read_iter() or write_iter() has advanced the iterator, when the count is the residual rather than the request: before the call: count == expected after the call: count == expected - status The test is therefore status < expected - status, and it fires only when less than half of the segment was transferred. A short I/O that covers between 50% and 99% of a segment slips through: the loop moves on with ki_pos advanced by the short amount, the next segment is issued at the wrong offset, and the header's byte count is over-reported to the caller. A write that slips through also never sets NFS_CONTEXT_WRITE_SYNC, which is what makes the writes that follow a short one synchronous. Take the segment's count before issuing it and compare against that. This is the same defect that commit 250ec14932d5 ("nfsd: fix partial-write detection in nfsd_direct_write") fixed in NFSD's version of this loop.
CVE-2026-99372
2026년 11월 20일In the Linux kernel, the following vulnerability has been resolved: NFSD: cap the number of listeners accepted in listener_set nfsd_nl_listener_set_doit() matches each requested listener against the existing set. The nested loop that does this is O(N * M), where N is the requested count and M is the existing count. The loop runs under sv_lock with bottom halves disabled. A userland request with a very large listener list can therefore spin in atomic context for a long time. Reject a request that carries more than NFSD_NL_LISTENER_MAX (1024) entries. The check goes in nfsd_nl_validate_listeners(), before the code takes any lock. The limit is far above any realistic configuration. This patch does not cap M. Only the message size bounded N; real sockets bound M. A listener_set result set is the requested set, so that path also holds M at the cap, but __write_ports_addxprt() adds two listeners per call and removes none, so repeated calls can push M past it. The worst case under sv_lock is therefore 1024 * M, plus 1024 nla_parse_nested() calls. Both interfaces require CAP_NET_ADMIN.