CVE-2022-49362 NFSD: Fix potential use-after-free in nfsd_file_put()

Critical 9.8 Published Updated

A use-after-free vulnerability in the Linux kernel's NFSD module allows attackers to potentially execute arbitrary code or cause a 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-2022-49362?

CVE-2022-49362 is a critical use after free vulnerability in Linux kernel, published on 26 Feb 2025. 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 potential use-after-free in nfsd_file_put()

nfsd_file_put_noref() can free @nf, so don't dereference @nf immediately upon return from nfsd_file_put_noref().

Weakness: CWE-416

Which versions are affected by CVE-2022-49362?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2022-49362?

Apply the vendor's patch.

Upgrade to the fixed version. These bugs are found with fuzzing and sanitisers and avoided by memory-safe languages. More about Use after free.

Is CVE-2022-49362 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2022-49362, GHSA-qp82-v3h4-hw29, UBUNTU-CVE-2022-49362.

Is CVE-2022-49362 in your software?

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

Check your SBOMs for free