From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from smtp.kernel.org (aws-us-west-2-korg-mail-alma10-1.taild15c8.ts.net [100.103.45.18]) (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 1398D581231 for ; Fri, 11 Sep 2026 19:49:43 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=100.103.45.18 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156207; cv=none; b=OfH4F4ZtTMdHS8ljRlItANntaKX7fCnFxYQlhILdTB9lLuSE1vD+E+zSLC6+gIJcfySVzk5etnfKuspU2bWeBqCoZ96hI0XXDggVQCMWBEjaEgcW35bdVweWMpbEK9uCk35TF9b3n1qORILcGHGswa3OCVpX1NeyydUe5XVf9q4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789156207; c=relaxed/simple; bh=tMfqPZRV/Ms5ZaO1Rvg8+84vdCed0EQXce5mZgLY/hE=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WHqc5NF2uPgCB/kq+lZ6Km0/fJlq5kqeZaATV57OJG6kkF84elalLjQhHQk3+nDMiixNXQ7S8yHiZMbSQ6/09YvivzIMVchnHN2Kpacjonums4JmaSPUiySDqCfrTJPuKaQ4nic9IAu3n84R1Se6geDF+rEiW1lKHNCWbe2131M= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=y3fEXCn7; arc=none smtp.client-ip=100.103.45.18 Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b="y3fEXCn7" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 70E721F0089F; Fri, 11 Sep 2026 19:49:40 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789156181; bh=7Pv13PG7Lt2y3jE0DWGgHVeCULzY2rE3OgdEB8WXDY0=; h=From:To:Cc:Subject:Date:Reply-To; b=y3fEXCn7rOYQrsG8V6ljYYPd47pn56jfhWV6gkMzPddD1+Q1EoVZxjczQqJI5YUC6 5372uIy5ctPqhjX1pH+EGROPxYW63yfSyHKTlC6NJrTffFm6HtsIBh1fsk/o2RAQzi xJpPAUxpocZbIjmJJpoK1k3QJAvu1jmOADmbDxCU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-81014: platform/x86: hp-bioscfg: fix heap OOB read in sk_store() and kek_store() Date: Fri, 11 Sep 2026 21:42:00 +0200 Message-ID: <2026091154-CVE-2026-81014-c9e8@gregkh> X-Mailer: git-send-email 2.55.0 Reply-To: , Precedence: bulk X-Mailing-List: linux-cve-announce@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 X-Developer-Signature: v=1; a=openpgp-sha256; l=3456; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=s9CcJPaDlRhJcRmxCUqKVxjsKX5vdNbZSqPGxMLd82w=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlLIt2aVn52zueO4xTaoGDYXhPW4/jhHvPnlfWqs1dYs J44rpbSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABNhVmaYzdrEJv35ipvtpmlr DuaenuOoIri1iWFBf+PZrTO6GmeIfV+lMX3/y+tTwhj/AAA= 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: platform/x86: hp-bioscfg: fix heap OOB read in sk_store() and kek_store() sk_store() and kek_store() strip a trailing newline from the sysfs write before allocating the key buffer: length = count; if (buf[length - 1] == '\n') length--; bioscfg_drv.spm_data.signing_key = kmemdup(buf, length, GFP_KERNEL); but then pass the original "count" (not "length") as the copy size to hp_wmi_perform_query(), which memcpy()s that many bytes out of the "length"-sized allocation, reading one byte past it whenever the write ends in a newline, the normal case for a shell "echo" into sysfs. KASAN confirms this directly: BUG: KASAN: slab-out-of-bounds in hp_wmi_perform_query+0x1e9/0x460 [hp_bioscfg] Read of size 28 at addr ffff88813c8e2b80 by task python3/16022 ... sk_store+0xa7/0x240 [hp_bioscfg] kernfs_fop_write_iter+0x3e1/0x5d0 ... The buggy address is located 0 bytes inside of allocated 27-byte region [ffff88813c8e2b80, ffff88813c8e2b9b) Reproduced identically for kek_store, and at multiple write sizes (28, 57, 201 bytes), each time reading exactly one byte past a kmemdup() allocation one byte smaller than the write. Fix by passing "length" instead of "count" to hp_wmi_perform_query() in both functions. The Linux kernel CVE team has assigned CVE-2026-81014 to this issue. Affected and fixed versions =========================== Issue introduced in 6.6 with commit b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 and fixed in 6.12.109 with commit 4c6374dcb270d12907b880cf82a5a5ef21785fc3 Issue introduced in 6.6 with commit b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 and fixed in 6.18.50 with commit 7cd8fe01aba303a2382db0966eb6c8ab41d5f3c2 Issue introduced in 6.6 with commit b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 and fixed in 7.2.4 with commit 67b60703d7d8af1ca0e49f72e1bdb1ccecd41b5b Issue introduced in 6.6 with commit b2715aa2e1352c0060b9dcba57a2e465bbfbcd68 and fixed in 7.3-rc1 with commit a7508c7959ff8d037327d377ed21a9c0eabe4674 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-2026-81014 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/x86/hp/hp-bioscfg/spmobj-attributes.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/4c6374dcb270d12907b880cf82a5a5ef21785fc3 https://git.kernel.org/stable/c/7cd8fe01aba303a2382db0966eb6c8ab41d5f3c2 https://git.kernel.org/stable/c/67b60703d7d8af1ca0e49f72e1bdb1ccecd41b5b https://git.kernel.org/stable/c/a7508c7959ff8d037327d377ed21a9c0eabe4674