CVE-2025-38333
NoneCVSS
—
EPSS
0.2%
Published
Jul 10, 2025
CISA due date
—
Cloudanix analysis
A bug in the Linux kernel's f2fs storage driver could cause unexpected warnings or write problems on systems that use this filesystem, fixed by updating to newer kernel versions.
- Exploitation
- Local Privilege
- Attacker needs
- Local User
- Complexity
- Moderate
- Impact
- Denial Of Service
- Component
- OS kernel
- Class
- Race Condition
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
Race condition in f2fs get_new_segment() allows inconsistent state between free_segmap and free_secmap, triggering kernel WARNING during new_curseg() and subsequent node page writes/checkpoints instead of safely bailing out with error recorded in superblock.
Why it matters to the business
Linux systems using f2fs may experience kernel warnings, checkpoint failures, or filesystem instability during heavy write workloads, increasing operational risk for storage-dependent services until patched; fixed versions available for affected Alpaquita linux-lts packages.
How an attack unfolds
An attacker with local access triggers concurrent f2fs allocation and checkpoint operations that race on segment maps, causing the kernel to hit the inconsistent-state path in new_curseg() and surface the warning; no public exploits or threat actors are associated.
How to fix it
Upgrade linux-lts (Alpaquita:23) to 6.1.81-r0 or later, linux-lts (Alpaquita:stream) to 6.6.58-r0 or 6.12.41-r0 or later, and mainline kernels to commit f0023d7a2a86999c8e1300e911d92f995a5310a8 or later; rebuild and reboot affected systems.
How to confirm the fix worked
Confirm kernel version matches or exceeds the listed fixed releases; run f2fs filesystem stress tests that exercise checkpoints and verify absence of the new_curseg WARNING; inspect superblock for recorded segment errors post-upgrade.
Typical attack path
- Obtain local code execution on f2fs-formatted system
- Induce concurrent data writes and fsync/checkpoint activity
- Trigger segment allocation while maps are inconsistent
- Observe kernel WARNING and potential write failure
How to detect it
Search kernel logs for the exact WARNING at fs/f2fs/segment.c:2832 new_curseg and the call trace involving f2fs_allocate_data_block, f2fs_write_checkpoint, and issue_checkpoint_thread; correlate with f2fs mount times and heavy write activity.
- WARNING: CPU:.*PID:.*at fs/f2fs/segment.c:2832 new_curseg
- new_curseg+0x5e8/0x6dc
- f2fs_allocate_data_block+0xa54/0xe28
What your security team should do
- Prioritize patching production f2fs systems within standard change windows given low EPSS but kernel stability impact
- Monitor EPSS trend for any increase above 0.01 before accelerating
- Add f2fs checkpoint and segment allocation logs to security monitoring for the WARNING pattern
The record
In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to bail out in get_new_segment() ------------[ cut here ]------------ WARNING: CPU: 3 PID: 579 at fs/f2fs/segment.c:2832 new_curseg+0x5e8/0x6dc pc : new_curseg+0x5e8/0x6dc Call trace: new_curseg+0x5e8/0x6dc f2fs_allocate_data_block+0xa54/0xe28 do_write_page+0x6c/0x194 f2fs_do_write_node_page+0x38/0x78 __write_node_page+0x248/0x6d4 f2fs_sync_node_pages+0x524/0x72c f2fs_write_checkpoint+0x4bc/0x9b0 __checkpoint_and_complete_reqs+0x80/0x244 issue_checkpoint_thread+0x8c/0xec kthread+0x114/0x1bc ret_from_fork+0x10/0x20 get_new_segment() detects inconsistent status in between free_segmap and free_secmap, let's record such error into super block, and bail out get_new_segment() instead of continue using the segment.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Debian:11 | linux | 0 | No fix |
| Debian:12 | linux | 0 | No fix |
| Debian:13 | linux | 0 | 6.12.35-1 |
| Linux | Kernel | 3.8.0 | 6.12.35 |
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-39876 In the Linux kernel, the following vulnerability has been resolved: net: fec: Fix… Also affects linux
- CVE-2025-39869 In the Linux kernel, the following vulnerability has been resolved: dmaengine: ti: edma… Also affects linux
- CVE-2025-39873 In the Linux kernel, the following vulnerability has been resolved: can: xilinx_can… Also affects linux
- CVE-2025-39863 In the Linux kernel, the following vulnerability has been resolved: wifi: brcmfmac: fix… Also affects linux
- CVE-2025-39865 In the Linux kernel, the following vulnerability has been resolved: tee: fix NULL pointer… Also affects linux
- CVE-2025-39866 In the Linux kernel, the following vulnerability has been resolved: fs: writeback: fix… Also affects linux