{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2025-39842","id":"CVE-2025-39842","title":"ocfs2: prevent release journal inode after journal shutdown","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: prevent release journal inode after journal shutdown\n\nBefore calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already\nbeen executed in ocfs2_dismount_volume(), so osb->journal must be NULL. \nTherefore, the following calltrace will inevitably fail when it reaches\njbd2_journal_release_jbd_inode().\n\nocfs2_dismount_vol","descriptionLong":"In the Linux kernel, the following vulnerability has been resolved:\n\nocfs2: prevent release journal inode after journal shutdown\n\nBefore calling ocfs2_delete_osb(), ocfs2_journal_shutdown() has already\nbeen executed in ocfs2_dismount_volume(), so osb->journal must be NULL. \nTherefore, the following calltrace will inevitably fail when it reaches\njbd2_journal_release_jbd_inode().\n\nocfs2_dismount_volume()->\n  ocfs2_delete_osb()->\n    ocfs2_free_slot_info()->\n      __ocfs2_free_slot_info()->\n        evict()->\n          ocfs2_evict_inode()->\n            ocfs2_clear_inode()->\n\t      jbd2_journal_release_jbd_inode(osb->journal->j_journal,\n\nAdding osb->journal checks will prevent null-ptr-deref during the above\nexecution path.","published":"2025-09-19T15:26:17.075Z","updated":"2026-10-28T02:30:25.284125104Z","reserved":"2025-04-16T07:20:57.141Z","status":"Modified","rejected":false,"assigner":"Linux","metric":{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"},"metrics":[{"version":"3.1","score":5.5,"vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","rating":"medium","source":"NVD"}],"rating":"medium","products":["Linux"],"affectedProducts":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","lessThan":"42c415c53ad2065088cc411d08925effa5b3d255","status":"affected","versionType":"git"},{"version":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","lessThan":"e9188f66e94955431ddbe2cd1cdf8ff2bb486abf","status":"affected","versionType":"git"},{"version":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","lessThan":"f4a917e6cd6c798f7adf39907f117fc754db1283","status":"affected","versionType":"git"},{"version":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","lessThan":"85e66331b60601d903cceaf8c10a234db863cd78","status":"affected","versionType":"git"},{"version":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","lessThan":"f46e8ef8bb7b452584f2e75337b619ac51a7cadf","status":"affected","versionType":"git"}],"platforms":[]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"5.16","status":"affected"},{"version":"0","lessThan":"5.16","status":"unaffected","versionType":"semver"},{"version":"6.1.151","lessThanOrEqual":"6.1.*","status":"unaffected","versionType":"semver"},{"version":"6.6.105","lessThanOrEqual":"6.6.*","status":"unaffected","versionType":"semver"},{"version":"6.12.46","lessThanOrEqual":"6.12.*","status":"unaffected","versionType":"semver"},{"version":"6.16.6","lessThanOrEqual":"6.16.*","status":"unaffected","versionType":"semver"},{"version":"6.17","lessThanOrEqual":"*","status":"unaffected","versionType":"original_commit_for_fix"}],"platforms":[]}],"packages":[],"cwes":[],"aliases":[],"references":[{"url":"https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78","tags":["Patch","web"]},{"url":"https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf","tags":["Patch","web"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","Third Party Advisory","web"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["web"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/39xxx/CVE-2025-39842.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39842","tags":["advisory"]},{"url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":false,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":null,"epss":0.00178,"epssPercentile":0.07475,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2025-39842","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39842","ok":true,"note":"Modified"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2025-39842","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2025-39842","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}