CVE-2024-26697

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

MEDIUM
5.5
CVSS Score
Published: April 3, 2024 at 02:54 PM UTC
Updated: August 5, 2026 at 12:04 PM UTC
2 products affected across 2 vendorsLinux KernelDebian Linux

Using Linux by Linux?

Get instant alerts when new vulnerabilities affect Linux - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
MEDIUM5.5
Exploit prediction
EPSS 0.3%
SSVC
No known exploit

Description

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.

Affected

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

v < 4.19.3072.6.30 ≤ v < 4.19.3072.6.30 ≤ v < 5.10.2102.6.30 ≤ v < 5.15.1492.6.30 ≤ v < 5.4.2692.6.30 ≤ v < 6.1.792.6.30 ≤ v < 6.6.182.6.30 ≤ v < 6.7.62.6.30 ≤ v < 6.84.20 ≤ v < 5.4.2695.11 ≤ v < 5.15.1495.16 ≤ v < 6.1.795.5 ≤ v < 5.10.2106.2 ≤ v < 6.6.186.7 ≤ v < 6.7.60f3e1c7f23f8a6f8224fa1d275381f6d9279ad4b6.8 rc16.8 rc26.8 rc3
Vendor states this is fixed in 120f7fa2008e3bd8b7680b4ab5df942decf60fd5 (fixed)
Vendor states this is fixed in 2000016bab499074e6248ea85aeea7dd762355d9 (fixed)
Vendor states this is fixed in 2e1480538ef60bfee5473dfe02b1ecbaf1a4aa0d (fixed)
Vendor states this is fixed in 364a66be2abdcd4fd426ffa44d9b8f40aafb3caa (fixed)
Vendor states this is fixed in 5278c3eb6bf5896417572b52adb6be9d26e92f65 (fixed)
Vendor states this is fixed in 67b8bcbaed4777871bb0dcc888fb02a614a98ab1 (fixed)
Vendor states this is fixed in 9c9c68d64fd3284f7097ed6ae057c8441f39fcd3 (fixed)
Vendor states this is fixed in a6efe6dbaaf504f5b3f8a5c3f711fe54e7dda0ba (fixed)
Vendor states this is fixed in 2.6.30 (unaffected)
Vendor states this is fixed in 4.19.307 (unaffected)
Vendor states this is fixed in 5.10.210 (unaffected)
Vendor states this is fixed in 5.15.149 (unaffected)
Vendor states this is fixed in 5.4.269 (unaffected)
Vendor states this is fixed in 6.1.79 (unaffected)
Vendor states this is fixed in 6.6.18 (unaffected)
Vendor states this is fixed in 6.7.6 (unaffected)
Vendor states this is fixed in 6.8 (unaffected)

References (10)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/120f7fa2008e3bd8b7680b4ab5df942decf60fd5
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2000016bab499074e6248ea85aeea7dd762355d9
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/2e1480538ef60bfee5473dfe02b1ecbaf1a4aa0d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/364a66be2abdcd4fd426ffa44d9b8f40aafb3caa
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5278c3eb6bf5896417572b52adb6be9d26e92f65
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/67b8bcbaed4777871bb0dcc888fb02a614a98ab1
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/9c9c68d64fd3284f7097ed6ae057c8441f39fcd3
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/a6efe6dbaaf504f5b3f8a5c3f711fe54e7dda0ba

SSVC — Action Prioritization

SSVCNo known exploitNot automatablePartial impact

SSVC signals action urgency (what to patch first), separate from CVSS which measures severity.

CVSS

Attack Vector
LOCAL
Complexity
LOW
Privileges
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
NONE
Integrity
NONE
Availability
HIGH
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-787

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card