Skip to contentSkip to conversation

CVE-2026-72357: uprobes/x86: Use proper mm_struct in __in_uprobe_trampoline

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

In the Linux kernel, the following vulnerability has been resolved:

uprobes/x86: Use proper mm_struct in __in_uprobe_trampoline

In the unregister path we use __in_uprobe_trampoline check with current->mm for the VMA lookup, which is wrong, because we are in the tracer context, not the traced process.

Add mm_struct pointer argument to __in_uprobe_trampoline and changing related callers to pass proper mm_struct pointer.

The Linux kernel CVE team has assigned CVE-2026-72357 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 6.18 with commit ba2bfc97b4629b10bd8d02b36e04f3932a04cac4 and fixed in 6.18.40 with commit c9170c83b0e0fc2065a4c2bca5bf1f90c5880156
	Issue introduced in 6.18 with commit ba2bfc97b4629b10bd8d02b36e04f3932a04cac4 and fixed in 7.1.5 with commit 1acddd3e22dd6912dd5d54f80462405a1f1e6bae
	Issue introduced in 6.18 with commit ba2bfc97b4629b10bd8d02b36e04f3932a04cac4 and fixed in 7.2-rc2 with commit 169328645663bae30e9abad4012d52441e085a71

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-2026-72357

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

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/c9170c83b0e0fc2065a4c2bca5bf1f90c5880156
	https://git.kernel.org/stable/c/1acddd3e22dd6912dd5d54f80462405a1f1e6bae
	https://git.kernel.org/stable/c/169328645663bae30e9abad4012d52441e085a71