CVE-2026-72309: tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tracing/remotes: Fix leak in trace_remote_alloc_buffer() error path
If page allocation fails in trace_remote_alloc_buffer(), desc->nr_cpus is not yet incremented for the current CPU. As a consequence, on error, half-allocated rb_desc will not be freed in trace_remote_free_buffer().
Increment desc->nr_cpus as soon as the first allocation for the current CPU has succeeded.
The Linux kernel CVE team has assigned CVE-2026-72309 to this issue.
Affected and fixed versions
===========================
Issue introduced in 7.1 with commit 96e43537af5461b26f50904c6055046ba65d742f and fixed in 7.1.5 with commit 81a7b7ddb07efdd8cf30eac6def18b9289b8de1e Issue introduced in 7.1 with commit 96e43537af5461b26f50904c6055046ba65d742f and fixed in 7.2-rc3 with commit ec082d0b978b5fb4c11205ccce63587ac94c74e1
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-72309
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_remote.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/81a7b7ddb07efdd8cf30eac6def18b9289b8de1e https://git.kernel.org/stable/c/ec082d0b978b5fb4c11205ccce63587ac94c74e1