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 08C03384CFE for ; Sat, 15 Aug 2026 06:36:46 +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=1786775807; cv=none; b=O6tY/avfwEcsrcAQZMhEVGnNTPACUZ1Z/C1Q67j4rshnTE5O8hPO80ZBFfGc+wPxmnB4Vw/P1RE6UE3W6Ky8TT+HwxR8IES5nNd/HLX3BzbiMwa3RV2sDsJHPcV4OydXtke/JRyNDQiqVFN9ZcJkpMLGzKwhZ7jIGExHoIvBFAs= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1786775807; c=relaxed/simple; bh=DrsYB1fAy8DjybETMtXsendyzUTxac5VKKNPs91KAGk=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=sCzQznPK2HAPdNNOxmhYpj6/yKb0EiK28wufYT72mb5x+t8sS7Id7xvPiWZLwnS7/MnIwwU9HGPS5O1ddVz6mWMA6+Vr6GksZ6Ow/cJIxOKCS4vt61fRNClV99+JsAhnIa7rvq9yu2798Z79jP2Bq5YLHYJAUrj3XIhdd3bLxl8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=H0bA6Kmx; 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="H0bA6Kmx" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 608831F000E9; Sat, 15 Aug 2026 06:36:45 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linuxfoundation.org; s=korg; t=1786775805; bh=PVf2zL971xv/zT4UhTRxY8yW3UX7qax2/ITsseLUXAI=; h=From:To:Cc:Subject:Date:Reply-To; b=H0bA6KmxM+fEBfuXnbhOgCzj7nr41kV3kAaSzqKL7kznWD4VGdaoegSzhd12TuBco UcTJnAs+TFrM+8FlZOCTPClg2br0Elon4E5L8hi6QZNRZ91HXm8+iSevtSA6KOEUsx qjDDM5Sl6Kn5Kkl2P2HlFlRKYrUIWOBKYah0gGoY= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-74360: bpf: Reject exclusive maps for bpf_map_elem iterators Date: Sat, 15 Aug 2026 15:11:27 +0900 Message-ID: <2026081501-CVE-2026-74360-6213@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=2484; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=cQ4A59kcsnBdE2G+H4jz3btMtoCe5VE8njfCWdAKNUQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDFkNjKLLHd67Pg7dulehztmrqs17k5sbF+e7SXMlY/rOl rYL7jveEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABPZ+oVhnlKxwuy7+98YJtpd S9f+dmX/3xQvToYF+2c/Sf749KRbwdJL1tvY1Mv5guTTAA== 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 exclusive maps for bpf_map_elem iterators Exclusive maps (aka excl_prog_hash) are meant to be reachable only from the single program whose hash matches. This is enforced by check_map_prog_compatibility() when the map is referenced from a program such as signed BPF loaders. A bpf_map_elem iterator, however, binds its target map at attach time in bpf_iter_attach_map() instead of referencing it from the program, so the exclusivity check is never reached. On top of that, the iterator exposes the map value as a writable buffer. The Linux kernel CVE team has assigned CVE-2026-74360 to this issue. Affected and fixed versions =========================== Issue introduced in 6.18 with commit baefdbdf6812e120c9fba9cfb101d3656f478026 and fixed in 6.18.40 with commit 5cf2c85b1231218a3e3e9f188afb4fe2e17903d5 Issue introduced in 6.18 with commit baefdbdf6812e120c9fba9cfb101d3656f478026 and fixed in 7.1.5 with commit c3da741d5b2119c61c4498bc936f0fc1dbc3c79b Issue introduced in 6.18 with commit baefdbdf6812e120c9fba9cfb101d3656f478026 and fixed in 7.2-rc1 with commit 3c56ee343f9412d81918635c3e25e22a5dd6d87e 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-74360 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: kernel/bpf/map_iter.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/5cf2c85b1231218a3e3e9f188afb4fe2e17903d5 https://git.kernel.org/stable/c/c3da741d5b2119c61c4498bc936f0fc1dbc3c79b https://git.kernel.org/stable/c/3c56ee343f9412d81918635c3e25e22a5dd6d87e