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 7C90B26ACD for ; Fri, 13 Sep 2024 14:49:22 +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=1726238962; cv=none; b=iKsPKIGLX6Y24DpfEbomH6AssbvuAAnhQJogGiodEGoGiPPMODtBFZs8N9b4FkKW2jjcq3BXVJX23jHU2FFWYj2xeiHEwrXc5xduUxhEdVBwGDDs0svEtUydDyHA3pk0Sk09aeAMztahnM4Qhmwz6sjCrgkpJnJ30IUWdAhzA1I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1726238962; c=relaxed/simple; bh=gAkn6hDWQrMsyrdKa+grHaxM15XxR3it/Wm3v3NXGmw=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=cuipJKvk3lX/wMvH75dm0kehha+Tn7Qfu0n1kzTSHXcUmIBiDxQ1GpJ3uLiph1/kfdyyJvKBlsIeCO+0IK8NsI9VIy/gCVaLvayd2vLtYPVTm6hJ9Q76e10So6CYGAxdrYT0XmPz/ZgD27vVyOZK56RecrcflTT5qAtXAlra1RM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ssE3xZJK; 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="ssE3xZJK" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 95534C4CEC0; Fri, 13 Sep 2024 14:49:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1726238962; bh=gAkn6hDWQrMsyrdKa+grHaxM15XxR3it/Wm3v3NXGmw=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ssE3xZJKbkGrD1BmUVTBGrOYHGNr8xt5vG9zO2EHECcjYX9FJ2eRYtz9kkEmhWFMe oTl0HUw+Pux8CPiycA2j7/rK0TLBT1SobLYCJnzCR27VhM1swn9WqFQi9tutayNEi2 NYn83y2OnZsy62y0GiYzEErTDoumbhg87h5dBG1A= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-46713: perf/aux: Fix AUX buffer serialization Date: Fri, 13 Sep 2024 16:49:17 +0200 Message-ID: <2024091316-CVE-2024-46713-5e49@gregkh> X-Mailer: git-send-email 2.46.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=2668; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=gAkn6hDWQrMsyrdKa+grHaxM15XxR3it/Wm3v3NXGmw=; b=owGbwMvMwCRo6H6F97bub03G02pJDGlPAt6edGEI/SDirjPnHp98atyp4gei+Tc7vXvzNL7Ks Ow1DNzSEcvCIMjEICumyPJlG8/R/RWHFL0MbU/DzGFlAhnCwMUpABOJl2NYsN/vsqeq14urn4/E lJ1ZdCR+0/e1Rxnmex/UZJbLvHzYaKr+n5mT1p+rq35wFgA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: perf/aux: Fix AUX buffer serialization Ole reported that event->mmap_mutex is strictly insufficient to serialize the AUX buffer, add a per RB mutex to fully serialize it. Note that in the lock order comment the perf_event::mmap_mutex order was already wrong, that is, it nesting under mmap_lock is not new with this patch. The Linux kernel CVE team has assigned CVE-2024-46713 to this issue. Affected and fixed versions =========================== Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 5.10.226 with commit 7882923f1cb8 Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 5.15.167 with commit 52d13d224fdf Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 6.1.110 with commit 9dc7ad2b6777 Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 6.6.51 with commit c4b69bee3f4e Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 6.10.10 with commit b9b6882e243b Issue introduced in 4.1 with commit 45bfb2e50471 and fixed in 6.11-rc7 with commit 2ab9d830262c 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-2024-46713 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/events/core.c kernel/events/internal.h kernel/events/ring_buffer.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/7882923f1cb88dc1a17f2bf0c81b1fc80d44db82 https://git.kernel.org/stable/c/52d13d224fdf1299c8b642807fa1ea14d693f5ff https://git.kernel.org/stable/c/9dc7ad2b67772cfb94ceb3b0c9c4023c2463215d https://git.kernel.org/stable/c/c4b69bee3f4ef76809288fe6827bc14d4ae788ef https://git.kernel.org/stable/c/b9b6882e243b653d379abbeaa64a500182aba370 https://git.kernel.org/stable/c/2ab9d830262c132ab5db2f571003d80850d56b2a