VDB

CVE-2025-39842

CVE-2025-39842 PUBLISHED

ocfs2: prevent release journal inode after journal shutdown

Reported by linux · Published September 19, 2025

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.

Fixed versions

Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.

PackageEcosystemFixed in
kernel-libbpf-staticAmazon Linux1:6.1.153-175.280.amzn2023

Affected products

VendorProductVersions
LinuxLinuxda5e7c87827e8caa6a1eeec6d95dcf74ab592a01, da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, da5e7c87827e8caa6a1eeec6d95dcf74ab592a01
LinuxLinux5.16, 0, 6.1.151
amazon:2023kernel-libbpf-static0
linuxlinux_kernel5.16, 5.16, 5.16
amazon:2023kernel0
amazon:2023kernel-headers0
amazon:2023kernel-tools-devel0
amazon:2023kernel-tools0
amazon:2023perf0
amazon:2023kernel-devel0
LinuxLinux6.16.6, 0, 6.1.151
SiemensSIMATIC CN 41000
amazon:2023kernel-libbpf-devel0
amazon:2023kernel-livepatch-6.1.153-175.2800
amazon:2023kernel-libbpf0
amazon:2023bpftool0
amazon:2023kernel-modules-extra0
amazon:2023python3-perf0
amazon:2023kernel-modules-extra-common0

Timeline

  • Sep 19, 2025 CVE Published
  • Sep 20, 2025 EPSS Score (30 in total, the first dated here)
  • Oct 12, 2025 PoC Published (15 in total, the first dated here)
  • Mar 29, 2026 Distribution Patch (87 in total, the first dated here)
  • Mar 29, 2026 Security Advisory (98 in total, the first dated here)
  • Jun 8, 2026 Coalition ESS Score

Query this with the API

The same record, from the CLI:

vulnetix vdb vuln CVE-2025-39842
vulnetix vdb fixes CVE-2025-39842

Or with curl, using the org id and key from your account page:

curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
  "https://api.vdb.vulnetix.com/v2/vuln/CVE-2025-39842/fixes/registry"

The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart

Look up in the Resolve Platform →
$ Lookup Community · 50/day Open Lookup ›