CVE-2024-42079

published 29 Jul 2024 · updated 12 Nov 2026

gfs2: Fix NULL pointer dereference in gfs2_log_flush

5.5MediumCVSS 5.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in Kernel f54f9d5368a4e92ede7dd078a62788dae3a7c6ef, Kernel 6.9.8, Kernel 35264909e9d1973ab9aaa2a1b07cda70f12bb828 and 6 more.

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).

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
LinuxKernel>=82218943058d5e3fe692a38b5a549479738dab33 <f54f9d5368a4e92ede7dd078a62788dae3a7c6ef, >=6.7 <6.9.8, >=82218943058d5e3fe692a38b5a549479738dab33 <35264909e9d1973ab9aaa2a1b07cda70f12bb828, >=82218943058d5e3fe692a38b5a549479738dab33 <5f6a84cfb33b34610623857bd93919dcb661e29b, >=82218943058d5e3fe692a38b5a549479738dab33 <c3c5cfa3170c0940bc66a142859caac07d19b9d6, <6.6.37, =5.12, >=82218943058d5e3fe692a38b5a549479738dab33 <3429ef5f50909cee9e498c50f0c499b9397116cef54f9d5368a4e92ede7dd078a62788dae3a7c6ef, 6.9.8, 35264909e9d1973ab9aaa2a1b07cda70f12bb828, 5f6a84cfb33b34610623857bd93919dcb661e29b, c3c5cfa3170c0940bc66a142859caac07d19b9d6, 6.6.37, 3429ef5f50909cee9e498c50f0c499b9397116ce
linux-kernel: Kernel>=5.12.0 <5.15.200, >=5.16.0 <6.1.162, >=6.2.0 <6.6.37, >=6.7.0 <6.9.85.15.200, 6.1.162, 6.6.37, 6.9.8

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in Kernel, strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2024-42079 severity on Zeptric[![CVE-2024-42079](https://zeptric.io/badge/cve/CVE-2024-42079.svg)](https://zeptric.io/cve/CVE-2024-42079)