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 76ACC535FDC for ; Thu, 17 Sep 2026 16:39:22 +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=1789663163; cv=none; b=kvh2CMmHcZq0myJjGW1v7So3rcasHKQrUpRV9mYdf6hVfcCEaLVtQqQpDAhRCDUly0J1YVgdS1E6hYLvJDN3MzCZUICmfq158w1hoNAHgm0cWkLofH5YPWnwd1hlAL3SD3q9lcKNJbRztUukKDqLXqCV1pPaojTnbbwoeEw1Zwc= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1789663163; c=relaxed/simple; bh=ApU8o5cmSPDklsv2dn6nyZJurPLJPa5pGIPmo4q6S4E=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=IyzkKJSoYgFKqJD5rU97yk5RQ2OnNMEQTKB3HAKECmmDNN9rwmdC8ViX+JsrVVi9JHgJWlYG3GQ0RAx3hUjpXIGyAKtsHUwHW9JGaIlkphvsonhcV1u1UgZGBNOTkU/VIcVr3urU+lEQgo4+oemOLzTPjW/kygC6EzkI/rD0FzM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=tk/KpXDT; 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="tk/KpXDT" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C31EB1F0089A; Thu, 17 Sep 2026 16:39:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1789663162; bh=Os5HkfQa060Xe7lauON2g6ct0JCWRPYOraEmBCUMQlY=; h=From:To:Cc:Subject:Date:Reply-To; b=tk/KpXDTQnH2JTR1s2lAAeea08g1cXLTSizpB571dP5dvL362a2hxSRKhoGg59Atb DmsF/uZEzn3tobHqx4Z2tg64VGoXrreJfHSKRUMIcYo1YuTxBmwLIeAMixflQ6nyfQ HVFXT0VnWAvAxaVVI+J0Szv4jo2IZRej0MmpKIoA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-93148: bpf: Reject MEM_ALLOC BTF accesses past object bounds Date: Thu, 17 Sep 2026 17:17:05 +0100 Message-ID: <2026091755-CVE-2026-93148-40e4@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=2314; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=DiRsaghgmeeqOvqx3F98/OzD/c0fDr1IhTRtvQhxsSA=; b=owGbwMvMwCRo6H6F97bub03G02pJDFlrBC7LpkdO95p5+qOU0LtJzfN2NYlNrQqS2JzMIe+kE 7Ct8ub5jlgWBkEmBlkxRZYv23iO7q84pOhlaHsaZg4rE8gQBi5OAZiIQR7DPLUTTGeXeGp8S1rM Z2S7bmWGBssbT4YFp5mj/+79UrTGmPP2u/r9JjYxq1abAgA= 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: bpf: Reject MEM_ALLOC BTF accesses past object bounds BTF struct walks relax the struct-size check for accesses through a trailing flexible array. That is valid for ordinary BTF type walking, but PTR_TO_BTF_ID | MEM_ALLOC values point to objects allocated with the static BTF type size. When walking a MEM_ALLOC object, reject the access before applying the flexible-array relaxation if the access range extends past the struct size. Apply the same policy to struct ID matching so kfunc and kptr type checks do not walk past the allocated object bounds either. The Linux kernel CVE team has assigned CVE-2026-93148 to this issue. Affected and fixed versions =========================== Issue introduced in 6.2 with commit 958cf2e273f0929c66169e0788031310e8118722 and fixed in 7.2.6 with commit e626a50d07d43421cbf7bfb5a084b33a5e276b6e Issue introduced in 6.2 with commit 958cf2e273f0929c66169e0788031310e8118722 and fixed in 7.3-rc1 with commit 9c9ee0324c774490ae953162aaaf4561d222bd93 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-93148 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: include/linux/bpf.h kernel/bpf/btf.c kernel/bpf/verifier.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/e626a50d07d43421cbf7bfb5a084b33a5e276b6e https://git.kernel.org/stable/c/9c9ee0324c774490ae953162aaaf4561d222bd93