vendor:
Linux Kernel
by:
jared stanbrough
7.5
CVSS
HIGH
Denial of Service (DoS)
399
CWE
Product Name: Linux Kernel
Affected Version From: Linux kernel 2.4.20
Affected Version To: Linux kernel 2.4.20
Patch Exists: NO
Related CWE:
CPE: o:linux:linux_kernel:2.4.20
Platforms Tested:
2003
Linux 2.4.20 knfsd kernel signed/unsigned decode_fh DoS
The vulnerable code is in the decode_fh function in the fs/nfsd/nfs3xdr.c file. By sending a malicious fhsize value in the diroparg xdr argument, an attacker can trigger a denial of service vulnerability. The vulnerable host must have an accessible exported directory previously mounted by the attacker. Changing the size variable to an unsigned int or checking for size < 0 can fix the issue.
Mitigation:
To mitigate this vulnerability, the size variable should be changed to an unsigned int or checked for size < 0.