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 E62902DE6E8 for ; Thu, 3 Jul 2025 08:35:50 +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=1751531751; cv=none; b=h6zcReS97sEqPRYPrg7wJWDXgfvYC+bKUKD4g40o0sqZSmahHclSCJ/KuGJCddns8e8E24tzHYOCinGqDxGHACSX6xgnLOz+cNPXQvPp3Tj0s+Hho4ZbU05pOf9JHXZXZOPtcuAw275jrGBsBflRrUYBs0Y6D7Jtd0WOzUeZY/Q= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1751531751; c=relaxed/simple; bh=cj1kESEjgH04WXwqnQUWSKdXEPkWGRURyYbycnAtCow=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=WjTHzi5TK1bVZKpp4981KaouXSEbwq+OF/AvFOool6k8m4ppoVcVAYGQwMBvFLgm0trnV0uugiCxw+DmQTauHnfYMlMGFvUm4N58UhMKnpRRo98KP6NSTrwHp2wbPPT+z9L6JE3e1mllY60IWqKbIF46RTdEzwLVKUBxYopa5oQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ck94h5RU; 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="ck94h5RU" Received: by smtp.kernel.org (Postfix) with ESMTPSA id D1AADC4CEE3; Thu, 3 Jul 2025 08:35:49 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1751531750; bh=cj1kESEjgH04WXwqnQUWSKdXEPkWGRURyYbycnAtCow=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ck94h5RUF6B0rJVsOaycAldmhxf3K+eXWSZtwFFEY1nnwzM2+r06d5Oa9AyZ65U+6 5FCsS20Vh1fuw0PSX8023gRGe5xxNXMm/zX/QDpn5Zz3RS94Zla04a8MUXIxJzqWQM MvViel9QoBS+sz1go0Vj/6m0Wbk9t9zf8WImX27Y= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38101: ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set() Date: Thu, 3 Jul 2025 10:35:19 +0200 Message-ID: <2025070321-CVE-2025-38101-56c1@gregkh> X-Mailer: git-send-email 2.50.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=2209; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=qmJtmcB1MQGjeeR1D3X6Ny9sN4MjbRZuDUYAbO+h2yQ=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlpDidXyAkvPWVzVcPyu317mkxhVS1LmvfZu2F7U5svB 6gttKjviGVhEGRikBVTZPmyjefo/opDil6Gtqdh5rAygQxh4OIUgIn4mTAsaKv527F6W1Jss255 b654QUfOxvBohgULOn6rsbZbibd+PpxkkCC9PXJa0hYA 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: ring-buffer: Fix buffer locking in ring_buffer_subbuf_order_set() Enlarge the critical section in ring_buffer_subbuf_order_set() to ensure that error handling takes place with per-buffer mutex held, thus preventing list corruption and other concurrency-related issues. The Linux kernel CVE team has assigned CVE-2025-38101 to this issue. Affected and fixed versions =========================== Issue introduced in 6.8 with commit f9b94daa542a8d2532f0930f01cd9aec2d19621b and fixed in 6.12.34 with commit e09c0600beea469b3ebf974464e526a02d59ad62 Issue introduced in 6.8 with commit f9b94daa542a8d2532f0930f01cd9aec2d19621b and fixed in 6.15.3 with commit 0fc9a295cd8e59c3636e97395e7c74a9c89fee42 Issue introduced in 6.8 with commit f9b94daa542a8d2532f0930f01cd9aec2d19621b and fixed in 6.16-rc1 with commit 40ee2afafc1d9fe3aa44a6fbe440d78a5c96a72e 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-2025-38101 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/e09c0600beea469b3ebf974464e526a02d59ad62 https://git.kernel.org/stable/c/0fc9a295cd8e59c3636e97395e7c74a9c89fee42 https://git.kernel.org/stable/c/40ee2afafc1d9fe3aa44a6fbe440d78a5c96a72e