# CVE-2024-42295: nilfs2: handle inconsistent state in nilfs_btnode_create_block()

- Severity: Medium 5.5 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.32%, higher than 18% of CVEs (2026-11-30)
- Published: 2024-08-17T09:09:03.618Z
- Modified: 2026-06-17T07:49:12.007Z
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

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

(As written by CVE List.)

## Affected

- Linux Linux: from a60be987d45dd510aeb54389526f9957cfab106c before 19cce46238ffe3546e44b9c74057103ff8b24c62; from a60be987d45dd510aeb54389526f9957cfab106c before 02b87e6334a38c65eef49848d3f1ac422f0b2a44; from a60be987d45dd510aeb54389526f9957cfab106c before 5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e; from a60be987d45dd510aeb54389526f9957cfab106c before e34191cce3ee63dfa5fb241904aaf2a042d5b6d8; from a60be987d45dd510aeb54389526f9957cfab106c before 012be828a118bf496e666ef1fc47fc0e7358ada2; from a60be987d45dd510aeb54389526f9957cfab106c before be56dfc9be0604291267c07b0e27a69a6bda4899; from a60be987d45dd510aeb54389526f9957cfab106c before 366c3f688dd0288cbe38af1d3a886b5c62372e4a; from a60be987d45dd510aeb54389526f9957cfab106c before 4811f7af6090e8f5a398fbdd766f903ef6c0d787; 2.6.30 (not affected: before 2.6.30; from 4.19.320 up to 4.19.*; from 5.4.282 up to 5.4.*; from 5.10.224 up to 5.10.*; from 5.15.165 up to 5.15.*; from 6.1.103 up to 6.1.*; from 6.6.44 up to 6.6.*; from 6.10.3 up to 6.10.*; from 6.11 up to *)
- linux linux_kernel: from 2.6.30 before 4.19.320; from 4.20 before 5.4.282; from 5.5 before 5.10.224; from 5.11 before 5.15.165; from 5.16 before 6.1.103; from 6.2 before 6.6.44; from 6.7 before 6.10.3

## References

- <https://git.kernel.org/stable/c/19cce46238ffe3546e44b9c74057103ff8b24c62> (patch)
- <https://git.kernel.org/stable/c/02b87e6334a38c65eef49848d3f1ac422f0b2a44> (patch)
- <https://git.kernel.org/stable/c/5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e> (patch)
- <https://git.kernel.org/stable/c/e34191cce3ee63dfa5fb241904aaf2a042d5b6d8> (patch)
- <https://git.kernel.org/stable/c/012be828a118bf496e666ef1fc47fc0e7358ada2> (patch)
- <https://git.kernel.org/stable/c/be56dfc9be0604291267c07b0e27a69a6bda4899> (patch)
- <https://git.kernel.org/stable/c/366c3f688dd0288cbe38af1d3a886b5c62372e4a> (patch)
- <https://git.kernel.org/stable/c/4811f7af6090e8f5a398fbdd766f903ef6c0d787> (patch)
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

## Sources

- CVE List: [CVE-2024-42295](https://www.cve.org/CVERecord?id=CVE-2024-42295), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2024-42295](https://nvd.nist.gov/vuln/detail/CVE-2024-42295), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2024-42295 · Whole record: https://cve.day/CVE-2024-42295.json · Rebuilt by cve.day 2026-11-25T22:58:44.472Z
