# CVE-2025-38660: [ceph] parse_longname(): strrchr() expects NUL-terminated string

- Severity: Critical 9.8 (CVSS:3.1, scored by Linux) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 41% of CVEs (2026-12-01)
- Published: 2025-08-22T16:01:03.686Z
- Modified: 2026-10-15T22:18:48.640Z
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: Linux

## 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...

(As written by CVE List.)

## Affected

- Linux Linux: from dd66df0053ef84add5e684df517aa9b498342381 before 4b9aee707c4580511983a0998547f3b28514e6a6; from dd66df0053ef84add5e684df517aa9b498342381 before bb80f7618832d26f7e395f52f82b1dac76223e5f; from dd66df0053ef84add5e684df517aa9b498342381 before 3145b2b11492d61c512bbc59660bb823bc757f48; from dd66df0053ef84add5e684df517aa9b498342381 before 493479af8af3ab907f49e99323777d498a4fbd2b; from dd66df0053ef84add5e684df517aa9b498342381 before 101841c38346f4ca41dc1802c867da990ffb32eb; 6.6 (not affected: before 6.6; from 6.6.157 up to 6.6.*; from 6.12.42 up to 6.12.*; from 6.15.10 up to 6.15.*; from 6.16.1 up to 6.16.*; from 6.17 up to *)
- linux linux_kernel: from 6.6 before 6.12.42; from 6.13 before 6.15.10; from 6.16 before 6.16.1

## Every score

- Linux: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/4b9aee707c4580511983a0998547f3b28514e6a6>
- <https://git.kernel.org/stable/c/bb80f7618832d26f7e395f52f82b1dac76223e5f> (patch)
- <https://git.kernel.org/stable/c/3145b2b11492d61c512bbc59660bb823bc757f48> (patch)
- <https://git.kernel.org/stable/c/493479af8af3ab907f49e99323777d498a4fbd2b> (patch)
- <https://git.kernel.org/stable/c/101841c38346f4ca41dc1802c867da990ffb32eb> (patch)

## Sources

- CVE List: [CVE-2025-38660](https://www.cve.org/CVERecord?id=CVE-2025-38660), CVE Terms of Use, modified 2026-10-15
- NVD: [CVE-2025-38660](https://nvd.nist.gov/vuln/detail/CVE-2025-38660), Public domain, modified 2026-10-15

---

Page: https://cve.day/CVE-2025-38660 · Whole record: https://cve.day/CVE-2025-38660.json · Rebuilt by cve.day 2026-11-25T22:59:03.548Z
