What’s Vulnerable › Vulnerabilities
CVE-2025-38660: [ceph] parse_longname(): strrchr() expects NUL-terminated string
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.4% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-08-22 · updated 2026-10-15
Description
In the Linux kernel, the following vulnerability has been resolved: [ceph] parse_longname(): strrchr() expects NUL-terminated string ... and parse_longname() is not guaranteed that. That's the reason why it uses kmemdup_nul() to build the argument for kstrtou64(); the problem is, kstrtou64() is not the only thing that need it. Just get a NUL-terminated copy of the entire thing and be done with that...
Affected products
- Linux kernel: from 6.6 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1 — fixed in 6.12.42, 6.15.10, 6.16.1
How to fix
Upgrade to a fixed version: Linux kernel 6.12.42, 6.15.10, 6.16.1. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/101841c38346f4ca41dc1802c867da990ffb32eb
- https://git.kernel.org/stable/c/3145b2b11492d61c512bbc59660bb823bc757f48
- https://git.kernel.org/stable/c/493479af8af3ab907f49e99323777d498a4fbd2b
- https://git.kernel.org/stable/c/4b9aee707c4580511983a0998547f3b28514e6a6
- https://git.kernel.org/stable/c/bb80f7618832d26f7e395f52f82b1dac76223e5f
Get alerted when CVE-2025-38660 or the next vulnerability affects your stack