5.5medium
ocfs2: prevent release journal inode after journal shutdown
- Severity
- 5.5medium CVSS:3.1 by NVD
- Exploit likelihood
- 0.18% (higher than 7% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 42c415c53ad2065088cc411d08925effa5b3d255, from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before e9188f66e94955431ddbe2cd1cdf8ff2bb486abf, from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before f4a917e6cd6c798f7adf39907f117fc754db1283, from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 85e66331b60601d903cceaf8c10a234db863cd78, from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before f46e8ef8bb7b452584f2e75337b619ac51a7cadf, 5.16 Not affected: before 5.16, from 6.1.151 up to 6.1.*, from 6.6.105 up to 6.6.*, from 6.12.46 up to 6.12.*, from 6.16.6 up to 6.16.*, from 6.17 up to * | CVE List |
| linux linux_kernel | from 5.16 before 6.1.151, from 6.2 before 6.6.105, from 6.7 before 6.12.46, from 6.13 before 6.16.6, 6.17 | NVD |
| debian debian_linux | 11.0 | NVD |
What each source says
CVE List
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.
NVD (es)
En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta: ocfs2: evitar la liberación del inodo de diario después del cierre del diario Antes 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(). 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, Añadir comprobaciones de osb->journal evitará la desreferenciación de puntero nulo durante la ruta de ejecución anterior.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-39842 changed 2026-05-12 | CVE Terms of Use |
| NVD | CVE-2025-39842 changed 2026-10-19 | Public domain |