Skip to contentSkip to conversation

CVE-2026-31480: tracing: Fix potential deadlock in cpu hotplug with osnoise

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Apr 22

lore
Share & tools
lore
#0 lore raw

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

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

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

tracing: Fix potential deadlock in cpu hotplug with osnoise

The following sequence may leads deadlock in cpu hotplug:

    task1        task2        task3
    -----        -----        -----

mutex_lock(&interface_lock)

            [CPU GOING OFFLINE]

            cpus_write_lock();
            osnoise_cpu_die();
              kthread_stop(task3);
                wait_for_completion();

                      osnoise_sleep();
                        mutex_lock(&interface_lock);

cpus_read_lock();

[DEAD LOCK]

Fix by swap the order of cpus_read_lock() and mutex_lock(&interface_lock).

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

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

	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 5.15.203 with commit cf929c21eeed5bd39873fb14bfdfff963fa6f1da
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 6.1.168 with commit 7aa095ce7d224308cb6979956f0de8607df93d4f
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 6.6.131 with commit ef41a85a55022e27cdaebf22a6676910b66f65aa
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 6.12.80 with commit 03474a01c199de17a8e2d39b51df6beb9c76e831
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 6.18.21 with commit f278b8ebf7eba2a1699cfc7bf30dd3ef898d60d7
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 6.19.11 with commit 7a41d4633cd2c15eb5ed31e8f3b16910e50a8c9f
	Issue introduced in 5.14 with commit bce29ac9ce0bb0b0b146b687ab978378c21e9078 and fixed in 7.0 with commit 1f9885732248d22f788e4992c739a98c88ab8a55

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

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/trace/trace_osnoise.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/cf929c21eeed5bd39873fb14bfdfff963fa6f1da
	https://git.kernel.org/stable/c/7aa095ce7d224308cb6979956f0de8607df93d4f
	https://git.kernel.org/stable/c/ef41a85a55022e27cdaebf22a6676910b66f65aa
	https://git.kernel.org/stable/c/03474a01c199de17a8e2d39b51df6beb9c76e831
	https://git.kernel.org/stable/c/f278b8ebf7eba2a1699cfc7bf30dd3ef898d60d7
	https://git.kernel.org/stable/c/7a41d4633cd2c15eb5ed31e8f3b16910e50a8c9f
	https://git.kernel.org/stable/c/1f9885732248d22f788e4992c739a98c88ab8a55