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

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2024-07-29T15:52:41.360Z
- Modified: 2026-11-10T13:17:22.713Z
- Weaknesses: CWE-476
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from 82218943058d5e3fe692a38b5a549479738dab33 before c3c5cfa3170c0940bc66a142859caac07d19b9d6; from 82218943058d5e3fe692a38b5a549479738dab33 before 5f6a84cfb33b34610623857bd93919dcb661e29b; from 82218943058d5e3fe692a38b5a549479738dab33 before 3429ef5f50909cee9e498c50f0c499b9397116ce; from 82218943058d5e3fe692a38b5a549479738dab33 before f54f9d5368a4e92ede7dd078a62788dae3a7c6ef; from 82218943058d5e3fe692a38b5a549479738dab33 before 35264909e9d1973ab9aaa2a1b07cda70f12bb828; 5.12 (not affected: before 5.12; from 5.15.200 up to 5.15.*; from 6.1.162 up to 6.1.*; from 6.6.37 up to 6.6.*; from 6.9.8 up to 6.9.*; from 6.10 up to *)
- linux linux_kernel: before 6.6.37; from 6.7 before 6.9.8

## References

- <https://git.kernel.org/stable/c/c3c5cfa3170c0940bc66a142859caac07d19b9d6> (patch)
- <https://git.kernel.org/stable/c/5f6a84cfb33b34610623857bd93919dcb661e29b> (patch)
- <https://git.kernel.org/stable/c/3429ef5f50909cee9e498c50f0c499b9397116ce> (patch)
- <https://git.kernel.org/stable/c/f54f9d5368a4e92ede7dd078a62788dae3a7c6ef> (patch)
- <https://git.kernel.org/stable/c/35264909e9d1973ab9aaa2a1b07cda70f12bb828> (patch)
- <https://cert-portal.siemens.com/productcert/html/ssa-019113.html>
- <https://cert-portal.siemens.com/productcert/html/ssa-457936.html>

## Sources

- CVE List: [CVE-2024-42079](https://www.cve.org/CVERecord?id=CVE-2024-42079), CVE Terms of Use, modified 2026-11-10
- NVD: [CVE-2024-42079](https://nvd.nist.gov/vuln/detail/CVE-2024-42079), Public domain, modified 2026-11-10

---

Page: https://cve.day/CVE-2024-42079 · Whole record: https://cve.day/CVE-2024-42079.json · Rebuilt by cve.day 2026-11-25T22:58:43.341Z
