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 994831CBEA7 for ; Fri, 8 Nov 2024 06:08: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=1731046106; cv=none; b=eI6oaMu/8wv22B7MR/Yivhl2cFYm0HZ1T+RQ+yftUrKw7CPdiK3q71S6+FlbrFHUoDY2OqbkiJ94X+FQouj24OE0Ji3El6nMN6fXsN0ax56Vc2t0Ik5bazsRwS2BrotizkYUeIn4pvz4FIoNGOCA7GE8pRlPy0/PdcEOnmuxoQ8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1731046106; c=relaxed/simple; bh=bQTW1zizENSyCB2JKOjPSo4DrGD3cyeK0Djyp/jJ8pU=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=okjObWoapj7+Isj+OZFKcuoEWp+aT7KUPJfFY69wcFl/hPe6lZfu9TZv4F6kZSdeYx/0lUls97stDqIucbwd52t4ruGfR7rsSZRMQ95tb1HZNYfAU0ny1fugjnanqKFSFgpemK2ptmqXVHN2Q30qJmoECKp8lAXli2DjXYTipNg= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=IM97PIvq; 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="IM97PIvq" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E3B6BC4CECF; Fri, 8 Nov 2024 06:08:25 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1731046106; bh=bQTW1zizENSyCB2JKOjPSo4DrGD3cyeK0Djyp/jJ8pU=; h=From:To:Cc:Subject:Date:Reply-to:From; b=IM97PIvqni7GtdvRHjkaK05p79maa9dniXV4PikxZBPB5BsocR19GyLou+/VdNlf8 /vGgH9RIkLWMtx5Z5+Pm3AAPWsn3HQzXUMeI7+bV+AEeK4+SH9oinrWop2UV8FR+OO uqSpM9lgiAuOm+4huVedPaZm4fbyYKG9Vw48YkpE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2024-50207: ring-buffer: Fix reader locking when changing the sub buffer order Date: Fri, 8 Nov 2024 07:08:08 +0100 Message-ID: <2024110806-CVE-2024-50207-6f39@gregkh> X-Mailer: git-send-email 2.47.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=2339; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=bQTW1zizENSyCB2JKOjPSo4DrGD3cyeK0Djyp/jJ8pU=; b=owGbwMvMwCRo6H6F97bub03G02pJDOm6q4558x+feGln0uGyjWv3fks+FhDzrHL+53XCL5U/K Lsu7PuR3RHLwiDIxCArpsjyZRvP0f0VhxS9DG1Pw8xhZQIZwsDFKQATebWSYcEEzcnrS7943Hz8 sL9z85qOtUsaO74wzNO7cUzRO1Bf7ISXwkSx8t/bzJlOvwEA 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: ring-buffer: Fix reader locking when changing the sub buffer order The function ring_buffer_subbuf_order_set() updates each ring_buffer_per_cpu and installs new sub buffers that match the requested page order. This operation may be invoked concurrently with readers that rely on some of the modified data, such as the head bit (RB_PAGE_HEAD), or the ring_buffer_per_cpu.pages and reader_page pointers. However, no exclusive access is acquired by ring_buffer_subbuf_order_set(). Modifying the mentioned data while a reader also operates on them can then result in incorrect memory access and various crashes. Fix the problem by taking the reader_lock when updating a specific ring_buffer_per_cpu in ring_buffer_subbuf_order_set(). The Linux kernel CVE team has assigned CVE-2024-50207 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit 8e7b58c27b3c and fixed in 6.11.6 with commit a569290525a0 Issue introduced in 6.8 with commit 8e7b58c27b3c and fixed in 6.12-rc4 with commit 09661f75e75c 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-50207 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/trace/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/a569290525a05162d5dd26d9845591eaf46e5802 https://git.kernel.org/stable/c/09661f75e75cb6c1d2d8326a70c311d46729235f