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 6FB4DE567 for ; Thu, 1 May 2025 14:12:23 +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=1746108743; cv=none; b=QLBGgkujbdG62hq+CYHY6d6raZPnsduc4VJPPbagtoADQwov7qcpmCQY8zdlwFaOvVRLDpvwusMZMAgGgYOIzN2+vHRq6TFtzFBcnzzBpT9Gh8mEA8DWNvld0IJaC1SSQLWnhkbURsAtjFER/UqQ3asc+kQi4J0o4grHVc1UiN4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1746108743; c=relaxed/simple; bh=ycKZqBm0nl7fmMmvOauPMVrI7JDZr/GZ5acw9QyBCb4=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=oVqT9kIN9XRQIAsJwYZWehuucy8TAm1Dh+BmoMM0W3f/KmNs1JfoaVbsffVs1M0tbMsuMRjaKTYmRg0H41DEPoirSbdeeDQzLFqQ2WVX7Msu+rZLJYDwxRrLCqYcP6j4W4CTg9plkqvoU1Nz1mGijFneQnNEfl+QQDK0Vvlp6V8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=hvlsBlmH; 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="hvlsBlmH" Received: by smtp.kernel.org (Postfix) with ESMTPSA id F1586C4CEE3; Thu, 1 May 2025 14:12:22 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1746108743; bh=ycKZqBm0nl7fmMmvOauPMVrI7JDZr/GZ5acw9QyBCb4=; h=From:To:Cc:Subject:Date:Reply-to:From; b=hvlsBlmHraWi3f2NKt9ALA8pf0lIc5bJCdsAau+L7r2qvHmxVLNjwXnFmFMoDpqbQ kdEOniXA8iXeo9SWGMsSw3vmDgKMLY/G7IUopNWeR1oSp7LMwbhnqWud42vnDoCzMZ 9KK2I/cHQWj/cUojOWRDYAtQO4ib2UX16x5rZylA= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2022-49798: tracing: Fix race where eprobes can be called before the event Date: Thu, 1 May 2025 16:09:48 +0200 Message-ID: <2025050125-CVE-2022-49798-7e07@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=2385; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=wj0akDkyt9wUOBH1TIEYJ7/m0vEeOiSfOLlzeAkl1eo=; b=owGbwMvMwCRo6H6F97bub03G02pJDBnCDVNFk2L0Xp/Xnn7nx+J52UvYlu4u0r65t//dzu61Z por9H+s7ohlYRBkYpAVU2T5so3n6P6KQ4pehranYeawMoEMYeDiFICJOMoyLOjZ/2uxfc282pvR HM94PPJLE1MypjPM9/ss8vqMp8/it/fNYlS2W82NO7FvGgA= 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: Fix race where eprobes can be called before the event The flag that tells the event to call its triggers after reading the event is set for eprobes after the eprobe is enabled. This leads to a race where the eprobe may be triggered at the beginning of the event where the record information is NULL. The eprobe then dereferences the NULL record causing a NULL kernel pointer bug. Test for a NULL record to keep this from happening. The Linux kernel CVE team has assigned CVE-2022-49798 to this issue. Affected and fixed versions =========================== Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 5.15.80 with commit 7291dec4f2d17a2d3fd1f789fb41e58476539f21 Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 6.0.10 with commit 73f5191467ffe3af82f27fe0ea6a8c2fac724d3f Issue introduced in 5.15 with commit 7491e2c442781a1860181adb5ab472a52075f393 and fixed in 6.1 with commit 94eedf3dded5fb472ce97bfaf3ac1c6c29c35d26 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-49798 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/7291dec4f2d17a2d3fd1f789fb41e58476539f21 https://git.kernel.org/stable/c/73f5191467ffe3af82f27fe0ea6a8c2fac724d3f https://git.kernel.org/stable/c/94eedf3dded5fb472ce97bfaf3ac1c6c29c35d26