Skip to contentSkip to conversation

CVE-2026-53180: timers/migration: Fix livelock in tmigr_handle_remote_up()

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Jun 25

lore
Share & tools
lore
#0 lore raw

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

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

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

timers/migration: Fix livelock in tmigr_handle_remote_up()

tmigr_handle_remote_cpu() skips timer_expire_remote() when cpu == smp_processor_id(), assuming the local softirq path already handled this CPU's timers.

This assumption is wrong because jiffies can advance after the handling of the CPU's global timers in run_timer_base(BASE_GLOBAL) and before tmigr_handle_remote() evaluates the expiry times.

As a consequence a timer which expires after the CPU local timer wheel advanced and becomes expired in the remote handling is ignored and the callback is never invoked and removed from the timer wheel.

What's worse is that fetch_next_timer_interrupt_remote() keeps reporting it as expired, and the event is re-queued with expires == now on each iteration. The goto-again loop spins indefinitely.

Fix this by calling timer_expire_remote() unconditionally. That's minimal overhead for the common case as __run_timer_base() returns immediately if there is nothing to expire in the local wheel.

[ tglx: Amend change log and add a comment ]

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

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

	Issue introduced in 6.9 with commit 7ee988770326fca440472200c3eb58935fe712f6 and fixed in 6.12.94 with commit 07b3b83587fb3012619f4439389b64a955fc7836
	Issue introduced in 6.9 with commit 7ee988770326fca440472200c3eb58935fe712f6 and fixed in 6.18.36 with commit 1d6c2062b77be09ec15d6bf637b2e2221c4482fc
	Issue introduced in 6.9 with commit 7ee988770326fca440472200c3eb58935fe712f6 and fixed in 7.0.13 with commit d338e61ea94052a786aac9f58e9f0d8520afa0fd
	Issue introduced in 6.9 with commit 7ee988770326fca440472200c3eb58935fe712f6 and fixed in 7.1 with commit d486b4934a8e504376b85cdb3766f306d57aff5b

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

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/time/timer_migration.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/07b3b83587fb3012619f4439389b64a955fc7836
	https://git.kernel.org/stable/c/1d6c2062b77be09ec15d6bf637b2e2221c4482fc
	https://git.kernel.org/stable/c/d338e61ea94052a786aac9f58e9f0d8520afa0fd
	https://git.kernel.org/stable/c/d486b4934a8e504376b85cdb3766f306d57aff5b