CVE-2025-38652

f2fs: fix to avoid out-of-boundary access in devs.path

HIGH
7.1
CVSS Score
Published: August 22, 2025 at 04:00 PM UTC
Updated: August 5, 2026 at 12:44 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
HIGH7.1
Exploit prediction
EPSS 0.2%

Description

In the Linux kernel, the following vulnerability has been resolved: f2fs: fix to avoid out-of-boundary access in devs.path - touch /mnt/f2fs/012345678901234567890123456789012345678901234567890123 - truncate -s $((1024*1024*1024)) \ /mnt/f2fs/012345678901234567890123456789012345678901234567890123 - touch /mnt/f2fs/file - truncate -s $((1024*1024*1024)) /mnt/f2fs/file - mkfs.f2fs /mnt/f2fs/012345678901234567890123456789012345678901234567890123 \ -c /mnt/f2fs/file - mount /mnt/f2fs/012345678901234567890123456789012345678901234567890123 \ /mnt/f2fs/loop [16937.192225] F2FS-fs (loop0): Mount Device [ 0]: /mnt/f2fs/012345678901234567890123456789012345678901234567890123\xff\x01, 511, 0 - 3ffff [16937.192268] F2FS-fs (loop0): Failed to find devices If device path length equals to MAX_PATH_LEN, sbi->devs.path[] may not end up w/ null character due to path array is fully filled, So accidently, fields locate after path[] may be treated as part of device path, result in parsing wrong device path. struct f2fs_dev_info { ... char path[MAX_PATH_LEN]; ... }; Let's add one byte space for sbi->devs.path[] to store null character of device path string.

Affected

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

4.10 ≤ v < 5.10.2414.10 ≤ v < 5.15.1904.10 ≤ v < 5.4.2974.10 ≤ v < 6.1.1484.10 ≤ v < 6.12.424.10 ≤ v < 6.15.104.10 ≤ v < 6.16.14.10 ≤ v < 6.174.10 ≤ v < 6.6.1025.11 ≤ v < 5.15.1905.16 ≤ v < 6.1.1485.5 ≤ v < 5.10.2416.13 ≤ v < 6.15.106.16 ≤ v < 6.16.16.2 ≤ v < 6.6.1026.7 ≤ v < 6.12.423c62be17d4f562f43fe1d03b48194399caa35aa54.10
Vendor states this is fixed in 1b1efa5f0e878745e94a98022e8edc675a87d78e (fixed)
Vendor states this is fixed in 1cf1ff15f262e8baf12201b270b6a79f9d119b2d (fixed)
Vendor states this is fixed in 345fc8d1838f3f8be7c8ed08d86a13dedef67136 (fixed)
Vendor states this is fixed in 3466721f06edff834f99d9f49f23eabc6b2cb78e (fixed)
Vendor states this is fixed in 5661998536af52848cc4d52a377e90368196edea (fixed)
Vendor states this is fixed in 666b7cf6ac9aa074b8319a2b68cba7f2c30023f0 (fixed)
Vendor states this is fixed in 70849d33130a2cf1d6010069ed200669c8651fbd (fixed)
Vendor states this is fixed in 755427093e4294ac111c3f9e40d53f681a0fbdaa (fixed)
Vendor states this is fixed in dc0172c74bd9edaee7bea2ebb35f3dbd37a8ae80 (fixed)
Vendor states this is fixed in 4.10 (unaffected)
Vendor states this is fixed in 5.10.241 (unaffected)
Vendor states this is fixed in 5.15.190 (unaffected)
Vendor states this is fixed in 5.4.297 (unaffected)
Vendor states this is fixed in 6.1.148 (unaffected)
Vendor states this is fixed in 6.12.42 (unaffected)
Vendor states this is fixed in 6.15.10 (unaffected)
Vendor states this is fixed in 6.16.1 (unaffected)
Vendor states this is fixed in 6.17 (unaffected)
Vendor states this is fixed in 6.6.102 (unaffected)

References (11)

Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1b1efa5f0e878745e94a98022e8edc675a87d78e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/1cf1ff15f262e8baf12201b270b6a79f9d119b2d
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/345fc8d1838f3f8be7c8ed08d86a13dedef67136
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/3466721f06edff834f99d9f49f23eabc6b2cb78e
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/5661998536af52848cc4d52a377e90368196edea
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/666b7cf6ac9aa074b8319a2b68cba7f2c30023f0
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/70849d33130a2cf1d6010069ed200669c8651fbd
Patch
Source: 416baaa9-dc9f-4396-8d5f-8c081fb06d67
https://git.kernel.org/stable/c/755427093e4294ac111c3f9e40d53f681a0fbdaa

CVSS

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

Quick Info

StatusMODIFIED
CWE
CWE-125

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