Skip to contentSkip to conversation

CVE-2026-74749: rseq: Prevent hard lockup on granted time slice extension

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 26

lore
Share & tools
lore
#0 lore raw

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

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

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

rseq: Prevent hard lockup on granted time slice extension

__exit_to_user_mode_loop() invokes rseq_grant_timeslice_extension() with interrupts enabled. If the extension is granted it invokes hrtimer_rearm_deferred_tif() to ensure that a pending deferred hrtimer rearm is handled before exiting to user space.

Though this invokes __hrtimer_rearm_deferred() which expects to be invoked with interrupts disabled as it takes hrtimer_cpu_base::lock with raw_spin_lock(). That's a livelock waiting to happen and caught by lockdep:

    WARNING: ./include/linux/hrtimer_rearm.h:17 at irqentry_exit, CPU#1: slice_test
    WARNING: inconsistent lock state
    inconsistent {IN-HARDIRQ-W} -> {HARDIRQ-ON-W} usage.

Prevent this by disabling interrupts around the invocation of hrtimer_rearm_deferred_tif() in rseq_grant_timeslice_extension().

[ tglx: Massaged change log ]

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

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

	Issue introduced in 7.1 with commit 15dd3a9488557d3e6ebcecacab79f4e56b69ab54 and fixed in 7.1.10 with commit 8bbf4405050bc4f98be68082a20efa081ea8ad9b
	Issue introduced in 7.1 with commit 15dd3a9488557d3e6ebcecacab79f4e56b69ab54 and fixed in 7.2 with commit ada54c2ba652348c590d1ace6a2f4ff77cbbf809

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

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:
include/linux/rseq_entry.h

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/8bbf4405050bc4f98be68082a20efa081ea8ad9b
	https://git.kernel.org/stable/c/ada54c2ba652348c590d1ace6a2f4ff77cbbf809