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

tracing: Fix resource leak on mmiotrace trace_pipe close

The mmiotrace tracer was added May 12th 2008. At that time, resources
created in pipe_open() could not be freed because there was not
pipe_close function pointer of the tracer. The pipe_close function pointer
was added in December 7th, 2009, but the mmiotrace tracer was not updated.

mmio_pipe_open() allocates a header_iter and takes a pci_dev reference
when trace_pipe is opened. mmio_close() frees them, but it was only
wired to the tracer's .close callback.

tracing_release_pipe() invokes .pipe_close, not .close, when the
trace_pipe file is released. As a result, closing trace_pipe with the
mmiotrace tracer active leaked the header_iter allocation and left a
stale pci_dev reference.

Set .pipe_close to mmio_close, matching how function_graph wires both
callbacks to the same handler.

Note, if the trace_pipe is read to completion, it will clean up the
resources, but if one were to run:

# head -n 1 /sys/kernel/tracing/trace_pipe
VERSION 20070824

Over and over again, it would trigger a massive leak.
Published: 2026-08-10
Score: 4.4 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The kernel’s tracing subsystem can leak memory when the mmiotrace tracer is active. Opening the trace_pipe file allocates a header iterator and holds a reference to a PCI device, but the tracer’s close callback is not wired to release these resources. As a result, repeatedly reading the trace_pipe without draining it completely causes a growing leak of heap memory and stale device references, matching the CWE-763 improper resource cleanup weakness. The leak can exhaust system memory and destabilize the kernel if repeated actions are performed.

Affected Systems

All Linux kernels that include the mmiotrace tracer but have not yet applied the patch that wires mmio_close to the tracer’s .pipe_close callback are affected. This includes canonical Linux distributions whose kernel releases predate the commit that fixed the issue. Enabling the tracer via the /sys/kernel/tracing/tracer setting or accessing the /sys/kernel/tracing/trace_pipe interface without the patch will expose the vulnerability.

Risk and Exploitability

The CVSS score of 4.4 indicates a medium severity for a local resource leak. The EPSS score is <1%, showing a very low probability of exploitation in the wild, and the vulnerability is not listed in CISA’s KEV catalog. The likely attack vector is local privileged, requiring either root or kernel‑tracing privileges to repeatedly open and read the trace_pipe and trigger the leak. An attacker with such access could cause a denial‑of‑service by exhausting system memory through continuous reads.

Generated by OpenCVE AI on August 13, 2026 at 09:34 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Apply a Linux kernel update that includes the mmiotrace pipe_close fix, which wires mmio_close to the tracer’s .pipe_close callback.
  • If an update is not immediately possible, disable the mmiotrace tracer or switch to a different tracer in the /sys/kernel/tracing/tracer interface to prevent the resource leak.
  • Avoid repeatedly reading /sys/kernel/tracing/trace_pipe without consuming all data; ensure the pipe is fully read or closed promptly to trigger automatic cleanup.

Generated by OpenCVE AI on August 13, 2026 at 09:34 UTC.

Tracking

Sign in to view the affected projects.

Advisories
Source ID Title
Debian DLA Debian DLA DLA-4745-1 linux-6.12 security update
History

Wed, 19 Aug 2026 16:45:00 +0000


Thu, 13 Aug 2026 08:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Wed, 12 Aug 2026 00:15:00 +0000

Type Values Removed Values Added
Weaknesses CWE-763
References
Metrics threat_severity

None

cvssV3_1

{'score': 4.4, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:H/UI:N/S:U/C:N/I:N/A:H'}

threat_severity

Moderate


Mon, 10 Aug 2026 15:00:00 +0000

Type Values Removed Values Added
Weaknesses CWE-772

Mon, 10 Aug 2026 12:30:00 +0000

Type Values Removed Values Added
Description In the Linux kernel, the following vulnerability has been resolved: tracing: Fix resource leak on mmiotrace trace_pipe close The mmiotrace tracer was added May 12th 2008. At that time, resources created in pipe_open() could not be freed because there was not pipe_close function pointer of the tracer. The pipe_close function pointer was added in December 7th, 2009, but the mmiotrace tracer was not updated. mmio_pipe_open() allocates a header_iter and takes a pci_dev reference when trace_pipe is opened. mmio_close() frees them, but it was only wired to the tracer's .close callback. tracing_release_pipe() invokes .pipe_close, not .close, when the trace_pipe file is released. As a result, closing trace_pipe with the mmiotrace tracer active leaked the header_iter allocation and left a stale pci_dev reference. Set .pipe_close to mmio_close, matching how function_graph wires both callbacks to the same handler. Note, if the trace_pipe is read to completion, it will clean up the resources, but if one were to run: # head -n 1 /sys/kernel/tracing/trace_pipe VERSION 20070824 Over and over again, it would trigger a massive leak.
Title tracing: Fix resource leak on mmiotrace trace_pipe close
First Time appeared Linux
Linux linux Kernel
CPEs cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*
Vendors & Products Linux
Linux linux Kernel
References

Subscriptions

Linux Linux Kernel
cve-icon MITRE

Status: PUBLISHED

Assigner: Linux

Published:

Updated: 2026-08-19T16:30:39.826Z

Reserved: 2026-07-30T09:28:09.372Z

Link: CVE-2026-68175

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-08-10T13:20:04.343

Modified: 2026-08-19T17:20:33.950

Link: CVE-2026-68175

cve-icon Redhat

Severity : Moderate

Publid Date: 2026-08-10T11:59:45Z

Links: CVE-2026-68175 - Bugzilla

cve-icon OpenCVE Enrichment

Updated: 2026-08-13T09:45:03Z

Weaknesses
  • CWE-763

    Release of Invalid Pointer or Reference