Medium severity · published Sep 19, 2025
CVE-2025-39842
ocfs2: prevent release journal inode after journal shutdown
5.5
CVSS
0.2%
EPSS
No
On KEV
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.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack vector
Local
Complexity
Low
Privileges
Low
User interaction
None
Confidentiality
None
Integrity
None
Availability
High
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)0.2% · higher than 6% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
KE
Kernel · Linux
5.16 before 6.1.151; 6.2 before 6.6.105; 6.7 before 6.12.46; 6.13 before 6.16.6; 6.17; 6.17; +2 more · source: NVD
LI
Linux · Linux
da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 42c415c53ad2065088cc411d08925effa5b3d255; da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before e9188f66e94955431ddbe2cd1cdf8ff2bb486abf; da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before f4a917e6cd6c798f7adf39907f117fc754db1283; da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 85e66331b60601d903cceaf8c10a234db863cd78; da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before f46e8ef8bb7b452584f2e75337b619ac51a7cadf; 5.16 · source: vendor
DL
Debian Linux · Debian
11.0 · source: NVD
SC
SIMATIC CN 4100 · Siemens
before V5.0 · source: CISA
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2025-39842
CVE.org
https://www.cve.org/CVERecord?id=CVE-2025-39842
Patch
https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255
Patch
https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78
Patch
https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf
Patch
https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf
Patch
https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283
Mailing List
https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html
More from Kernel
9.8
CVE-2025-39682
tls: fix handling of zero-length records on the rx_list
8.8
CVE-2026-53266
netfilter: bridge: make ebt_snat ARP rewrite writable
8.8
CVE-2013-6282
Linux Kernel Improper Input Validation Vulnerability
8.4
CVE-2022-0185
Linux Kernel Heap-Based Buffer Overflow Vulnerability
8.4
CVE-2013-2094
Linux Kernel Privilege Escalation Vulnerability
