Alibaba Cloud Security is concerned that Linux Kernel NFS has a heap buffer overflow vulnerability. In the nfsd module of the Linux kernel, nfsd4_sequence reduces the reply buffer to the maximum cache reply limit for session negotiations before accepting the seqid of the NFSv4.1/4.2 session slot, but it has not pre-checked whether the fixed-length SEQUENCE response and subsequent operation error states can fit within this limit. An unauthenticated remote or neighboring network attacker can negotiate ca_maxresponsesize_cached to a minimum value through TCP port 2049, cause nfsd4_alloc_slot to allocate a zero-length data buffer, and then send a specially crafted COMPOUND request containing a SEQUENCE operation to force the server to write out of bounds to the zero-length reply cache slot, causing the kernel heap memory to write out of bounds. The vulnerability could cause the system to crash or be further exploited to enable remote code execution.

Zhitongcaijing · 1d ago
Alibaba Cloud Security is concerned that Linux Kernel NFS has a heap buffer overflow vulnerability. In the nfsd module of the Linux kernel, nfsd4_sequence reduces the reply buffer to the maximum cache reply limit for session negotiations before accepting the seqid of the NFSv4.1/4.2 session slot, but it has not pre-checked whether the fixed-length SEQUENCE response and subsequent operation error states can fit within this limit. An unauthenticated remote or neighboring network attacker can negotiate ca_maxresponsesize_cached to a minimum value through TCP port 2049, cause nfsd4_alloc_slot to allocate a zero-length data buffer, and then send a specially crafted COMPOUND request containing a SEQUENCE operation to force the server to write out of bounds to the zero-length reply cache slot, causing the kernel heap memory to write out of bounds. The vulnerability could cause the system to crash or be further exploited to enable remote code execution.