CVE-2024-47757

nilfs2: fix potential oob read in nilfs_btree_check_delete()

No CVSS score yet EPSS 0.24%

Published 21 Oct 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-47757

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-47757 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:

nilfs2: fix potential oob read in nilfs_btree_check_delete()

The function nilfs_btree_check_delete(), which checks whether degeneration to direct mapping occurs before deleting a b-tree entry, causes memory access outside the block buffer when retrieving the maximum key if the root node has no entries.

This does not usually happen because b-tree mappings with 0 child nodes are never created by mkfs.nilfs2 or nilfs2 itself. However, it can happen if the b-tree root node read from a device is configured that way, so fix this potential issue by adding a check for that case.

Exploitation

EPSS 0.24%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 16.0% of all scored CVEs. Scores of 1 Dec 2026.

The assessment of CISA (SSVC, 21 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 17c76b0104e4a6513983777e1a17e0297a12b0c4, before f3a9859767c7aea758976f5523903d247e585129
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before ed76d381dae125b81d09934e365391a656249da8
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before d20674f31626e0596ae4c1d9401dfb6739b81b58
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before c4f8554996e8ada3be872dfb8f60e93bcf15fb27
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before a8abfda768b9f33630cfbc4af6c4214f1e5681b0
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before 257f9e5185eb6de83377caea686c306e22e871f2
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before a33e967b681e088a125b979975c93e3453e686cd
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before c4cbcc64bb31e67e02940ce060cc77f7180564cf
affected from 17c76b0104e4a6513983777e1a17e0297a12b0c4, before f9c96351aa6718b42a9f42eaf7adce0356bdb5e8
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
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.54 up to and including 6.6.*
unaffected from 6.10.13 up to and including 6.10.*
unaffected from 6.11.2 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-47757 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-47757

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

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