CVE-2024-49877

ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate

No CVSS score yet EPSS 0.25%

Published 21 Oct 2024 Updated 23 May 2026 CNA: Linux

Check your servers for CVE-2024-49877

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-49877 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.

Check my servers

Description

In the Linux kernel, the following vulnerability has been resolved:

ocfs2: fix possible null-ptr-deref in ocfs2_set_buffer_uptodate

When doing cleanup, if flags without OCFS2_BH_READAHEAD, it may trigger NULL pointer dereference in the following ocfs2_set_buffer_uptodate() if bh is NULL.

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.

ProductVersions
Linux
affected from 6c150df9c2e80b5cf86f5a0d98beb7390ad63bfc, before 190d98bcd61117a78fe185222d162180f061a6ca
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before e68c8323355e8cedfbe0bec7d5a39009f61640b6
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before 61b84013e560382cbe7dd56758be3154d43a3988
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before df944dc46d06af65a75191183d52be017e6b9dbe
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before 01cb2e751cc61ade454c9bc1aaa2eac1f8197112
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before d52c5652e7dcb7a0648bbb8642cc3e617070ab49
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before 46b1edf0536a5291a8ad2337f88c926214b209d9
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before 4846e72ab5a0726e49ad4188b9d9df091ae78c64
affected from cf76c78595ca87548ca5e45c862ac9e0949c4687, before 33b525cef4cff49e216e4133cc48452e11c0391e
affected 01f93d5e36753fc4d06ec67f05ce78c9c6f2dd56
affected 65cbd1279f4b999d56a838344a30642db24cd215
affected 97e1db17bc1ef4c2e1789bc9323c7be44fba53f8
affected from 4.19.87, before 4.19.323
affected from 4.4.204, before 4.5
affected from 4.9.204, before 4.10
affected from 4.14.157, before 4.15
Other versions: unaffected
Linux
affected 4.20
unaffected before 4.20
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-49877 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-49877

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-49877
trivy image --scanners vuln IMAGE | grep CVE-2024-49877

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

Source: the record CVE-2024-49877 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.