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 41DE13C4554 for ; Fri, 1 May 2026 14:19: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=1777645166; cv=none; b=osistrr+Y44gtMYvCISdE7PL+4/+oc82/Wh+n4vPj/Y3bS88V9+WmzzoKmOTWO2bV/UlvERw6VBxCPeJKn6cCCGwqE1L/ydMgHnCcdyxNWZ+/sU074hxezEnwQzxMXZDuRDdv+ulgh0MyVT2sbrKlwgPsjDVc4AgAvWh2GvVJUg= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1777645166; c=relaxed/simple; bh=rhTAdM4AynB/f5BwIAr/k5bukmrE+8K43QOCE9mDqDs=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=JC/wnbRJ1ZOTRy1i7w4dN+tMIGssW0tzpCDRf4OS6uz2j+MCpdxA0uz0nW/ysFzi+pBJ7bY12y5tlKhuEzBtana3XpCGoYzBcE0W0IDC+paVFGQnRJ6nc5BH+IxwR6/r5boGHpmeE9jdWCqCDhl80McOQKbDdCFlTzMtVDo8Y/4= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=iLrM7DE/; 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="iLrM7DE/" Received: by smtp.kernel.org (Postfix) with ESMTPSA id C86A7C2BCB4; Fri, 1 May 2026 14:19:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1777645166; bh=rhTAdM4AynB/f5BwIAr/k5bukmrE+8K43QOCE9mDqDs=; h=From:To:Cc:Subject:Date:Reply-To:From; b=iLrM7DE/3wEkFBFOFHUNCvVanjpO8hItpzUPB62da+PDu5eDlcu2QOTq543iLDZSR R0OCKR2klqAd4eFLqzknFNkphtwsI9k2x/oxCz43y1c/uTQVumjmM4KhvrZnXfPGgs j8rYF3nBepa88tHu/nrMTj9JNOv/KS8HvO8/5Ir4= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2026-31782: perf/x86: Fix potential bad container_of in intel_pmu_hw_config Date: Fri, 1 May 2026 16:15:33 +0200 Message-ID: <2026050151-CVE-2026-31782-0f2d@gregkh> X-Mailer: git-send-email 2.54.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=2365; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=intLKZ7ZhKm4iDqJLyaYzX7/Ij67dro5zKo4ursZ+gA=; b=owGbwMvMwCRo6H6F97bub03G02pJDJlftsb4L6n4f1iQd5N9c5TRg8S/NqIzJhSU/tty9Grl4 7z9/X6eHbEsDIJMDLJiiixftvEc3V9xSNHL0PY0zBxWJpAhDFycAjCRpgcMC1Ypq7nFcYgu291p m5P7mmUbxznTzwwLzofPmSLrceNlCeus88+vvmRheL16DgA= 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: perf/x86: Fix potential bad container_of in intel_pmu_hw_config Auto counter reload may have a group of events with software events present within it. The software event PMU isn't the x86_hybrid_pmu and a container_of operation in intel_pmu_set_acr_caused_constr (via the hybrid helper) could cause out of bound memory reads. Avoid this by guarding the call to intel_pmu_set_acr_caused_constr with an is_x86_event check. The Linux kernel CVE team has assigned CVE-2026-31782 to this issue. Affected and fixed versions =========================== Issue introduced in 6.16 with commit ec980e4facef8110f6fce27e5b6344660117f01f and fixed in 6.18.22 with commit e435a30ca6fe14c9611b1fc731c98a6d28410247 Issue introduced in 6.16 with commit ec980e4facef8110f6fce27e5b6344660117f01f and fixed in 6.19.12 with commit bfee04838f636d064bc92075c65c95f739003804 Issue introduced in 6.16 with commit ec980e4facef8110f6fce27e5b6344660117f01f and fixed in 7.0 with commit dbde07f06226438cd2cf1179745fa1bec5d8914a 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-31782 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: arch/x86/events/intel/core.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/e435a30ca6fe14c9611b1fc731c98a6d28410247 https://git.kernel.org/stable/c/bfee04838f636d064bc92075c65c95f739003804 https://git.kernel.org/stable/c/dbde07f06226438cd2cf1179745fa1bec5d8914a