CVE-2025-38652 json
f2fs: fix to avoid out-of-boundary access in devs.path
published 2025-08-22 14 mo ago modified 2026-08-05 3 mo ago also EUVD-2025-25550
- cvss
- 7.3
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.2%
- EPSS 0.2% chance of exploitation in 30 days, percentile 7%
- public exploits
- 0
- none known
Summary
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.
Patch / fix
- Linux Linux 5.4.297, 5.10.241, 5.15.190, 6.1.148, 6.6.102, 6.12.42, 6.15.10, 6.16.1, 6.17
- linux Debian 12 6.1.148-1
- linux Debian 13 6.12.43-1
- linux Debian 14 6.16.3-1
debian advisories DEBIAN-CVE-2025-38652
- linux Ubuntu 22.04 LTS 5.15.0-163.173
- linux Ubuntu 24.04 LTS 6.8.0-100.100
- linux-aws Ubuntu 22.04 LTS 5.15.0-1097.104
- linux-aws Ubuntu 24.04 LTS 6.8.0-1046.49
- linux-gcp Ubuntu 22.04 LTS 5.15.0-1097.106
- linux-gcp Ubuntu 24.04 LTS 6.8.0-1047.50
- linux-gke Ubuntu 22.04 LTS 5.15.0-1093.99
- linux-gke Ubuntu 24.04 LTS 6.8.0-1043.48
ubuntu advisories UBUNTU-CVE-2025-38652
Ubuntu security data © Canonical Ltd., from https://github.com/canonical/ubuntu-security-notices via OSV; changed: normalised to fixed package versions per release. CC BY-SA 4.0
- kernel-source openSUSE Tumbleweed 6.16.5-1.1
opensuse advisories openSUSE-SU-2025:15533-1
- git.kernel.org/stable/c/dc0172c74bd9edaee7bea2ebb35f3dbd37a8ae80 commit
- git.kernel.org/stable/c/1cf1ff15f262e8baf12201b270b6a79f9d119b2d commit
- git.kernel.org/stable/c/666b7cf6ac9aa074b8319a2b68cba7f2c30023f0 commit
- git.kernel.org/stable/c/3466721f06edff834f99d9f49f23eabc6b2cb78e commit
- git.kernel.org/stable/c/345fc8d1838f3f8be7c8ed08d86a13dedef67136 commit
- git.kernel.org/stable/c/70849d33130a2cf1d6010069ed200669c8651fbd commit
- git.kernel.org/stable/c/755427093e4294ac111c3f9e40d53f681a0fbdaa commit
- git.kernel.org/stable/c/1b1efa5f0e878745e94a98022e8edc675a87d78e commit
- git.kernel.org/stable/c/5661998536af52848cc4d52a377e90368196edea commit
Vendor advisories
What the vendors themselves say about their products: affected, fixed or not affected, and what to do.
red hat product security vex CVE-2025-38652 updated
kernel: f2fs: fix to avoid out-of-boundary access in devs.path
-
Red Hat Enterprise Linux 6 perf, kernel, python-perf, kernel-kdump, kernel-firmware, kernel-bootwrapper, +1 more Red Hat Enterprise Linux 7 perf, kernel, bpftool, kernel-rt, python-perf, kernel-kdump, +8 more Red Hat Enterprise Linux 8 perf, kernel, bpftool, kernel-rt, kernel-core, kernel-tools, +29 more Red Hat Enterprise Linux 9 rv, perf, rtla, kernel, bpftool, libperf, +83 more Red Hat Enterprise Linux 10 kernelnot affected: vulnerable code not present
Red Hat CSAF VEX © Red Hat, Inc., from https://security.access.redhat.com/data/csaf/v2/vex/; changed: reduced to product statuses and remediations. CC BY 4.0 · csaf
Exploit prediction
0.18% chance of exploitation in the next 30 days, higher than 7% of all scored CVEs (FIRST EPSS, 2026-11-08).
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CNA | 3.1 | 7.3 | CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:L/A:H |
| NVD | 3.1 | 7.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H |
Affected products
- Linux Linux
Classification
- Weakness
-
- CWE-125 Out-of-bounds Read
- Technology feeds
References
-
git.kernel.org
/stable/c/dc0172c74bd9edaee7bea2ebb35f3dbd37a8ae80
patch
-
git.kernel.org
/stable/c/1cf1ff15f262e8baf12201b270b6a79f9d119b2d
patch
-
git.kernel.org
/stable/c/666b7cf6ac9aa074b8319a2b68cba7f2c30023f0
patch
-
git.kernel.org
/stable/c/3466721f06edff834f99d9f49f23eabc6b2cb78e
patch
-
git.kernel.org
/stable/c/345fc8d1838f3f8be7c8ed08d86a13dedef67136
patch
-
git.kernel.org
/stable/c/70849d33130a2cf1d6010069ed200669c8651fbd
patch
-
git.kernel.org
/stable/c/755427093e4294ac111c3f9e40d53f681a0fbdaa
patch
-
git.kernel.org
/stable/c/1b1efa5f0e878745e94a98022e8edc675a87d78e
patch
-
git.kernel.org
/stable/c/5661998536af52848cc4d52a377e90368196edea
patch
-
lists.debian.org
/debian-lts-announce/2025/10/msg00008.html
third-party-advisory
-
lists.debian.org
/debian-lts-announce/2025/10/msg00007.html
third-party-advisory
Sources
- CVE List CVE-2025-38652
- NVD CVE-2025-38652
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.