PT-2024-33798 · Linux+7 · Linux Kernel+7

Julian Sun

+1

·

Published

2024-09-02

·

Updated

2025-05-28

·

CVE-2024-49957

CVSS v3.1

5.5

Medium

VectorAV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Name of the Vulnerable Software and Affected Versions: Linux kernel versions prior to 6.6.58
Description: A null-pointer dereference error occurs in the Linux kernel when the journal load fails during the mounting process. This happens because jbd2 journal load() fails with a NULL j sb buffer when journal reset() fails due to a too short journal. As a result, ocfs2 journal shutdown() calls a series of functions, ultimately leading to a null-pointer dereference error in lock buffer(journal->j sb buffer). To resolve this issue, it is recommended to check the JBD2 LOADED flag to ensure the journal was properly loaded and use the journal instead of osb->journal directly to simplify the code.
Recommendations: To resolve this issue, update to Linux kernel version 6.6.58 or later. As a temporary workaround, consider adding a check for the JBD2 LOADED flag before calling lock buffer(journal->j sb buffer) to prevent the null-pointer dereference error. Additionally, modify the code to use the journal instead of osb->journal directly to simplify the code and prevent similar issues.

Exploit

Fix

NULL Pointer Dereference

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

ALT-PU-2024-14046
ALT-PU-2024-14270
ALT-PU-2024-14503
ALT-PU-2024-15739
ALT-PU-2024-16172
AZL-51781
BDU:2025-05137
CVE-2024-49957
DLA-4008-1
DLA-4075-1
MGASA-2024-0344
MGASA-2024-0345
OPENSUSE-SU-2024:14500-1
OPENSUSE-SU-2024_3984-1
OPENSUSE-SU-2024_3986-1
OPENSUSE-SU-2024_4315-1
OPENSUSE-SU-2024_4376-1
OPENSUSE-SU-2025:14705-1
SUSE-SU-2024:3984-1
SUSE-SU-2024:3986-1
SUSE-SU-2024:4100-1
SUSE-SU-2024:4315-1
SUSE-SU-2024:4318-1
SUSE-SU-2024:4364-1
SUSE-SU-2024:4376-1
SUSE-SU-2024:4387-1
SUSE-SU-2025:0034-1
SUSE-SU-2025:20163-1
SUSE-SU-2025:20164-1
SUSE-SU-2025:20246-1
SUSE-SU-2025:20247-1
USN-7166-1
USN-7166-2
USN-7166-3
USN-7166-4
USN-7186-1
USN-7186-2
USN-7194-1
USN-7276-1
USN-7277-1
USN-7293-1
USN-7294-1
USN-7294-2
USN-7294-3
USN-7294-4
USN-7295-1
USN-7301-1
USN-7303-1
USN-7303-2
USN-7303-3
USN-7304-1
USN-7310-1
USN-7311-1
USN-7384-1
USN-7384-2
USN-7385-1
USN-7386-1
USN-7393-1
USN-7401-1
USN-7403-1
USN-7413-1
USN-7468-1
USN-7539-1
USN-7540-1

Affected Products

Alt Linux
Astra Linux
Debian
Linuxmint
Linux Kernel
Red Os
Suse
Ubuntu