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 BA3DB2686AF for ; Fri, 18 Apr 2025 07:02:55 +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=1744959776; cv=none; b=eyAi0/5f4RUS9G+oE4AzLMVKyibB5fjoPv5vQeiKaXSdE3zWJj4FJ2pTXAmmWH1BVKj3+lZDJCQkkltwttqa0RQIWey0wX+hLHzCuVLwnoKQ79XVbtc2jO4i97BcCAlwzgjbnOlRX9UUmRYf0AwyWy/z8hMg7S0ZUQU5D/k3qyQ= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744959776; c=relaxed/simple; bh=lj9JW56SR3bKjeEJkRFfWU23ZQROV8PX9EzXX7nExVQ=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=F6ezp9TJVfWq9r6jKxVOrBoN+2GpnoiwIMsREAKrGgB4gMtalatkzMC1ePOyy0DxJqnGqCDb/bY9/TYJcfZGj2zSd2TowjtpDLrsfgT1+1vH9A8CBQEAgib/h1KQHdsLvwvaHOW3G5T0cxQStlgsgHE9/1ZmtDsRvycWiQXq8Tk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=HIZikLLj; 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="HIZikLLj" Received: by smtp.kernel.org (Postfix) with ESMTPSA id A262AC4CEE7; Fri, 18 Apr 2025 07:02:54 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744959775; bh=lj9JW56SR3bKjeEJkRFfWU23ZQROV8PX9EzXX7nExVQ=; h=From:To:Cc:Subject:Date:Reply-to:From; b=HIZikLLjq9fkEMkert2KAS0yNMEsx7itmGktLRnoMcbLX84UraQrRB73S1PMs3bTi VPqsEHH0JEjUKvYQxJTu9eLw3o47A6CtQutbvgxQZbKouvklyiRL92QkDo2m4mbZ/d HFhji+jxej/OGFYgQyUGvyyWDV7t7FG7IZxnV1No= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-39778: objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show() Date: Fri, 18 Apr 2025 09:02:29 +0200 Message-ID: <2025041821-CVE-2025-39778-70fe@gregkh> X-Mailer: git-send-email 2.49.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=2577; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=EZkPih8vLeS9k0I0ZVGuYAI8qUjLAha6ILZqwc078Fo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmMP/4e+j2h79+y++/OVIlrTxDtvv3s2CeRaNOXPOITH y9v/Wp5vSOWhUGQiUFWTJHlyzaeo/srDil6GdqehpnDygQyhIGLUwAmEnqXYX56wpKbGnOeL9ji vWu+a+SMHRl+0zYyzNNqdf18IZA77IzWoRtRmu6PT91PmAQA 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: objtool, nvmet: Fix out-of-bounds stack access in nvmet_ctrl_state_show() The csts_state_names[] array only has six sparse entries, but the iteration code in nvmet_ctrl_state_show() iterates seven, resulting in a potential out-of-bounds stack read. Fix that. Fixes the following warning with an UBSAN kernel: vmlinux.o: warning: objtool: .text.nvmet_ctrl_state_show: unexpected end of section The Linux kernel CVE team has assigned CVE-2025-39778 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit 649fd41420a816b11b07423ebf4dbd4ac1ac2905 and fixed in 6.12.23 with commit 1adc93a525fdee8e2b311e6d5fd93eb69714ca05 Issue introduced in 6.11 with commit 649fd41420a816b11b07423ebf4dbd4ac1ac2905 and fixed in 6.13.11 with commit 8fbf37a3577b4d64c150cafde338eee17b2f2ea4 Issue introduced in 6.11 with commit 649fd41420a816b11b07423ebf4dbd4ac1ac2905 and fixed in 6.14.2 with commit 0cc0efc58d6c741b2868d4af24874d7fec28a575 Issue introduced in 6.11 with commit 649fd41420a816b11b07423ebf4dbd4ac1ac2905 and fixed in 6.15-rc1 with commit 107a23185d990e3df6638d9a84c835f963fe30a6 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-39778 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/debugfs.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/1adc93a525fdee8e2b311e6d5fd93eb69714ca05 https://git.kernel.org/stable/c/8fbf37a3577b4d64c150cafde338eee17b2f2ea4 https://git.kernel.org/stable/c/0cc0efc58d6c741b2868d4af24874d7fec28a575 https://git.kernel.org/stable/c/107a23185d990e3df6638d9a84c835f963fe30a6