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 B0C8B1FDE09 for ; Wed, 16 Apr 2025 14:14:35 +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=1744812875; cv=none; b=JJ4lILzkfpOhHWIXf7BWOyesuwW+4iidJmAkUOqioyvGiIGuNtR+6/7A7lK8H5OvuVZe5owKqD581k50xmb3avJrR9GHWNrILcRIUlvYgGO7EXtEOi5NPElAQUmA7AEdOwoNTYc8B7r8/9ZtQ6gKgAY6+eLui4Ymi2UaQo1mdIo= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1744812875; c=relaxed/simple; bh=R1iwSqGeOugG6epnXhr0KnAw8IsUQytDLNWLPbziRa8=; h=From:To:Cc:Subject:Date:Message-ID:MIME-Version; b=DunF4vC9q9bCxGbeG9MkgdXOxgKpiqMswEyNIRxibRtgS+LrWWuKBruTsOWM+dLEHSUHhKBWvaOhac7r+sCK3uqknQROcesCmWkvwPg+zV+BdlNmg778ooMOkSSDJLWupxAPzlhH92fiDuvuxGy30ir/3v67yuETT9xy+bKXXEY= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=linuxfoundation.org header.i=@linuxfoundation.org header.b=ZywybO+5; 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="ZywybO+5" Received: by smtp.kernel.org (Postfix) with ESMTPSA id CE29CC4CEE2; Wed, 16 Apr 2025 14:14:34 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=linuxfoundation.org; s=korg; t=1744812875; bh=R1iwSqGeOugG6epnXhr0KnAw8IsUQytDLNWLPbziRa8=; h=From:To:Cc:Subject:Date:Reply-to:From; b=ZywybO+517zGmuXrTOr82qZJz9VsBvfSP4Nl0+/+m/+ICZQptNxYvidxMuneXElNq 8MeGxl7PXPLXRL/5chZVcW0gXsnc9VJqfnr5bDMWNRVoBrMyAi6thYa/eVQcwkAUp8 RyVLPcoln6rqLPlbsGqWjuAoph45sehWQG3yOgyE= From: Greg Kroah-Hartman To: linux-cve-announce@vger.kernel.org Cc: Greg Kroah-Hartman Subject: CVE-2025-22046: uprobes/x86: Harden uretprobe syscall trampoline check Date: Wed, 16 Apr 2025 16:12:17 +0200 Message-ID: <2025041601-CVE-2025-22046-e5b9@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=2719; i=gregkh@linuxfoundation.org; h=from:subject:message-id; bh=R1iwSqGeOugG6epnXhr0KnAw8IsUQytDLNWLPbziRa8=; b=owGbwMvMwCRo6H6F97bub03G02pJDOn/d20Su6tyboOwaHnuDQdVTvs3N/6fn82XGmWw6HTvv s86uxcVd8SyMAgyMciKKbJ82cZzdH/FIUUvQ9vTMHNYmUCGMHBxCsBEbH8wzFPS4bdflv624wEb T91kM911AX3PVjPMz1s83Xkp26Zgm7fnbZ+r/lO+ISEcCQA= X-Developer-Key: i=gregkh@linuxfoundation.org; a=openpgp; fpr=F4B60CC5BF78C2214A313DCB3147D40DDB2DFB29 Content-Transfer-Encoding: 8bit Description =========== In the Linux kernel, the following vulnerability has been resolved: uprobes/x86: Harden uretprobe syscall trampoline check Jann reported a possible issue when trampoline_check_ip returns address near the bottom of the address space that is allowed to call into the syscall if uretprobes are not set up: https://lore.kernel.org/bpf/202502081235.5A6F352985@keescook/T/#m9d416df341b8fbc11737dacbcd29f0054413cbbf Though the mmap minimum address restrictions will typically prevent creating mappings there, let's make sure uretprobe syscall checks for that. The Linux kernel CVE team has assigned CVE-2025-22046 to this issue. Affected and fixed versions =========================== Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.12.23 with commit c35771342e47d58ab9433f3be1c3c30f2c5fa4f3 Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.13.11 with commit b0065d712049c87e1994c6eac00c6a637e39b325 Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.14.2 with commit d4e48b8d59fe162938a5004ace698c847e6a3207 Issue introduced in 6.11 with commit ff474a78cef5cb5f32be52fe25b78441327a2e7c and fixed in 6.15-rc1 with commit fa6192adc32f4fdfe5b74edd5b210e12afd6ecc0 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-22046 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: arch/x86/kernel/uprobes.c include/linux/uprobes.h kernel/events/uprobes.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/c35771342e47d58ab9433f3be1c3c30f2c5fa4f3 https://git.kernel.org/stable/c/b0065d712049c87e1994c6eac00c6a637e39b325 https://git.kernel.org/stable/c/d4e48b8d59fe162938a5004ace698c847e6a3207 https://git.kernel.org/stable/c/fa6192adc32f4fdfe5b74edd5b210e12afd6ecc0