PT-2025-46625

CVE-2025-40150

·

Published

2025-11-12

·

Updated

2026-10-17

Description by

CVSS 2.0
4.5
Medium
MetricsAV:L/AC:H/Au:S/C:N/I:P/A:C
Name of the Vulnerable Software and Affected Versions Linux kernel (affected versions not specified)
Description The Linux kernel contains a flaw within the f2fs filesystem related to segment migration. A race condition can occur during file allocation and garbage collection, specifically when a pinning file undergoes fallocate operations concurrently with block allocation. This can lead to inconsistencies between segment types in on-disk structures (SSA) and in-memory structures (SIT), potentially causing filesystem shutdown. The issue arises from fallocate potentially racing with block allocation, resulting in garbage collection migrating a segment that has just been allocated by a log. The inconsistency occurs when the on-disk SSA indicates a segment type that differs from the in-memory SIT. The fix involves checking for empty sections before garbage collection and adding sanity checks to do garbage collect() to prevent race conditions during segment migration. The functions involved include f2fs expand inode data, f2fs allocate pinning section, f2fs gc range, do garbage collect, f2fs allocate data block, and new curseg.
Recommendations At the moment, there is no information about a newer version that contains a fix for this vulnerability.
Exploitability
Exploit
Impacts
Vendors
Affected products
Related identifiers
USN-8029-1
USN-8029-2
USN-8029-3
USN-8030-1
USN-8048-1
USN-8567-1
USN-8574-1
USN-8574-2
USN-8574-3
USN-8595-1
USN-8595-2
USN-8595-3
USN-8596-1
USN-8606-1
USN-8607-1
USN-8608-1
USN-8609-1
USN-8619-1
USN-8665-1
Found an issue in the description? Have something to add? Feel free to write us 👾