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 26E6B28C84A for ; Thu, 4 Dec 2025 15:32:18 +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=1764862338; cv=none; b=evQBbGLJSRjzBbQ/PMadkeD2XJ6558utNEb6gAsnhTkrrVTWVZtKuOTIGKyIDqSSGPSC2LV081wbdVre1wZNpOQrTbqT3tFIamjIdlmi6f3ZtY0+jSmygk4F6O/pImCLtYrJywEymYsVWD6t05lqwmIESyLZQDwzletdr9L3FNw= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1764862338; c=relaxed/simple; bh=E54axbCtHghapKhtmJOZN5lBZP+krAXRGyQVrHSh+34=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=iOJoQxzNl/V/2BNNsWfRXpvQxLjG9Wu6zwZkAs3rviQh1qaFp+lKj8hxqZsWzRCDZh0HLXyUPZ61YWnVcBl+PG43nLnL9OxI8DPThtaFN/u3M0vDWk3zjib/2qpCbrPoBMRCN7OLu7j7QG48y8f8k/nkixcDesJQTYAoMgjiTXk= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=yLsCFj4K; 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="yLsCFj4K" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 826D7C116C6; Thu, 4 Dec 2025 15:32:17 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1764862337; bh=E54axbCtHghapKhtmJOZN5lBZP+krAXRGyQVrHSh+34=; h=From:To:Cc:Subject:Date:Reply-To:From; b=yLsCFj4K5Eo1HWKe9Wklk4T5tUPU80lSzauphyfQ8y1hYHRgRZdM22JAQChE0uHDF Pxh3cRaxHp5Fuzd1bj2fwcvQFySX7EauqjyY56Hm3tUhtTajwDOM69mQvL1z5bivs1 GtC6niCiU632hIe4p5Q8Ksm2V2QoZuZgRsNN2Ets= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-40232: rv: Fully convert enabled_monitors to use list_head as iterator Date: Thu, 4 Dec 2025 16:32:07 +0100 Message-ID: <2025120400-CVE-2025-40232-a46a@gregkh> X-Mailer: git-send-email 2.52.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=2141; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=yomtA6Ln+A8CchgqhrcB5qcM8VXQ/mkqlqNYuu0qUpg=; b=owGbwMvMwCRo6H6F97bub03G02pJDJmGKwtkll8umsKQbbV4TZXAjpBZrEdmCeueXbNeOf7W8 YOHJvIIdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEqrwZ5pkdduv7M9/k3eq2 cutzP/xMzqjc7GWYH5Oyyt83zkLquk79ZbvFR//eC4y1BwA= 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: rv: Fully convert enabled_monitors to use list_head as iterator The callbacks in enabled_monitors_seq_ops are inconsistent. Some treat the iterator as struct rv_monitor *, while others treat the iterator as struct list_head *. This causes a wrong type cast and crashes the system as reported by Nathan. Convert everything to use struct list_head * as iterator. This also makes enabled_monitors consistent with available_monitors. The Linux kernel CVE team has assigned CVE-2025-40232 to this issue. Affected and fixed versions =========================== Issue introduced in 6.17 with commit de090d1ccae1e191af4beb92964591c6e4f31f28 and fixed in 6.17.6 with commit 8948a0338d33c4a7ef1e0c439a3ad1d5fe9355ae Issue introduced in 6.17 with commit de090d1ccae1e191af4beb92964591c6e4f31f28 and fixed in 6.18 with commit 103541e6a5854b08a25e4caa61e990af1009a52e 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-40232 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/rv/rv.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/8948a0338d33c4a7ef1e0c439a3ad1d5fe9355ae https://git.kernel.org/stable/c/103541e6a5854b08a25e4caa61e990af1009a52e