Back

HIGH

f2fs: fix KMSAN uninit-value in extent_info usage

Published Aug 19, 2025

Description

KMSAN reported a use of uninitialized value in `__is_extent_mergeable()` and `__is_back_mergeable()` via the read extent tree path.

The root cause is that `get_read_extent_info()` only initializes three fields (`fofs`, `blk`, `len`) of `struct extent_info`, leaving the remaining fields uninitialized. This leads to undefined behavior when those fields are accessed later, especially during extent merging.

Fix it by zero-initializing the `extent_info` struct before population.

Affected products

Remediation

No remediation recorded yet.

Metrics

Weaknesses (1)

References (13)

Change history (0)

No recorded changes yet.

Sources
CVE.org / MITRE
Status PUBLISHED
Assigner Linux
Published Aug 19, 2025
Updated Aug 5, 2026
Reserved Apr 16, 2025
NVD
Status Modified
Modified Jul 30, 2026
Red Hat
Severity n/a
Public date Aug 19, 2025