CVE-2026-80661: ufs: core: tracing: Do not dereference pointers in TP_printk()

Published Aug 28, 2026
·
Updated

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

ufs: core: tracing: Do not dereference pointers in TPprintk()

The trace events in drivers/ufs/core/ufstrace.h were converted to take a pointer to the hba structure as an argument for the tracepoint and then in TPprintk() the printing of the devname from the ring buffer was converted to using the dev dereferenced pointer from the hba saved pointer.

This is not allowed as the TPprintk() is executed at the time the trace event is read from /sys/kernel/tracing/trace file. That can happen literally, seconds, minutes, hours, weeks, days, or even months later! There is no guarantee that the hba pointer will still exist by the time it is dereferenced when the "trace" file is read.

Instead, save the device name from the hba pointer at the time the tracepoint is called and place it into the ring buffer event. Then the TPprintk() can read the name directly from the ring buffer and remove the possibility that it will read a freed pointer and crash the kernel.

This was detected when testing the trace event code that looks for TPprintk() parameters doing illegal derferences[1]

[1] https://lore.kernel.org/all/20260630184836.74d477b6@gandalf.local.home/

Event History

Aug 28, 2026
CVE Published
via MITRE·06:49 AM
Data Sourced
via MITRE·06:49 AM
Description

Frequently Asked Questions

1

When does the unsafe access occur?

The pointer is dereferenced when trace output is read from /sys/kernel/tracing/trace, not when the trace event is recorded. A delayed read after the associated UFS host controller structure has been freed can therefore access invalid memory and crash the kernel.

2

What systems are exposed to this issue?

The affected code is in Linux UFS core trace events. Exposure requires those events to have recorded an HBA pointer and the trace data to be read after that pointer is no longer valid.

3

How can an administrator recognize a possible occurrence?

A kernel crash while reading the tracing trace file can indicate this condition, particularly if UFS trace events were recorded long before the file was read. The provided information does not identify affected kernel versions or a distinct log signature.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203