CVE-2025-39842
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.
| Package | Ecosystem | Fixed in |
|---|---|---|
| kernel-libbpf-static | Amazon Linux | 1:6.1.153-175.280.amzn2023 |
Affected products
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux | da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, da5e7c87827e8caa6a1eeec6d95dcf74ab592a01, da5e7c87827e8caa6a1eeec6d95dcf74ab592a01 |
| Linux | Linux | 5.16, 0, 6.1.151 |
| amazon:2023 | kernel-libbpf-static | 0 |
| linux | linux_kernel | 5.16, 5.16, 5.16 |
| amazon:2023 | kernel | 0 |
| amazon:2023 | kernel-headers | 0 |
| amazon:2023 | kernel-tools-devel | 0 |
| amazon:2023 | kernel-tools | 0 |
| amazon:2023 | perf | 0 |
| amazon:2023 | kernel-devel | 0 |
| Linux | Linux | 6.16.6, 0, 6.1.151 |
| Siemens | SIMATIC CN 4100 | 0 |
| amazon:2023 | kernel-libbpf-devel | 0 |
| amazon:2023 | kernel-livepatch-6.1.153-175.280 | 0 |
| amazon:2023 | kernel-libbpf | 0 |
| amazon:2023 | bpftool | 0 |
| amazon:2023 | kernel-modules-extra | 0 |
| amazon:2023 | python3-perf | 0 |
| amazon:2023 | kernel-modules-extra-common | 0 |
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