# CVE-2024-42295: nilfs2: handle inconsistent state in nilfs\_btnode\_create\_block()

- Priority: **Routine**
- Reason: Not severe (CVSS 5.5, local access); no exploitation reported by the 5 checked sources
- Next step: Fix in the normal cadence
- Status: published
- Published: 2024-08-17 · Modified: 2026-05-11
- Aliases: UBUNTU-CVE-2024-42295, DEBIAN-CVE-2024-42295
- Record: https://cvemate.com/vulnerability/CVE-2024-42295 · JSON: https://cvemate.com/vulnerability/CVE-2024-42295/json

## Description

```text
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.
```

## Signals

- CVSS: 5.5 medium (v3.1, NVD) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
- EPSS: 0.234%, percentile 15.333%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 0

## Affected (first 20 of 133)

- debian linux (Debian): \< 6.1.106-1 \| \< 6.10.3-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-200.220 \| \< 5.15.0-125.135 \| \< 6.8.0-50.51
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1135.145 \| \< 5.15.0-1072.78 \| \< 6.8.0-1020.22
- ubuntu linux-aws-5.0 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.13 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.15 (Ubuntu): \< 5.15.0-1072.78~20.04.1
- ubuntu linux-aws-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.3 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-5.4 (Ubuntu): \< 5.4.0-1135.145~18.04.1
- ubuntu linux-aws-5.8 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.2 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.5 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws-6.8 (Ubuntu): \< 6.8.0-1020.22~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1135.145+fips1 \| \< 5.15.0-1072.78+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1140.147 \| \< 5.15.0-1075.84 \| \< 6.8.0-1020.23
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 30)

- <https://git.kernel.org/stable/c/19cce46238ffe3546e44b9c74057103ff8b24c62>
- <https://git.kernel.org/stable/c/02b87e6334a38c65eef49848d3f1ac422f0b2a44>
- <https://git.kernel.org/stable/c/5f0a6800b8aec1b453c7fe4c44fcaac5ffe9d52e>
- <https://git.kernel.org/stable/c/e34191cce3ee63dfa5fb241904aaf2a042d5b6d8>
- <https://git.kernel.org/stable/c/012be828a118bf496e666ef1fc47fc0e7358ada2>
- <https://git.kernel.org/stable/c/be56dfc9be0604291267c07b0e27a69a6bda4899>
- <https://git.kernel.org/stable/c/366c3f688dd0288cbe38af1d3a886b5c62372e4a>
- <https://git.kernel.org/stable/c/4811f7af6090e8f5a398fbdd766f903ef6c0d787>
- <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>
- <https://ubuntu.com/security/CVE-2024-42295>
- <https://www.cve.org/CVERecord?id=CVE-2024-42295>
- <https://git.kernel.org/linus/4811f7af6090e8f5a398fbdd766f903ef6c0d787>
- <https://ubuntu.com/security/notices/USN-7088-1>
- <https://ubuntu.com/security/notices/USN-7088-2>
- <https://ubuntu.com/security/notices/USN-7088-3>
- <https://ubuntu.com/security/notices/USN-7088-4>
- <https://ubuntu.com/security/notices/USN-7100-1>
- <https://ubuntu.com/security/notices/USN-7100-2>
- <https://ubuntu.com/security/notices/USN-7088-5>

---

Data as of 2026-12-05T04:12:47.268Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
