CVE-2024-49957
Linux Kernel OCFS2 Null Pointer Dereference Vulnerability
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.
INFO
Published Date :
Oct. 21, 2024, 6:15 p.m.
Last Modified :
Nov. 8, 2024, 4:15 p.m.
Source :
416baaa9-dc9f-4396-8d5f-8c081fb06d67
Remotely Exploitable :
No
Impact Score :
3.6
Exploitability Score :
1.8
References to Advisories, Solutions, and Tools
Here, you will find a curated list of external links that provide in-depth
information, practical solutions, and valuable tools related to
CVE-2024-49957
.
We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).
Results are limited to the first 15 repositories due to potential performance issues.
The following list is the news that have been mention
CVE-2024-49957
vulnerability anywhere in the article.
The following table lists the changes that have been made to the
CVE-2024-49957
vulnerability over time.
Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.
-
CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Nov. 08, 2024
Action Type Old Value New Value Added Reference kernel.org https://git.kernel.org/stable/c/fd89d92c1140cee8f59de336cb37fa65e359c123 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/703b2c7e0798d263154dc8593dc2345f75dc077f [No types assigned] -
Initial Analysis by [email protected]
Oct. 28, 2024
Action Type Old Value New Value Added CVSS V3.1 NIST AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H Changed Reference Type https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962 No Types Assigned https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962 Patch Changed Reference Type https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a No Types Assigned https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a Patch Changed Reference Type https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f No Types Assigned https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f Patch Changed Reference Type https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b No Types Assigned https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b Patch Changed Reference Type https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649 No Types Assigned https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649 Patch Changed Reference Type https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120 No Types Assigned https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120 Patch Changed Reference Type https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05 No Types Assigned https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05 Patch Added CWE NIST CWE-476 Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.32 up to (excluding) 5.10.227 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.168 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.113 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.55 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.10.14 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.11 up to (excluding) 6.11.3 -
CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Oct. 21, 2024
Action Type Old Value New Value Added 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. Added Reference kernel.org https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962 [No types assigned] Added Reference kernel.org https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a [No types assigned]
CWE - Common Weakness Enumeration
While CVE identifies
specific instances of vulnerabilities, CWE categorizes the common flaws or
weaknesses that can lead to vulnerabilities. CVE-2024-49957
is
associated with the following CWEs:
Common Attack Pattern Enumeration and Classification (CAPEC)
Common Attack Pattern Enumeration and Classification
(CAPEC)
stores attack patterns, which are descriptions of the common attributes and
approaches employed by adversaries to exploit the CVE-2024-49957
weaknesses.