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 6E0F126A09A for ; Fri, 9 May 2025 06:44:26 +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=1746773066; cv=none; b=OM03oIsn9fzKkbZGlbJRiGv04iOL8fRkOIuWuuq5rk1nKwt3GQGmHqes/4G1LemIi1vCAncHxC5mWQkenNg7GpyVzYsy8j8iL7T4YBzaIzw9V0FsSzlNk0XMiaG0ARnU2U1J60JGxHT5Zz7p1hP7BjhgJsxkQsroKZwtohU+FbE= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746773066; c=relaxed/simple; bh=k+tt2yZhSfqH4aJYI5krhkrwLtgz5+Ufv8RTJJPhiPI=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=M1dY61j+M78xazHi08p0oCMA3027QpGllGEdA/A9mQ1wcL2/3jzdRSM62Zu4lItapYdzQY6yjy8wk7l7JhXElYBt2n1G7qh9t4uNgMaub4Wc/Sz4X59dMJnJHfa7kjUxqbkSyPK6w9bRWk9AgGRM7OfO39SzJ75pUzl15IyHTtk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=Tz+7CoCI; 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="Tz+7CoCI" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D08F3C4CEE4; Fri, 9 May 2025 06:44:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746773066; bh=k+tt2yZhSfqH4aJYI5krhkrwLtgz5+Ufv8RTJJPhiPI=; h=From:To:Cc:Subject:Date:Reply-to:From; b=Tz+7CoCIfM6Zq0X6CbaRAv3ukCGcXEWbhCRS/608r/B9BX273RIzfouk6cOd4UmGe oHJNQkL8TOXML8Pf/ymjvRwoce8N3p05MZCObp8XWWoz9Hsh+Bx01XGnh6PBDt7ZNY dQkj+7vhippGceYhHS7yaoj7RRcw/8OdNSJyDjWw= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-37866: mlxbf-bootctl: use sysfs_emit_at() in secure_boot_fuse_state_show() Date: Fri, 9 May 2025 08:44:00 +0200 Message-ID: <2025050957-CVE-2025-37866-47d2@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=2316; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=T1DtIsOG2C2qOJw50PqtugQwzDkO5dmhb0OCbWhE5cM=; b=owGbwMvMwCRo6H6F97bub03G02pJDBmyS3Rv1+gc77PxUyoXTdVxkWF/HPJvn+oZl7RXi3LuL OP69WlJRywLgyATg6yYIsuXbTxH91ccUvQytD0NM4eVCWQIAxenAExE+RrDPO2Kex5OF7rupq/z Z+P8827ji9JV3xjmh5Xse3P0/KsF10tznsydei93goX/DwA= 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: mlxbf-bootctl: use sysfs_emit_at() in secure_boot_fuse_state_show() A warning is seen when running the latest kernel on a BlueField SOC: [251.512704] ------------[ cut here ]------------ [251.512711] invalid sysfs_emit: buf:0000000003aa32ae [251.512720] WARNING: CPU: 1 PID: 705264 at fs/sysfs/file.c:767 sysfs_emit+0xac/0xc8 The warning is triggered because the mlxbf-bootctl driver invokes "sysfs_emit()" with a buffer pointer that is not aligned to the start of the page. The driver should instead use "sysfs_emit_at()" to support non-zero offsets into the destination buffer. The Linux kernel CVE team has assigned CVE-2025-37866 to this issue. Affected and fixed versions =========================== Issue introduced in 6.14 with commit 9886f575de5aefcfab537467c72e5176e5301df0 and fixed in 6.14.4 with commit 5e1dcc5bfd7a2896178c604bc69d6ab9650967da Issue introduced in 6.14 with commit 9886f575de5aefcfab537467c72e5176e5301df0 and fixed in 6.15-rc3 with commit b129005ddfc0e6daf04a6d3b928a9e474f9b3918 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-37866 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/platform/mellanox/mlxbf-bootctl.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/5e1dcc5bfd7a2896178c604bc69d6ab9650967da https://git.kernel.org/stable/c/b129005ddfc0e6daf04a6d3b928a9e474f9b3918