CVE-2025-38660
published critical CVSS 3.1 · 9.8[ceph] parse_longname(): strrchr() expects NUL-terminated string
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linuxdd66df0053ef84add5e684df517aa9b498342381 to < 4b9aee707c4580511983a0998547f3b28514e6a6 · dd66df0053ef84add5e684df517aa9b498342381 to < bb80f7618832d26f7e395f52f82b1dac76223e5f · dd66df0053ef84add5e684df517aa9b498342381 to < 3145b2b11492d61c512bbc59660bb823bc757f48 · dd66df0053ef84add5e684df517aa9b498342381 to < 493479af8af3ab907f49e99323777d498a4fbd2b · dd66df0053ef84add5e684df517aa9b498342381 to < 101841c38346f4ca41dc1802c867da990ffb32eb · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux6.6 (affected) · 0 to < 6.6 (unaffected · semver) · 6.6.157 through 6.6.* (unaffected · semver) · 6.12.42 through 6.12.* (unaffected · semver) · 6.15.10 through 6.15.* (unaffected · semver) · 6.16.1 through 6.16.* (unaffected · semver) · 6.17 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluationALAS2023-2025-1208 | Fixed | Not stated | Amazon Linux assessment |
| Oracle Linux | 10 | kernel-uekaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uekx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
Show 97 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Oracle Linux | 10 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-usbx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-modules-wirelessx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-toolsaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek-toolsx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64kaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-develaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modulesaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-desktopaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-extraaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-usbaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 10 | kernel-uek64k-modules-wirelessaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el10uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uekaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uekx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debugaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debugx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-develaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-develx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modulesaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modulesx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-desktopx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extraaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extrax86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-usbx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-debug-modules-wirelessx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-develaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-develx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-docx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modulesaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modulesx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-coreaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-corex86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-deprecatedx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-desktopaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-desktopx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-extraaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-extrax86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilteraarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-extra-netfilterx86_64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
| Oracle Linux | 9 | kernel-uek-modules-usbaarch64 | Advisory build | 0:6.12.0-104.43.4.2.el9uek | ELSA-2025-20662 |
Package entries are limited to the first 100 builds and 100 linked advisories.
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...
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 3.1
- Base score
- 9.8 / 10
- Severity
- critical
- Provider
- Linux · cna
- Vector string
- CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- Scenarios
- en: AV:N - The unterminated string is dentry-name data read directly out of a Ceph MDS reply message (`info->dname = *p`, `_name = *p`) sitting in the kvmalloc'd `msg->front` buffer, so a malicious/compromised MDS or an on-path attacker on unencrypted cephfs traffic supplies it remotely. No local caller can produce a non-NUL-terminated name. AC:L - The attacker fully controls the reply contents and the exact `front_len`, so they can place the name flush against the end of the allocation and make the overread deterministic; the only build requirement is `CONFIG_FS_ENCRYPTION=y`, which is standard in distro and Android kernels, and no encryption key or encrypted directory is needed since `parse_longname()` runs before those checks. PR:N - The attacker holds no account or privilege on the victim client — the malicious reply is processed by the messenger/MDS-client code with no authorization check on the client side. Any process's routine directory access on the already-established mount suffices to consume it. UI:N - The snapdir condition depends on the server-supplied `snapid`, so a hostile MDS can mark an ordinary directory as `CEPH_SNAPDIR` and trigger the path on any normal readdir or lookup — no deliberate `.snap` access, remount, or other victim action is required. S:U - The out-of-bounds access is confined to kernel memory within the same security authority as the ceph client; no VM, IOMMU, or sandbox boundary is crossed. C:H - `strrchr()` reads unbounded adjacent kernel heap until it finds a NUL, and the resulting inflated `*name_len` causes those out-of-bounds bytes to be base64-decoded and propagated into the dentry name handed back toward userspace, giving an unbounded kernel memory disclosure primitive. I:H - The corrupted `*name_len` is no longer bounded by the `NAME_MAX` check (which was applied to the pre-parse copy), so `ceph_base64_decode()` and `fscrypt_fname_disk_to_usr()` write far past the end of the `NAME_MAX` fscrypt buffer or the message front buffer, yielding a heap out-of-bounds write with attacker-influenced data. A:H - The overread walks off a kvmalloc allocation and can hit a vmalloc guard page or unmapped memory, and the derived oversized length drives a heap overflow — either produces an oops/panic in the ceph messenger work context, and the attacker can repeat it on every reply.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | dd66df0053ef84add5e684df517aa9b498342381 to < 4b9aee707c4580511983a0998547f3b28514e6a6 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < bb80f7618832d26f7e395f52f82b1dac76223e5f (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 3145b2b11492d61c512bbc59660bb823bc757f48 (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 493479af8af3ab907f49e99323777d498a4fbd2b (affected · git)dd66df0053ef84add5e684df517aa9b498342381 to < 101841c38346f4ca41dc1802c867da990ffb32eb (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 6.6 (affected)0 to < 6.6 (unaffected · semver)6.6.157 through 6.6.* (unaffected · semver)6.12.42 through 6.12.* (unaffected · semver)6.15.10 through 6.15.* (unaffected · semver)6.16.1 through 6.16.* (unaffected · semver)6.17 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
5- 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
Provider assertions
2Linux · cna
[ceph] parse_longname(): strrchr() expects NUL-terminated string
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 1b79737d615fe879cd64b9ad368415b8bed0305a04987f2d66e4cd6f5cd9233c
- Ingested
- 15 Oct 2026, 23:26:24 UTC
- Source record
- Official CVE record