# CVE-2024-26697: nilfs2: fix data corruption in dsync block recovery for small block sizes

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

## Description

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

nilfs2: fix data corruption in dsync block recovery for small block sizes

The helper function nilfs_recovery_copy_block() of
nilfs_recovery_dsync_blocks(), which recovers data from logs created by
data sync writes during a mount after an unclean shutdown, incorrectly
calculates the on-page offset when copying repair data to the file's page
cache.  In environments where the block size is smaller than the page
size, this flaw can cause data corruption and leak uninitialized memory
bytes during the recovery process.

Fix these issues by correcting this byte offset calculation on the page.
```

## Signals

- CVSS: 7.8 high (v3.1, CVE.org) CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- EPSS: 0.263%, percentile 19.266%, 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 122)

- debian linux (Debian): \< 6.1.82-1 \| \< 6.7.7-1
- ubuntu linux (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-181.201 \| \< 5.15.0-106.116
- ubuntu linux-allwinner-5.19 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-aws (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1124.134 \| \< 5.15.0-1061.67
- 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-1061.67~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-1124.134~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): \< 6.5.0-1023.23~22.04.1
- ubuntu linux-aws-fips (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1124.134+fips1 \| \< 5.15.0-1061.67+fips1
- ubuntu linux-aws-hwe (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure (Ubuntu): All versions (No fix recorded) \| \< 5.4.0-1129.136 \| \< 5.15.0-1063.72
- ubuntu linux-azure-4.15 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.11 (Ubuntu): All versions (No fix recorded)
- ubuntu linux-azure-5.13 (Ubuntu): All versions (No fix recorded)

## References (first 20 of 26)

- <https://git.kernel.org/stable/c/5278c3eb6bf5896417572b52adb6be9d26e92f65>
- <https://git.kernel.org/stable/c/a6efe6dbaaf504f5b3f8a5c3f711fe54e7dda0ba>
- <https://git.kernel.org/stable/c/364a66be2abdcd4fd426ffa44d9b8f40aafb3caa>
- <https://git.kernel.org/stable/c/120f7fa2008e3bd8b7680b4ab5df942decf60fd5>
- <https://git.kernel.org/stable/c/9c9c68d64fd3284f7097ed6ae057c8441f39fcd3>
- <https://git.kernel.org/stable/c/2e1480538ef60bfee5473dfe02b1ecbaf1a4aa0d>
- <https://git.kernel.org/stable/c/2000016bab499074e6248ea85aeea7dd762355d9>
- <https://git.kernel.org/stable/c/67b8bcbaed4777871bb0dcc888fb02a614a98ab1>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>
- <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- <https://ubuntu.com/security/CVE-2024-26697>
- <https://git.kernel.org/linus/67b8bcbaed4777871bb0dcc888fb02a614a98ab1>
- <https://www.cve.org/CVERecord?id=CVE-2024-26697>
- <https://ubuntu.com/security/notices/USN-6766-1>
- <https://ubuntu.com/security/notices/USN-6767-1>
- <https://ubuntu.com/security/notices/USN-6767-2>
- <https://ubuntu.com/security/notices/USN-6766-2>
- <https://ubuntu.com/security/notices/USN-6766-3>
- <https://ubuntu.com/security/notices/USN-6795-1>
- <https://ubuntu.com/security/notices/USN-6828-1>

---

Data as of 2026-12-05T04:20:21.196Z. 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
