CVE-2024-46697 nfsd: ensure that nfsd4_fattr_args.context is zeroed out

Critical 9.8 Published Updated

An attacker can cause a kernel crash by triggering an uninitialized memory free in the NFS server, leading to denial of service.

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

What is CVE-2024-46697?

CVE-2024-46697 is a critical vulnerability in Linux kernel, published on 13 Sep 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: ensure that nfsd4_fattr_args.context is zeroed out

If nfsd4_encode_fattr4 ends up doing a "goto out" before we get to checking for the security label, then args.context will be set to uninitialized junk on the stack, which we'll then try to free. Initialize it early.

Weakness: CWE-665

Which versions are affected by CVE-2024-46697?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-46697?

Apply the vendor's patch.

Is CVE-2024-46697 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as BELL-CVE-2024-46697, DEBIAN-CVE-2024-46697, GHSA-prj2-h762-9j59, UBUNTU-CVE-2024-46697.

Is CVE-2024-46697 in your software?

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

Check your SBOMs for free