CVE-2021-47316 nfsd: fix NULL dereference in nfs3svc_encode_getaclres

High 7.5 Published Updated

A NULL pointer dereference in the Linux kernel NFS server can cause a denial of service when handling specific error cases in ACL encoding.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-47316?

CVE-2021-47316 is a high-severity vulnerability in Linux kernel, published on 21 May 2024. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official description

In the Linux kernel, the following vulnerability has been resolved:

nfsd: fix NULL dereference in nfs3svc_encode_getaclres

In error cases the dentry may be NULL.

Before 20798dfe249a, the encoder also checked dentry and d_really_is_positive(dentry), but that looks like overkill to me--zero status should be enough to guarantee a positive dentry.

This isn't the first time we've seen an error-case NULL dereference hidden in the initialization of a local variable in an xdr encoder. But I went back through the other recent rewrites and didn't spot any similar bugs.

Weakness: CWE-476

Which versions are affected by CVE-2021-47316?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47316?

No fix has been published for CVE-2021-47316 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-47316 being exploited?

There is no known exploitation of CVE-2021-47316 in the wild and no public exploit code.

All Linux kernel vulnerabilities

Sources

Also known as GHSA-x95x-w6hq-mwxc, UBUNTU-CVE-2021-47316.

Is CVE-2021-47316 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free