CVE-2024-49957

ocfs2: fix null-ptr-deref when journal load failed.

MEDIUM
5.5
CVSS Score
Published: October 21, 2024 at 06:02 PM UTC
Updated: June 17, 2026 at 08:00 AM UTC
1 product affected across 1 vendorLinux Kernel

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.6.32 ≤ v < 4.19.3232.6.32 ≤ v < 5.10.2272.6.32 ≤ v < 5.15.1682.6.32 ≤ v < 5.4.2852.6.32 ≤ v < 6.1.1132.6.32 ≤ v < 6.10.142.6.32 ≤ v < 6.11.32.6.32 ≤ v < 6.122.6.32 ≤ v < 6.6.555.11 ≤ v < 5.15.1685.16 ≤ v < 6.1.1136.11 ≤ v < 6.11.36.2 ≤ v < 6.6.556.7 ≤ v < 6.10.142.6.32f6f50e28f0cb8d7bcdfaacc83129f005dede11b1
Vendor states this is fixed in 387bf565cc03e2e8c720b8b4798efea4aacb6962 (fixed)
Vendor states this is fixed in 5784d9fcfd43bd853654bb80c87ef293b9e8e80a (fixed)
Vendor states this is fixed in 703b2c7e0798d263154dc8593dc2345f75dc077f (fixed)
Vendor states this is fixed in 82dfdd1e31e774578f76ce6dc90c834f96403a0f (fixed)
Vendor states this is fixed in 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b (fixed)
Vendor states this is fixed in bf605ae98dab5c15c5b631d4d7f88898cb41b649 (fixed)
Vendor states this is fixed in f60e94a83db799bde625ac8671a5b4a6354e7120 (fixed)
Vendor states this is fixed in fd89d92c1140cee8f59de336cb37fa65e359c123 (fixed)
Vendor states this is fixed in ff55291fb36779819211b596da703389135f5b05 (fixed)
Vendor states this is fixed in 2.6.32 (unaffected)
Vendor states this is fixed in 4.19.323 (unaffected)
Vendor states this is fixed in 5.10.227 (unaffected)
Vendor states this is fixed in 5.15.168 (unaffected)
Vendor states this is fixed in 5.4.285 (unaffected)
Vendor states this is fixed in 6.1.113 (unaffected)
Vendor states this is fixed in 6.10.14 (unaffected)
Vendor states this is fixed in 6.11.3 (unaffected)
Vendor states this is fixed in 6.12 (unaffected)
Vendor states this is fixed in 6.6.55 (unaffected)

References (11)

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-476

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card