CVE-2025-39842

ocfs2: prevent release journal inode after journal shutdown

No CVSS score yet EPSS 0.18%

Published 19 Sep 2025 Updated 12 May 2026 CNA: Linux

Check your servers for CVE-2025-39842

The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2025-39842 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.

Check my servers

Description

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

ocfs2: prevent release journal inode after journal shutdown

Before calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already been executed in ocfs2_dismount_volume(), so osb->journal must be NULL. Therefore, the following calltrace will inevitably fail when it reaches jbd2_journal_release_jbd_inode().

ocfs2_dismount_volume()-> ocfs2_delete_osb()-> ocfs2_free_slot_info()-> __ocfs2_free_slot_info()-> evict()-> ocfs2_evict_inode()-> ocfs2_clear_inode()-> jbd2_journal_release_jbd_inode(osb->journal->j_journal,

Adding osb->journal checks will prevent null-ptr-deref during the above execution path.

Exploitation

EPSS 0.18%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 7.69% of all scored CVEs. Scores of 1 Dec 2026.

Affected products

As the CNA lists them.

ProductVersions
Linux
affected from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, before 42c415c53ad2065088cc411d08925effa5b3d255
affected from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, before e9188f66e94955431ddbe2cd1cdf8ff2bb486abf
affected from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, before f4a917e6cd6c798f7adf39907f117fc754db1283
affected from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, before 85e66331b60601d903cceaf8c10a234db863cd78
affected from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, before f46e8ef8bb7b452584f2e75337b619ac51a7cadf
Other versions: unaffected
Linux
affected 5.16
unaffected before 5.16
unaffected from 6.1.151 up to and including 6.1.*
unaffected from 6.6.105 up to and including 6.6.*
unaffected from 6.12.46 up to and including 6.12.*
unaffected from 6.16.6 up to and including 6.16.*
unaffected 6.17 and later
Other versions: affected

Is my server affected?

This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:

uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2025-39842 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2025-39842

With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:

trivy rootfs --scanners vuln / | grep CVE-2025-39842
trivy image --scanners vuln IMAGE | grep CVE-2025-39842

Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.

References

Other references

Source: the record CVE-2025-39842 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.