CVE-2025-38579
NoneCVSS
—
EPSS
0.2%
Published
Aug 19, 2025
CISA due date
—
Cloudanix analysis
A bug in Linux storage handling code could cause systems to crash or behave unexpectedly during normal file operations.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Other
- Component
- OS kernel
- Class
- Memory Corruption
- Remediation
- Patch
- Effort
- Medium
- Patch risk
- Low
What it actually does
Use of uninitialized fields in struct extent_info within f2fs read extent tree path, specifically in __is_extent_mergeable and __is_back_mergeable after partial initialization by get_read_extent_info, resulting in undefined behavior on access during extent merging.
Why it matters to the business
Risk of kernel instability, crashes, or unpredictable behavior on Linux systems using f2fs, potentially disrupting storage operations and requiring restarts; widespread impact due to kernel prevalence with low but present exploitation probability.
How an attack unfolds
An attacker with local access crafts file system operations that traverse the read extent tree, triggering access to uninitialized fields during merge checks; listed threat actors focus on related kernel privilege escalations on container-optimized OS but no direct public exploit for this issue exists.
How to fix it
Update to fixed kernel commit 08e8ab00a6d20d5544c932ee85a297d833895141 or Chainguard package versions 0.53.0-r0 for affected OpenJDK-11-openj9 variants; rebuild and reboot systems after applying the zero-initialization patch.
How to confirm the fix worked
Verify kernel source contains the zero-initialization of extent_info struct before population in get_read_extent_info; re-run KMSAN on f2fs extent paths or confirm absence of uninit-value reports in affected merge functions.
Typical attack path
- Obtain local code execution or user access on target Linux system
- Perform file I/O operations that populate and merge read extents in f2fs
- Trigger path through get_read_extent_info followed by mergeability checks
- Cause undefined behavior from uninitialized struct fields leading to crash or corruption
How to detect it
Search kernel logs for KMSAN reports or uninitialized value warnings involving extent_info, __is_extent_mergeable, or f2fs read paths; review system crashes correlated with f2fs extent merging activity.
What your security team should do
- Prioritize patching production Linux kernels with f2fs within 30 days given publication age
- Monitor for related kernel privilege escalation activity from listed threat actors
- Test fixed versions in staging before broad deployment
- Audit f2fs usage in container and storage workloads for exposure
The record
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix KMSAN uninit-value in extent_info usage 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 packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | No fix |
| Debian:14 | linux | 0 | No fix |
| Debian:14 | linux | 0 | 6.16.3-1 |
| Linux | Kernel | 5.15.0 | 5.15.190 |
| Mageia:9 | kernel | 0 | 6.6.105-1.mga9 |
| Mageia:9 | kernel-linus | 0 | 6.6.105-1.mga9 |
| Mageia:9 | kmod-virtualbox | 0 | 7.1.10-10.mga9 |
| Mageia:9 | kmod-xtables-addons | 0 | 3.24-86.mga9 |
| Mageia:9 | mageia-repos | 0 | 9-4.mga9 |
| Mageia:9 | meta-task | 0 | 9-4.mga9 |
Related vulnerabilities
- CVE-2025-39885 In the Linux kernel, the following vulnerability has been resolved: ocfs2: fix recursive… Also affects linux
- CVE-2025-39883 In the Linux kernel, the following vulnerability has been resolved: mm/memory-failure… Also affects linux
- CVE-2025-39886 In the Linux kernel, the following vulnerability has been resolved: bpf: Tell memcg to… Also affects linux
- CVE-2025-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39880 In the Linux kernel, the following vulnerability has been resolved: libceph: fix invalid… Also affects linux
- CVE-2025-39881 In the Linux kernel, the following vulnerability has been resolved: kernfs: Fix UAF in… Also affects linux
- CVE-2025-39877 In the Linux kernel, the following vulnerability has been resolved: mm/damon/sysfs: fix… Also affects linux
- CVE-2025-39871 In the Linux kernel, the following vulnerability has been resolved: dmaengine: idxd… Also affects linux