ocfs2: prevent release journal inode after journal shutdown
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.151, 6.12.46, 6.16.6, 6.6.105
- CVEs
- CVE-2025-39842
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 3 Nov 2026, 02:58 UTC · Revision 1
Source evidence
ocfs2: prevent release journal inode after journal shutdown
core-osv · Original sourcePublished 19 Sept 2025, 15:26 UTC
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.
osv:CVE-2025-39842
Kernel
Fixed versions: 6.1.151, 6.6.105, 6.12.46, 6.16.6
Complete source record
{
"id": "14b57949013c933231a648371b1d52b60078e958df16bf561065dfb7c6df2cb3",
"url": "https://osv.dev/vulnerability/CVE-2025-39842",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "ocfs2: prevent release journal inode after journal shutdown",
"summary": "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.",
"evidence": "osv:CVE-2025-39842",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.151",
"evidence": "/affected/1/ranges"
},
{
"value": "6.6.105",
"evidence": "/affected/1/ranges"
},
{
"value": "6.12.46",
"evidence": "/affected/1/ranges"
},
{
"value": "6.16.6",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2025-39842",
"aliases": [
"CVE-2025-39842"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "da5e7c87827e8caa6a1eeec6d95dcf74ab592a01"
},
{
"fixed": "42c415c53ad2065088cc411d08925effa5b3d255"
},
{
"fixed": "e9188f66e94955431ddbe2cd1cdf8ff2bb486abf"
},
{
"fixed": "f4a917e6cd6c798f7adf39907f117fc754db1283"
},
{
"fixed": "85e66331b60601d903cceaf8c10a234db863cd78"
},
{
"fixed": "f46e8ef8bb7b452584f2e75337b619ac51a7cadf"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39842.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.16.0"
},
{
"fixed": "6.1.151"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.6.105"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.7.0"
},
{
"fixed": "6.12.46"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.13.0"
},
{
"fixed": "6.16.6"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-39842.json"
}
}
],
"modified": "2026-10-28T02:30:25.284125104Z",
"provider": "osv",
"references": [
"https://cert-portal.siemens.com/productcert/html/ssa-032379.html",
"https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255",
"https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78",
"https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf",
"https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf",
"https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283",
"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39842.json",
"https://nvd.nist.gov/vuln/detail/CVE-2025-39842",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39842.json"
}
},
"related_cves": [
{
"value": "CVE-2025-39842",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 492067,
"published_at": "2025-09-19T15:26:17.075+00:00"
}