Skip to content
Heist/ feed
Back to feed
CriticalFix available

[ceph] parse_longname(): strrchr() expects NUL-terminated string

Type: advisorySources: OSV

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

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.42, 6.15.10, 6.16.1, 6.6.157
CVEs
CVE-2025-38660
Confirmed fixed CVEs
Not specified
Updated in this feed
4 Nov 2026, 00:31 UTC · Revision 1

Source evidence

[ceph] parse_longname(): strrchr() expects NUL-terminated string

core-osv · Original source

Published 22 Aug 2025, 16:01 UTC

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

osv:CVE-2025-38660

Kernel

Fixed versions: 6.6.157, 6.12.42, 6.15.10, 6.16.1

Complete source record
{
  "id": "9cf50f2fd6484500fa0100edebb79ba94b0c5e85753d9b238ec62ad0247c2cd4",
  "url": "https://osv.dev/vulnerability/CVE-2025-38660",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "[ceph] parse_longname(): strrchr() expects NUL-terminated string",
    "summary": "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...",
    "evidence": "osv:CVE-2025-38660",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.6.157",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.12.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.15.10",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.16.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "critical",
    "structured": {
      "id": "CVE-2025-38660",
      "aliases": [
        "CVE-2025-38660"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "dd66df0053ef84add5e684df517aa9b498342381"
                },
                {
                  "fixed": "4b9aee707c4580511983a0998547f3b28514e6a6"
                },
                {
                  "fixed": "bb80f7618832d26f7e395f52f82b1dac76223e5f"
                },
                {
                  "fixed": "3145b2b11492d61c512bbc59660bb823bc757f48"
                },
                {
                  "fixed": "493479af8af3ab907f49e99323777d498a4fbd2b"
                },
                {
                  "fixed": "101841c38346f4ca41dc1802c867da990ffb32eb"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38660.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.6.0"
                },
                {
                  "fixed": "6.6.157"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.7.0"
                },
                {
                  "fixed": "6.12.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.15.10"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.16.0"
                },
                {
                  "fixed": "6.16.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-38660.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:32.310722379Z",
      "provider": "osv",
      "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",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38660.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-38660",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/38xxx/CVE-2025-38660.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-38660",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 499346,
  "published_at": "2025-08-22T16:01:03.686+00:00"
}