CVE-2026-80689: tracing/mmiotrace: Add NULL check for mmio_trace_array in logging functions
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
tracing/mmiotrace: Add NULL check for mmio_trace_array in logging functions
mmio_trace_rw() and mmio_trace_mapping() retrieve mmio_trace_array into tr and pass it to __trace_mmiotrace_rw() and __trace_mmiotrace_map(). If these functions are invoked while mmio_trace_array is NULL (e.g. before initialization or after disabled), accessing tr->array_buffer.buffer will result in a NULL pointer dereference crash.
Fix this by adding an explicit NULL check for tr at the beginning of __trace_mmiotrace_rw() and __trace_mmiotrace_map().
The Linux kernel CVE team has assigned CVE-2026-80689 to this issue.
Affected and fixed versions
===========================
Issue introduced in 2.6.27 with commit f984b51e0779a6dd30feedc41404013ca54e5d05 and fixed in 6.12.103 with commit 876014b4eeb927146430e7591cf959a7ceb8d64a Issue introduced in 2.6.27 with commit f984b51e0779a6dd30feedc41404013ca54e5d05 and fixed in 6.18.44 with commit a20a0010eb6485f60cd64e15ebc85a4bd388642e Issue introduced in 2.6.27 with commit f984b51e0779a6dd30feedc41404013ca54e5d05 and fixed in 7.1.8 with commit 60234845142fddb27db89ebc00a65178421fb3a4 Issue introduced in 2.6.27 with commit f984b51e0779a6dd30feedc41404013ca54e5d05 and fixed in 7.2 with commit 12b80cdbc54cf615b4717a4e8180063408091ea2
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-80689
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_mmiotrace.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/876014b4eeb927146430e7591cf959a7ceb8d64a https://git.kernel.org/stable/c/a20a0010eb6485f60cd64e15ebc85a4bd388642e https://git.kernel.org/stable/c/60234845142fddb27db89ebc00a65178421fb3a4 https://git.kernel.org/stable/c/12b80cdbc54cf615b4717a4e8180063408091ea2