CVE-2024-49957
Last modified
CVE-2024-49957 is a medium-severity vulnerability rated 5.5/10 on the CVSS scale. In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix null-ptr-deref when journal load failed. During the mounting process, if journal_reset() fails because of too short journal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. Subsequently, ocfs2_journal_shutdown() calls jbd2_journal_flush()->jbd2_cleanup_journal_tail()-> __jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail() ->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer dereference error. To resolve this issue, we should check the JBD2_LOADED flag to ensure the journal was properly loaded. EPSS estimates a 0.25% chance of exploitation in the next 30 days.
Description
In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix null-ptr-deref when journal load failed. During the mounting process, if journal_reset() fails because of too short journal, then lead to jbd2_journal_load() fails with NULL j_sb_buffer. Subsequently, ocfs2_journal_shutdown() calls jbd2_journal_flush()->jbd2_cleanup_journal_tail()-> __jbd2_update_log_tail()->jbd2_journal_update_sb_log_tail() ->lock_buffer(journal->j_sb_buffer), resulting in a null-pointer dereference error. To resolve this issue, we should check the JBD2_LOADED flag to ensure the journal was properly loaded. Additionally, use journal instead of osb->journal directly to simplify the code.
Metrics
CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Linux | Linux Kernel | >= 2.6.32, < 5.10.227 |
| Linux | Linux Kernel | >= 5.11, < 5.15.168 |
| Linux | Linux Kernel | >= 5.16, < 6.1.113 |
| Linux | Linux Kernel | >= 6.2, < 6.6.55 |
| Linux | Linux Kernel | >= 6.7, < 6.10.14 |
| Linux | Linux Kernel | >= 6.11, < 6.11.3 |
References
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2024-49957?
How severe is CVE-2024-49957?
How do I fix CVE-2024-49957?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2024
- CVE-2024-49951In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49952In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49953In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49954In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49955In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49956In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49958In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49959In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-4996Use of a hard-coded password for a database administrator ac…9.8
- CVE-2024-49960In the Linux kernel, the following vulnerability has been re…7.8
- CVE-2024-49961In the Linux kernel, the following vulnerability has been re…5.5
- CVE-2024-49962In the Linux kernel, the following vulnerability has been re…5.5
Are you affected by CVE-2024-49957?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
