Received: from smtp.kernel.org (aws-us-west-2-korg-mail-1.web.codeaurora.org [10.30.226.201]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C4518288524 for ; Fri, 22 Aug 2025 16:02:48 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=10.30.226.201 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878568; cv=none; b=sLyZSU6Mml/g6ZQbJbBNXAjLPVy8bpm1bmMeA1XqTvL9vsxDy4anAZAn9NpK6MK7E8FK1p9hPfCnWzR2SUHMK1n0rTm/Dba44pNOJHHGjPAl+CwavmGEWi1Mju+K8Zv4BVjm5ubpyf/j16zeJSF07V/6UWXb9xQXNhMKRIUqHiM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878568; c=relaxed/simple; bh=F6EHD3sWTgPrDAfufEgkl2Mv6uz6O6qy3Ta+rEtKXYs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=O2epJhxifTdwBaBJrIqg6NANtVYlxFMDESVYN3pH6s/QnqOanYJueNUWJW4VrI8n6gd11SGhBrWqz2rt7bqB0kv8tRJLhIAeHf4NZkt50sUXQzMdL38yeLT5eItAuCzonTRI9FC6R6N7FWQLxchIYRyIfBMN110YqoBTp/srcaw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Zoa27erO; arc=none smtp.client-ip=10.30.226.201 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="Zoa27erO" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D9B27C4CEED; Fri, 22 Aug 2025 16:02:47 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878568; bh=F6EHD3sWTgPrDAfufEgkl2Mv6uz6O6qy3Ta+rEtKXYs=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Zoa27erO5OVILsuQAlH5w5RS3npYXXK/w7nlqApZXVIdbM6JIT5k2qckGWZb9wGkJ ERQF729mb0gFdwqEKeVxoOOukJ7luSQIVSc4nS1QDvw1KytjiQKwgXvsPJDgL7zfCI s02NjC6HIap8cKWAYh+qHRexF0K+Lk3VF+a5OspY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38660: [ceph] parse_longname(): strrchr() expects NUL-terminated string Date: Fri, 22 Aug 2025 18:01:08 +0200 Message-ID: <2025082239-CVE-2025-38660-19fa@gregkh> X-Mailer: git-send-email 2.50.1 Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Reply-to: , X-Developer-Signature: v=1; a=openpgp-sha256; l=2500; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=lv0Zi1xhhCoqRcBk0vhTmDv0oUEE8sBnQhNDPE2eA8E=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpqgvmfZUzkDr7BLegwZHVewU3ebMjd8Zr1M8Ieajm 8k+l8hHHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRU7MZ5kpMEr4QvV6+ZfWR 1ycMyrdtOLH7rC3DPDsLrTXdi33OsXN+Pn1z29/lobN5TgAA X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit From: Greg Kroah-Hartman 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... The Linux kernel CVE team has assigned CVE-2025-38660 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit dd66df0053ef84add5e684df517aa9b498342381 and fixed in 6.12.42 with commit bb80f7618832d26f7e395f52f82b1dac76223e5f Issue introduced in 6.6 with commit dd66df0053ef84add5e684df517aa9b498342381 and fixed in 6.15.10 with commit 3145b2b11492d61c512bbc59660bb823bc757f48 Issue introduced in 6.6 with commit dd66df0053ef84add5e684df517aa9b498342381 and fixed in 6.16.1 with commit 493479af8af3ab907f49e99323777d498a4fbd2b Issue introduced in 6.6 with commit dd66df0053ef84add5e684df517aa9b498342381 and fixed in 6.17-rc1 with commit 101841c38346f4ca41dc1802c867da990ffb32eb Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community. Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at https://cve.org/CVERecord/?id=CVE-2025-38660 will be updated if fixes are backported, please check that for the most up to date information about this issue. Affected files ============== The file(s) affected by this issue are: fs/ceph/crypto.c Mitigation ========== The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits: https://git.kernel.org/stable/c/bb80f7618832d26f7e395f52f82b1dac76223e5f https://git.kernel.org/stable/c/3145b2b11492d61c512bbc59660bb823bc757f48 https://git.kernel.org/stable/c/493479af8af3ab907f49e99323777d498a4fbd2b https://git.kernel.org/stable/c/101841c38346f4ca41dc1802c867da990ffb32eb