CVE-2024-49957
ocfs2: fix null-ptr-deref when journal load failed.
Check your servers for CVE-2024-49957
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2024-49957 affects the running kernel, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 0.25%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 17.5% of all scored CVEs. Scores of 1 Dec 2026.
The assessment of CISA (SSVC, 22 Oct 2024):
- Exploitation
- none: CISA did not find evidence of exploitation or a public proof of concept
- Automatable
- no: each attack takes manual steps
- Technical impact
- partial: limited control or limited data
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
| Linux |
affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before fd89d92c1140cee8f59de336cb37fa65e359c123 affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before 703b2c7e0798d263154dc8593dc2345f75dc077f affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before bf605ae98dab5c15c5b631d4d7f88898cb41b649 affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before ff55291fb36779819211b596da703389135f5b05 affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before 82dfdd1e31e774578f76ce6dc90c834f96403a0f affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before 86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before f60e94a83db799bde625ac8671a5b4a6354e7120 affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before 387bf565cc03e2e8c720b8b4798efea4aacb6962 affected from f6f50e28f0cb8d7bcdfaacc83129f005dede11b1, before 5784d9fcfd43bd853654bb80c87ef293b9e8e80a
Other versions: unaffected
|
| Linux |
affected 2.6.32 unaffected before 2.6.32 unaffected from 4.19.323 up to and including 4.19.* unaffected from 5.4.285 up to and including 5.4.* unaffected from 5.10.227 up to and including 5.10.* unaffected from 5.15.168 up to and including 5.15.* unaffected from 6.1.113 up to and including 6.1.* unaffected from 6.6.55 up to and including 6.6.* unaffected from 6.10.14 up to and including 6.10.* unaffected from 6.11.3 up to and including 6.11.* unaffected 6.12 and later
Other versions: affected
|
Is my server affected?
This CVE is in the Linux kernel. Compare the running kernel with the fixed kernel version of your distribution, and reboot after a kernel update:
uname -r
# Debian, Ubuntu: does the changelog of the running kernel name the CVE?
zgrep -l CVE-2024-49957 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49957
With Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2024-49957
trivy image --scanners vuln IMAGE | grep CVE-2024-49957
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Other references
- https://git.kernel.org/stable/c/fd89d92c1140cee8f59de336cb37fa65e359c123 git.kernel.org
- https://git.kernel.org/stable/c/703b2c7e0798d263154dc8593dc2345f75dc077f git.kernel.org
- https://git.kernel.org/stable/c/bf605ae98dab5c15c5b631d4d7f88898cb41b649 git.kernel.org
- https://git.kernel.org/stable/c/ff55291fb36779819211b596da703389135f5b05 git.kernel.org
- https://git.kernel.org/stable/c/82dfdd1e31e774578f76ce6dc90c834f96403a0f git.kernel.org
- https://git.kernel.org/stable/c/86a89e75e9e4dfa768b97db466ad6bedf2e7ea5b git.kernel.org
- https://git.kernel.org/stable/c/f60e94a83db799bde625ac8671a5b4a6354e7120 git.kernel.org
- https://git.kernel.org/stable/c/387bf565cc03e2e8c720b8b4798efea4aacb6962 git.kernel.org
- https://git.kernel.org/stable/c/5784d9fcfd43bd853654bb80c87ef293b9e8e80a git.kernel.org
- https://lists.debian.org/debian-lts-announce/2025/03/msg00002.html lists.debian.org
- https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html lists.debian.org
Source: the record CVE-2024-49957 of the CVE List (CVE Program), CVE Terms of Use; the CISA KEV catalog and the CISA ADP container; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse