CVE-2025-39842: ocfs2: prevent release journal inode after journal shutdown

Published Sep 19, 2025
·
Updated

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

ocfs2: prevent release journal inode after journal shutdown

Before calling ocfs2deleteosb(), ocfs2journalshutdown() has already been executed in ocfs2dismountvolume(), so osb->journal must be NULL. Therefore, the following calltrace will inevitably fail when it reaches jbd2journalreleasejbdinode().

ocfs2dismountvolume()-> ocfs2deleteosb()-> ocfs2freeslotinfo()-> ocfs2freeslotinfo()-> evict()-> ocfs2evictinode()-> ocfs2clearinode()-> jbd2journalreleasejbdinode(osb->journal->jjournal,

Adding osb->journal checks will prevent null-ptr-deref during the above execution path.

Affected Software

12 affected components
Linux Kernel
Microsoft azl3 kernel 6.6.96.2-2
Microsoft azl3 kernel 6.6.104.2-4
Linux Linux kernel>=5.16<6.1.151
Linux Linux kernel>=6.2<6.6.105
Linux Linux kernel>=6.7<6.12.46
Linux Linux kernel>=6.13<6.16.6
Linux Linux kernel=6.17-rc1
Linux Linux kernel=6.17-rc2
Linux Linux kernel=6.17-rc3
Linux Linux kernel=6.17-rc4
Debian Debian Linux=11.0

Event History

Sep 19, 2025
CVE Published
via MITRE·03:26 PM
Data Sourced
via MITRE·03:26 PM
Description
Data Sourced
via NVD·04:15 PM
RemedyDescriptionSeverityAffected Software
Sep 21, 2025
Data Sourced
via Microsoft·01:01 AM
DescriptionSeverityWeaknessAffected Software
Updated
via Microsoft·01:01 AM
DescriptionSeverity
Updated
via Microsoft·01:01 AM
Affected Software

Frequently Asked Questions

1

What is the severity of CVE-2025-39842?

CVE-2025-39842 is considered to have a high severity due to potential risks associated with the release of a journal inode after the journal shutdown in the Linux kernel.

2

How do I fix CVE-2025-39842?

To fix CVE-2025-39842, update your Linux kernel to a version where this vulnerability has been patched.

3

Which versions of the Linux kernel are affected by CVE-2025-39842?

CVE-2025-39842 affects multiple versions of the Linux kernel before the patch was applied; always refer to your distribution's advisory for specific version details.

4

What impact does CVE-2025-39842 have on system security?

CVE-2025-39842 can lead to system instability and potential data loss, compromising overall system security.

5

Is CVE-2025-39842 exploitable remotely?

CVE-2025-39842 requires local access to the system for exploitation, which limits its impact to users with the ability to run code on the affected system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203