CVE-2021-47307 cifs: prevent NULL deref in cifs_compose_mount_options()

High 7.5 Published Updated

A NULL pointer dereference in the Linux kernel CIFS module allows local attackers to cause a system crash.

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-47307?

CVE-2021-47307 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:

cifs: prevent NULL deref in cifs_compose_mount_options()

The optional @ref parameter might contain an NULL node_name, so prevent dereferencing it in cifs_compose_mount_options().

Addresses-Coverity: 1476408 ("Explicit null dereferenced")

Weakness: CWE-476

Which versions are affected by CVE-2021-47307?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2021-47307?

Apply the vendor's patch.

Is CVE-2021-47307 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as DEBIAN-CVE-2021-47307, GHSA-c9p5-rxmf-r4m6, UBUNTU-CVE-2021-47307.

Is CVE-2021-47307 in your software?

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

Check your SBOMs for free