CVE-2021-47179 NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()

High 7.5 Published Updated

A NULL pointer dereference in the Linux kernel's NFSv4 implementation allows local attackers to cause a system crash via specific NFS operations.

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

What is CVE-2021-47179?

CVE-2021-47179 is a high-severity vulnerability in Linux kernel, published on 25 Mar 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:

NFSv4: Fix a NULL pointer dereference in pnfs_mark_matching_lsegs_return()

Commit de144ff4234f changes _pnfs_return_layout() to call pnfs_mark_matching_lsegs_return() passing NULL as the struct pnfs_layout_range argument. Unfortunately, pnfs_mark_matching_lsegs_return() doesn't check if we have a value here before dereferencing it, causing an oops.

I'm able to hit this crash consistently when running connectathon basic tests on NFS v4.1/v4.2 against Ontap.

Weakness: CWE-476

Which versions are affected by CVE-2021-47179?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47179?

Apply the vendor's patch.

Is CVE-2021-47179 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47179, GHSA-w5g2-4rxc-h7x8, UBUNTU-CVE-2021-47179.

Is CVE-2021-47179 in your software?

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

Check your SBOMs for free