What’s Vulnerable › Vulnerabilities

CVE-2021-47168: NFS: fix an incorrect limit in filelayout_decode_layout()

Description

In the Linux kernel, the following vulnerability has been resolved: NFS: fix an incorrect limit in filelayout_decode_layout() The "sizeof(struct nfs_fh)" is two bytes too large and could lead to memory corruption. It should be NFS_MAXFHSIZE because that's the size of the ->data[] buffer. I reversed the size of the arguments to put the variable on the left.

Affected products

How to fix

Upgrade to a fixed version: Linux kernel 4.14.235, 4.19.193, 4.4.271, 4.9.271. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2021-47168 or the next vulnerability affects your stack