CVE-2024-42079 gfs2: Fix NULL pointer dereference in gfs2_log_flush

Medium 5.5 Published Updated

A race condition in the Linux kernel GFS2 filesystem can cause a NULL pointer dereference, leading to a system crash.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Local or same network only
Victim action needed
Not needed
Fix
Available

What is CVE-2024-42079?

CVE-2024-42079 is a medium-severity vulnerability in Linux kernel, published on 29 Jul 2024. It can only be exploited from the same machine or local network, with no action from the victim.

Official description

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

gfs2: Fix NULL pointer dereference in gfs2_log_flush

In gfs2_jindex_free(), set sdp->sd_jdesc to NULL under the log flush lock to provide exclusion against gfs2_log_flush().

In gfs2_log_flush(), check if sdp->sd_jdesc is non-NULL before dereferencing it. Otherwise, we could run into a NULL pointer dereference when outstanding glock work races with an unmount (glock_work_func -> run_queue -> do_xmote -> inode_go_sync -> gfs2_log_flush).

Weakness: CWE-476

Which versions are affected by CVE-2024-42079?

It affects 1 product.

Products include Linux kernel.

How do I fix CVE-2024-42079?

Apply the vendor's patch.

Is CVE-2024-42079 being exploited?

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

All Linux kernel vulnerabilities

Sources

Also known as AZL-47118, AZL-47166, BELL-CVE-2024-42079, DEBIAN-CVE-2024-42079, GHSA-7wph-5wjx-7rgv, ROOT-OS-DEBIAN-11-CVE-2024-42079 and 2 more.

Is CVE-2024-42079 in your software?

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

Check your SBOMs for free