CVE-2024-49957: Linux Kernel - Null Pointer Dereference
- Cve: CVE-2024-49957
- Name: Linux Kernel - Null Pointer Dereference
- 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.
- Impact: Kernel panic or crash during mounting, leading to denial of service or system instability.
- Remediation: Apply the patch that checks the JBD2_LOADED flag and uses journal instead of osb->journal as recommended.
- Vulnerability type: null_pointer_dereference
- Vulnerability impact: denial_of_service
- Requirement type: none
- Labels source: projectdiscovery
- Severity: medium
- Cvss score: 5.5
- Cvss vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- Epss score: 0.0025
- Epss percentile: 0.16444
- Assignee: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
- Published at: 2024-10-21T18:15:16Z
- Age in days: 764
- Modified at: 2026-06-17T08:00:49Z
- Patch available: yes
- References total: 11
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2024-49957
- Nvd status: modified
- Checked, none or zero: known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, rejected by nvd
- Not known: requirements, hackerone
Cwe
| Id | Name |
|---|---|
| CWE-476 | NULL Pointer Dereference |
References
Same in every row:
- Source: nvd
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| linux:linux_kernel | >= 6.11, < 6.11.3; >= 6.7, < 6.10.14; >= 6.2, < 6.6.55; >= 5.16, < 6.1.113; >= 5.11, < 5.15.168; >= 2.6.32, < 5.10.227 | no | nvd | /v1/products/linux/linux_kernel |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| torvalds/linux | cna_commit, commit | yes | /v1/repositories/torvalds/linux |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Authentication required: yes
- Exposed hosts: 10038339
- Checked, none or zero: known exploited, known exploited by, exploitation seen, public exploit, public exploit count, initial access, remote
- Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports