# CVE-2026-72161: ocfs2: add journal NULL check in ocfs2_checkpoint_inode()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.21%, higher than 12% of CVEs (2026-12-01)
- Published: 2026-08-15T05:53:29.670Z
- Modified: 2026-08-17T06:18:16.387Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: add journal NULL check in ocfs2_checkpoint_inode()

During unmount, ocfs2_journal_shutdown() frees the journal and sets
osb->journal to NULL. Later, when VFS evicts remaining cached inodes,
ocfs2_evict_inode() -> ocfs2_clear_inode() -> ocfs2_checkpoint_inode()
-> ocfs2_ci_fully_checkpointed() dereferences osb->journal, causing a
NULL pointer dereference.

Fix this by adding a NULL check for osb->journal in
ocfs2_checkpoint_inode(). If the journal is NULL, it has already been
fully flushed and destroyed during shutdown, so there is nothing to
checkpoint.

(As written by CVE List.)

## Affected

- Linux Linux: from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 24daf13422e8328fd588c34a017bdef1949910e8; from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 7da7e4ac21895fe34cceffcfc99497cc2750da99; from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before eb6a13834c23e291f1170cb1b489ec255edfa5a3; from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 499714de42ab4d2e778cbb10186684142a1222eb; from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before 63921f790234b221e4b15c56c72888b13250f81d; from da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 before a291c77c034b7a81849ce9b71cc9ecda9e587d89; 5.16 (not affected: before 5.16; from 6.1.178 up to 6.1.*; from 6.6.145 up to 6.6.*; from 6.12.97 up to 6.12.*; from 6.18.40 up to 6.18.*; from 7.1.5 up to 7.1.*; from 7.2 up to *)

## References

- <https://git.kernel.org/stable/c/24daf13422e8328fd588c34a017bdef1949910e8>
- <https://git.kernel.org/stable/c/7da7e4ac21895fe34cceffcfc99497cc2750da99>
- <https://git.kernel.org/stable/c/eb6a13834c23e291f1170cb1b489ec255edfa5a3>
- <https://git.kernel.org/stable/c/499714de42ab4d2e778cbb10186684142a1222eb>
- <https://git.kernel.org/stable/c/63921f790234b221e4b15c56c72888b13250f81d>
- <https://git.kernel.org/stable/c/a291c77c034b7a81849ce9b71cc9ecda9e587d89>

## Sources

- CVE List: [CVE-2026-72161](https://www.cve.org/CVERecord?id=CVE-2026-72161), CVE Terms of Use, modified 2026-08-17
- NVD: [CVE-2026-72161](https://nvd.nist.gov/vuln/detail/CVE-2026-72161), Public domain, modified 2026-08-17

---

Page: https://cve.day/CVE-2026-72161 · Whole record: https://cve.day/CVE-2026-72161.json · Rebuilt by cve.day 2026-11-25T22:59:33.027Z
