{"id":"CVE-2025-39842","aliases":["CVE-2025-39842"],"related":[],"kind":"vulnerability","state":"published","title":"ocfs2: prevent release journal inode after journal shutdown","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nocfs2: evitar la liberación del inodo de diario después del cierre del diario\n\nAntes de llamar a ocfs2_delete_osb(), ocfs2_journal_shutdown() ya ha sido ejecutado en ocfs2_dismount_volume(), por lo tanto, osb->journal debe ser NULL. Por lo tanto, el siguiente rastreo de llamadas fallará inevitablemente cuando alcance jbd2_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\nAñadir comprobaciones de osb->journal evitará la desreferenciación de puntero nulo durante la ruta de ejecución anterior.","source":"nvd"}],"published":"2025-09-19T15:26:17.075Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","fixed":"42c415c53ad2065088cc411d08925effa5b3d255","status":"affected"},{"type":"git","introduced":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","fixed":"e9188f66e94955431ddbe2cd1cdf8ff2bb486abf","status":"affected"},{"type":"git","introduced":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","fixed":"f4a917e6cd6c798f7adf39907f117fc754db1283","status":"affected"},{"type":"git","introduced":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","fixed":"85e66331b60601d903cceaf8c10a234db863cd78","status":"affected"},{"type":"git","introduced":"da5e7c87827e8caa6a1eeec6d95dcf74ab592a01","fixed":"f46e8ef8bb7b452584f2e75337b619ac51a7cadf","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.16","status":"unaffected"},{"type":"semver","introduced":"6.1.151","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.105","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.46","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.6","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"5.16","fixed":"6.1.151"},{"status":"affected","introduced":"6.2","fixed":"6.6.105"},{"status":"affected","introduced":"6.7","fixed":"6.12.46"},{"status":"affected","introduced":"6.13","fixed":"6.16.6"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/42c415c53ad2065088cc411d08925effa5b3d255","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e9188f66e94955431ddbe2cd1cdf8ff2bb486abf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f4a917e6cd6c798f7adf39907f117fc754db1283","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/85e66331b60601d903cceaf8c10a234db863cd78","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f46e8ef8bb7b452584f2e75337b619ac51a7cadf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39842","url":"https://www.cve.org/CVERecord?id=CVE-2025-39842","licence":"CVE Terms of Use","modified":"2026-05-12T12:07:30.064Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39842","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39842","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.861Z","epss":{"score":0.00178,"percentile":0.07692,"date":"2026-12-01T12:00:22.000Z"}}