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 7584628BABE for ; Wed, 18 Jun 2025 11:10: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=1750245022; cv=none; b=sLPcptQTLFhnWYEMjKLRPlweLnCZF5VXWPSPRzTq2Dt6n4XxzURUh4cIOGNm06HM4SjV/P/m4qsCfArF5GEuTOHsT7mH4xIqsEKjIzOvdLb/od+82iXoGpEPV09jlLqCvFp1nzScqdqnxzRJ25X3/l5g5yN/J92oYx8rnubgI8U= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1750245022; c=relaxed/simple; bh=12CIg32Yrl/nTG3vYZY9ySUSlarKztuKQMj4aDo5oiY=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=uU2S92FuDyPXwH5gh/zHDOcjB9CZh5trQBNgwGzG/Ee0tBoNr97RfHfJnHB/pBOPOTY8PIRK7PpVUte7AS/vDd01XHNa+sAO9/ZgP1UOg4/33y0OGBsJLCKyJfnGWAT3KSPbNogZyPd7BZFCJ+BbBW03qZYmY0Xlp1g8Hg1TO2s= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=u+B+jvPz; 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="u+B+jvPz" Received: by smtp.kernel.org (Postfix) with ESMTPSA id E000AC4CEE7; Wed, 18 Jun 2025 11:10:21 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1750245022; bh=12CIg32Yrl/nTG3vYZY9ySUSlarKztuKQMj4aDo5oiY=; h=From:To:Cc:Subject:Date:Reply-to:From; b=u+B+jvPz3hmJCzXscqhePY5Fyb5SQ/GryGRJxMjrdSFQow/BLxANRq+VHvOeN/83+ q7/9vBnlDhKzOTlR4lXHjfcoc9KKPM8dXvAA4q04rleRi8T4hp7mgYgrBBDplpktZ+ KQJ0rGV98L/bniGtnnNdpEWvQtkfvrFE+1mPUyaU= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-50075: tracing/eprobes: Have event probes be consistent with kprobes and uprobes Date: Wed, 18 Jun 2025 13:02:20 +0200 Message-ID: <2025061854-CVE-2022-50075-f791@gregkh> X-Mailer: git-send-email 2.49.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=2517; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=zJ5XtRdHa+80SCwCPGVvH86sau9uXEBOGSJM7H3MyIw=; b=owGbwMvMwCRo6H6F97bub03G02pJDBlBc9L/dbxt+7zihuzimetXi5fMLFg0N0jzu2D4HhYNg 3jJbS9XdMSyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEVC0Y5vsVXtuYsTb/osNq fa2tokdvPvXfeoNhwcwHV8tZWJ34JJe4en+2y1mo3PX9MgA= 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: tracing/eprobes: Have event probes be consistent with kprobes and uprobes Currently, if a symbol "@" is attempted to be used with an event probe (eprobes), it will cause a NULL pointer dereference crash. Both kprobes and uprobes can reference data other than the main registers. Such as immediate address, symbols and the current task name. Have eprobes do the same thing. For "comm", if "comm" is used and the event being attached to does not have the "comm" field, then make it the "$comm" that kprobes has. This is consistent to the way histograms and filters work. The Linux kernel CVE team has assigned CVE-2022-50075 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 5.15.63 with commit b489aca082a23033a3d8355cfb0032f0e2523440 Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 5.19.4 with commit 47cc883f21fa3bcf24891b4b455f4cd461ce2d6e Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 6.0 with commit 6a832ec3d680b3a4f4fad5752672827d71bae501 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-2022-50075 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/trace_eprobe.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/b489aca082a23033a3d8355cfb0032f0e2523440 https://git.kernel.org/stable/c/47cc883f21fa3bcf24891b4b455f4cd461ce2d6e https://git.kernel.org/stable/c/6a832ec3d680b3a4f4fad5752672827d71bae501