
Cloud Vulnerability DB
A community-led vulnerabilities database
CVE-2021-47168 is a vulnerability in the NFS implementation of the Linux kernel, discovered in 2021. The issue stems from an incorrect size limit in the filelayout_decode_layout() function, where using 'sizeof(struct nfs_fh)' instead of NFS_MAXFHSIZE led to a potential buffer overflow by two bytes (Red Hat Portal).
The vulnerability occurs in the NFS file layout decoding functionality. The issue arises from using 'sizeof(struct nfs_fh)' which is two bytes larger than the actual buffer size defined by NFS_MAXFHSIZE. This size mismatch in the comparison could lead to buffer overflow, potentially causing memory corruption (Kernel Commit).
The vulnerability can lead to memory corruption due to the buffer overflow condition. This could potentially affect system stability and security when processing NFS file layouts (Red Hat Portal).
The vulnerability has a CVSS v3 score of 5.5, indicating moderate severity. It requires local access and low privileges to exploit (Red Hat Portal).
The issue has been fixed by replacing the size comparison 'sizeof(struct nfs_fh)' with NFS_MAXFHSIZE in the filelayout_decode_layout() function. Red Hat recommends updating the affected packages as soon as possible, as no practical mitigation exists (Red Hat Portal).
Source: This report was generated using AI
Free Vulnerability Assessment
Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.
Get a personalized demo
"Best User Experience I have ever seen, provides full visibility to cloud workloads."
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
"We know that if Wiz identifies something as critical, it actually is."