CVE-2024-42079
JSON

5.5medium

gfs2: Fix NULL pointer dereference in gfs2_log_flush

Severity
5.5medium CVSS:3.1 by NVD
Exploit likelihood
0.27% (higher than 20% of CVEs; EPSS, by FIRST)
Published
Last changed
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).

Affected

Product or packageVersionsReported by
Linux Linuxfrom 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 *
CVE List
linux linux_kernelbefore 6.6.37, from 6.7 before 6.9.8NVD

Classification

CWE-476

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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

NVD (es)

En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: gfs2: corrige la desreferencia del puntero NULL en gfs2_log_flush En gfs2_jindex_free(), establezca sdp->sd_jdesc en NULL bajo el bloqueo de descarga de registros para proporcionar exclusión contra gfs2_log_flush(). En gfs2_log_flush(), verifique si sdp->sd_jdesc no es NULL antes de desreferenciarlo. De lo contrario, podríamos encontrarnos con una desreferencia de puntero NULL cuando el trabajo de glock pendiente se ejecuta con un desmontaje (glock_work_func -> run_queue -> do_xmote -> inode_go_sync -> gfs2_log_flush).

References

Sources

SourceRecordLicence
CVE ListCVE-2024-42079 changed 2026-11-10CVE Terms of Use
NVDCVE-2024-42079 changed 2026-11-10Public domain