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 21245251793 for ; Fri, 22 Aug 2025 16:01:32 +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=1755878493; cv=none; b=LGrDrdGb5l7YPkqXrzaEU6YKvwm6j79ilgq5252qAHww7QR5uHvxzb2pMWtsvVT5/4BDJeDDWzeUp7Iaw+t53bu3LIavHXApoeyX2H9a76lA/c6AKqr/km6E0259iF2f7nckMUk6LOy6BrN9NPdwO1iambS5aMzkM0lkV0IMqSA= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1755878493; c=relaxed/simple; bh=3staSMJkHxpBO8fgLFuz7c0vFoYdNBY4r4XSDUCTHH8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=Q2nm7AIrXm35eA6vJzRzOK8iaLolYsazl27oMrUYl4KCr0/kc392w0KMgo0JpMgllvDyZuMYA9CXfhTwgALX4SFgWpERAv9eXIZFz53ffbs3N8pIZyALadY7OhQ5o/quiIvtUQUbSOK27O5ahGbY0hB2REuPTeExtXuc1E/xgsU= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=oevJO1uf; 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="oevJO1uf" Received: by smtp.kernel.org (Postfix) with ESMTPSA id 363E2C4CEED; Fri, 22 Aug 2025 16:01:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1755878492; bh=3staSMJkHxpBO8fgLFuz7c0vFoYdNBY4r4XSDUCTHH8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=oevJO1ufGlML7AcR8rKv+pHUCGGe9QAsyQrOLpmrQXe6xJZHlE0ThjFo5GCh5XApH e7eA4Fjjp7JYjgl6j4HXhE8HCmGqtZY5aN7hg/nWy+uWfRG4sWwV9eGqLBZ+byNm6O JlbuaLDBLQ0JcNd94Zb4+P+H9iECiB09xbWJRYkg= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-38636: rv: Use strings in da monitors tracepoints Date: Fri, 22 Aug 2025 18:00:45 +0200 Message-ID: <2025082233-CVE-2025-38636-0ce2@gregkh> X-Mailer: git-send-email 2.50.1 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=2751; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=Sxdt7l1LtAMYkB5Q44HJI2RSkm5U+RNlyeOld4EnzH8=; b=owGbwMvMwCRo6H6F97bub03G02pJDBkrpig+Tr539/T2c5w+kyxXFNtZWB5TfO4TJ8S79sbF2 kPPWneEdsSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEuPwZ5mkZ/9D6ZKH+757+ knItj+4DV69FKDPMr9BM9YluESlcNbfpH2Nw+Z8fJ/LsAQ== 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: Use strings in da monitors tracepoints Using DA monitors tracepoints with KASAN enabled triggers the following warning: BUG: KASAN: global-out-of-bounds in do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 Read of size 32 at addr ffffffffaada8980 by task ... Call Trace: [...] do_trace_event_raw_event_event_da_monitor+0xd6/0x1a0 ? __pfx_do_trace_event_raw_event_event_da_monitor+0x10/0x10 ? trace_event_sncid+0x83/0x200 trace_event_sncid+0x163/0x200 [...] The buggy address belongs to the variable: automaton_snep+0x4e0/0x5e0 This is caused by the tracepoints reading 32 bytes __array instead of __string from the automata definition. Such strings are literals and reading 32 bytes ends up in out of bound memory accesses (e.g. the next automaton's data in this case). The error is harmless as, while printing the string, we stop at the null terminator, but it should still be fixed. Use the __string facilities while defining the tracepoints to avoid reading out of bound memory. The Linux kernel CVE team has assigned CVE-2025-38636 to this issue. Affected and fixed versions =========================== Issue introduced in 6.0 with commit 792575348ff70e05c6040d02fce38e949ef92c37 and fixed in 6.16.1 with commit 0ebc70d973ce7a81826b5c4f55f743e07f5864d9 Issue introduced in 6.0 with commit 792575348ff70e05c6040d02fce38e949ef92c37 and fixed in 6.17-rc1 with commit 7f904ff6e58d398c4336f3c19c42b338324451f7 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-38636 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_trace.h 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/0ebc70d973ce7a81826b5c4f55f743e07f5864d9 https://git.kernel.org/stable/c/7f904ff6e58d398c4336f3c19c42b338324451f7