CVE-2024-42295

nilfs2: handle inconsistent state in nilfs_btnode_create_block()

No CVSS score yet EPSS 0.23%

Published 17 Aug 2024 Updated 11 May 2026 CNA: Linux

Check your servers for CVE-2024-42295

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-42295 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: handle inconsistent state in nilfs_btnode_create_block()

Syzbot reported that a buffer state inconsistency was detected in nilfs_btnode_create_block(), triggering a kernel bug.

It is not appropriate to treat this inconsistency as a bug; it can occur if the argument block address (the buffer index of the newly created block) is a virtual block number and has been reallocated due to corruption of the bitmap used to manage its allocation state.

So, modify nilfs_btnode_create_block() and its callers to treat it as a possible filesystem error, rather than triggering a kernel bug.

Exploitation

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

The assessment of CISA (SSVC, 10 Sep 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 a60be987d45dd510aeb54389526f9957cfab106c, before 19cce46238ffe3546e44b9c74057103ff8b24c62
affected from a60be987d45dd510aeb54389526f9957cfab106c, before 02b87e6334a38c65eef49848d3f1ac422f0b2a44
affected from a60be987d45dd510aeb54389526f9957cfab106c, before 5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e
affected from a60be987d45dd510aeb54389526f9957cfab106c, before e34191cce3ee63dfa5fb241904aaf2a042d5b6d8
affected from a60be987d45dd510aeb54389526f9957cfab106c, before 012be828a118bf496e666ef1fc47fc0e7358ada2
affected from a60be987d45dd510aeb54389526f9957cfab106c, before be56dfc9be0604291267c07b0e27a69a6bda4899
affected from a60be987d45dd510aeb54389526f9957cfab106c, before 366c3f688dd0288cbe38af1d3a886b5c62372e4a
affected from a60be987d45dd510aeb54389526f9957cfab106c, before 4811f7af6090e8f5a398fbdd766f903ef6c0d787
Other versions: unaffected
Linux
affected 2.6.30
unaffected before 2.6.30
unaffected from 4.19.320 up to and including 4.19.*
unaffected from 5.4.282 up to and including 5.4.*
unaffected from 5.10.224 up to and including 5.10.*
unaffected from 5.15.165 up to and including 5.15.*
unaffected from 6.1.103 up to and including 6.1.*
unaffected from 6.6.44 up to and including 6.6.*
unaffected from 6.10.3 up to and including 6.10.*
unaffected 6.11 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-42295 /usr/share/doc/linux-image-$(uname -r)/changelog.Debian.gz
# RHEL, Rocky, Alma
rpm -q --changelog kernel | grep CVE-2024-42295

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

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