From mboxrd@z Thu Jan 1 00:00:00 1970 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 F2B7D2459A0 for ; Wed, 15 Jan 2025 13:10:46 +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=1736946647; cv=none; b=MCQbCr0bNxN4EU+FugOjMUwiVBt0CEZOMYzgAyM1rEUHRwDbpsu0dh9rCDJNOWfr8KsbIfOoC8NvQKZvKaOGFkKlIerFCE3FSlaKOTos9i8F/odsp26Vvb2CQT+ij/7nepdk+UjR+IuK0xuJcjWU8pXCnkPsWm8nXmdppGlH7Sc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1736946647; c=relaxed/simple; bh=nUrwMcBR3tQTZlM0Fu2nVEsTvt+GSzd3kzSODR3tjjI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=ZnrdTZsHObQL0iJzNjg1PTLygE8z+1jjMel9LDlT+ncEpVHQG1TAyQNURIYUQxqb/PEWDrO3E7nYCJ5CExY8NQ7I/4501PLL4txJF9QYJY05O6P3dvhfwhbn8W/ZDTe5Hf0575DTarAGyDhUPj0GkPNJcsYcr6wpAVgWCBcDYzw= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=q4++yHrT; 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="q4++yHrT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 76380C4CEDF; Wed, 15 Jan 2025 13:10:46 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1736946646; bh=nUrwMcBR3tQTZlM0Fu2nVEsTvt+GSzd3kzSODR3tjjI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=q4++yHrT3IlwOJIqIZTCn7YCCJVhy2oNfaejxvg5ZF2ANLuq9AWZA+NtkKe5Hq9zN PgWdr9doLr4NSKCr+SY0HGaohuXw3YUH4Hhyau174NqHA5+FWXAAr0nxjfdYYZBStS ON/vj7p1LlF4jjPbWCSLpT21ik5gTWxyJyDfqnW4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-53681: nvmet: Don't overflow subsysnqn Date: Wed, 15 Jan 2025 14:10:34 +0100 Message-ID: <2025011532-CVE-2024-53681-e199@gregkh> X-Mailer: git-send-email 2.48.0 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=1970; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=nUrwMcBR3tQTZlM0Fu2nVEsTvt+GSzd3kzSODR3tjjI=; b=owGbwMvMwCRo6H6F97bub03G02pJDOntm0+cVf+73+cCz6wzmo8+vLZJ+xCgJPxm9pvUjA9hw e3HDqn+74hlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJHHZmmKfLfztX1tXATVJk CvOHlb4fFrpe4mJYMHGFunyDntUmVuWOpUre6sb1X+0vAwA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: nvmet: Don't overflow subsysnqn nvmet_root_discovery_nqn_store treats the subsysnqn string like a fixed size buffer, even though it is dynamically allocated to the size of the string. Create a new string with kstrndup instead of using the old buffer. The Linux kernel CVE team has assigned CVE-2024-53681 to this issue. Affected and fixed versions =========================== Issue introduced in 6.9 with commit 95409e277d8343810adf8700d29d4329828d452b and fixed in 6.12.9 with commit 86645d8d062af3fdcbdaa0a289b95de55bca827d Issue introduced in 6.9 with commit 95409e277d8343810adf8700d29d4329828d452b and fixed in 6.13-rc6 with commit 4db3d750ac7e894278ef1cb1c53cc7d883060496 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-2024-53681 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: drivers/nvme/target/configfs.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/86645d8d062af3fdcbdaa0a289b95de55bca827d https://git.kernel.org/stable/c/4db3d750ac7e894278ef1cb1c53cc7d883060496