Skip to contentSkip to conversation

CVE-2026-90347: arm64: ptrace: Keep 'orig_x0' in-sync with x0 on syscall entry

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Sep 17

lore
Share & tools
lore
#0 lore raw

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

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

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

arm64: ptrace: Keep 'orig_x0' in-sync with x0 on syscall entry

Commit e057b9477232 ("arm64: syscall: Ensure saved x0 is kept in-sync with tracer updates") attempted to resolve a long-standing issue with syscall entry tracing, where a tracer is able to manipulate the first syscall argument without being subjected to seccomp or audit checking.

Unfortunately, that fix was incomplete [1], as it failed to update 'orig_x0' between a tracer updating x0 during a seccomp ptrace exit (SECCOMP_RET_TRACE) and the seccomp filter being re-evaluated.

Rather than add hooks to the core seccomp code, instead move the synchronisation code into the ptrace GPR and syscall setting code so that 'orig_x0' is kept up to date with x0 whenever we're stopped on the syscall entry path.

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

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

	Issue introduced in 4.8 with commit a5cd110cb8369d6b37ef5ccfe56b3fa1338c9615 and fixed in 7.2.6 with commit f433869f23841a50455c4087d85540d5b4d37cde
	Issue introduced in 4.8 with commit a5cd110cb8369d6b37ef5ccfe56b3fa1338c9615 and fixed in 7.3-rc1 with commit 88b839ce497ccb1ff92f7ae742c78dd2937ba572

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-90347

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/arm64/kernel/ptrace.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/f433869f23841a50455c4087d85540d5b4d37cde
	https://git.kernel.org/stable/c/88b839ce497ccb1ff92f7ae742c78dd2937ba572