# CVE-2024-49957: ocfs2: fix null-ptr-deref when journal load failed.

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.32% (percentile 17, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2024-10-21T18:02:11.046Z
- **Modified:** 2026-06-17T08:00:49.240Z

## Who should check

- Anyone running Linux \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< fd89d92c1140cee8f59de336cb37fa65e359c123; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 703b2c7e0798d263154dc8593dc2345f75dc077f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< bf605ae98dab5c15c5b631d4d7f88898cb41b649; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< ff55291fb36779819211b596da703389135f5b05; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 82dfdd1e31e774578f76ce6dc90c834f96403a0f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< f60e94a83db799bde625ac8671a5b4a6354e7120; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 387bf565cc03e2e8c720b8b4798efea4aacb6962; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 5784d9fcfd43bd853654bb80c87ef293b9e8e80a
- Anyone running Linux 2.6.32

## 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 and fixed versions

- Linux: \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< fd89d92c1140cee8f59de336cb37fa65e359c123; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 703b2c7e0798d263154dc8593dc2345f75dc077f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< bf605ae98dab5c15c5b631d4d7f88898cb41b649; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< ff55291fb36779819211b596da703389135f5b05; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 82dfdd1e31e774578f76ce6dc90c834f96403a0f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< f60e94a83db799bde625ac8671a5b4a6354e7120; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 387bf565cc03e2e8c720b8b4798efea4aacb6962; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 5784d9fcfd43bd853654bb80c87ef293b9e8e80a (cvelist)
- Linux: 2.6.32 (cvelist)

## Mitigation

- Upgrade Linux to 5784d9fcfd43bd853654bb80c87ef293b9e8e80a or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-49957. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-49957.md
Affected: Linux >= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, < fd89d92c1140cee8f59de336cb37fa65e359c123; >= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, < 703b2c7e0798d263154dc8593dc2345f75dc077f; >= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, < bf605ae98dab5c15c5b631d4d7f88898cb41b649; >= f6f50e28f0cb8d7bcdfaacc…
Fixed in: Linux 703b2c7e0798d263154dc8593dc2345f75dc077f, Linux 82dfdd1e31e774578f76ce6dc90c834f96403a0f, Linux 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b, Linux 387bf565cc03e2e8c720b8b4798efea4aacb6962, Linux 5784d9fcfd43bd853654bb80c87ef293b9e8e80a

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-49957 being exploited?

There is no confirmed exploitation: CVE-2024-49957 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.32% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-49957?

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-49957?

Linux \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< fd89d92c1140cee8f59de336cb37fa65e359c123; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 703b2c7e0798d263154dc8593dc2345f75dc077f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< bf605ae98dab5c15c5b631d4d7f88898cb41b649; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< ff55291fb36779819211b596da703389135f5b05; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 82dfdd1e31e774578f76ce6dc90c834f96403a0f; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< f60e94a83db799bde625ac8671a5b4a6354e7120; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 387bf565cc03e2e8c720b8b4798efea4aacb6962; \>= f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, \< 5784d9fcfd43bd853654bb80c87ef293b9e8e80a; Linux 2.6.32.

### Is there a fix for CVE-2024-49957?

Yes. Fixed in Linux 703b2c7e0798d263154dc8593dc2345f75dc077f, Linux 82dfdd1e31e774578f76ce6dc90c834f96403a0f, Linux 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b, Linux 387bf565cc03e2e8c720b8b4798efea4aacb6962, Linux 5784d9fcfd43bd853654bb80c87ef293b9e8e80a. Upgrade Linux to 5784d9fcfd43bd853654bb80c87ef293b9e8e80a or later.

### How do I check if I'm affected by CVE-2024-49957?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649>
- patch: <https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05>
- patch: <https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f>
- patch: <https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b>
- patch: <https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120>
- patch: <https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962>
- patch: <https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a>
- other: <https://git.kernel.org/stable/c/fd89d92c1140cee8f59de336cb37fa65e359c123>
- other: <https://git.kernel.org/stable/c/703b2c7e0798d263154dc8593dc2345f75dc077f>
- other: <https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-49957>

HTML: <https://flawdb.com/CVE-2024-49957> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-49957>
