{"id":"CVE-2026-68175","aliases":["CVE-2026-68175"],"related":[],"kind":"vulnerability","state":"published","title":"tracing: Fix resource leak on mmiotrace trace_pipe close","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix resource leak on mmiotrace trace_pipe close\n\nThe mmiotrace tracer was added May 12th 2008. At that time, resources\ncreated in pipe_open() could not be freed because there was not\npipe_close function pointer of the tracer. The pipe_close function pointer\nwas added in December 7th, 2009, but the mmiotrace tracer was not updated.\n\nmmio_pipe_open() allocates a header_iter and takes a pci_dev reference\nwhen trace_pipe is opened. mmio_close() frees them, but it was only\nwired to the tracer's .close callback.\n\ntracing_release_pipe() invokes .pipe_close, not .close, when the\ntrace_pipe file is released. As a result, closing trace_pipe with the\nmmiotrace tracer active leaked the header_iter allocation and left a\nstale pci_dev reference.\n\nSet .pipe_close to mmio_close, matching how function_graph wires both\ncallbacks to the same handler.\n\nNote, if the trace_pipe is read to completion, it will clean up the\nresources, but if one were to run:\n\n  # head -n 1 /sys/kernel/tracing/trace_pipe\n VERSION 20070824\n\nOver and over again, it would trigger a massive leak.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix resource leak on mmiotrace trace_pipe close\n\nThe mmiotrace tracer was added May 12th 2008. At that time, resources\ncreated in pipe_open() could not be freed because there was not\npipe_close function pointer of the tracer. The pipe_close function pointer\nwas added in December 7th, 2009, but the mmiotrace tracer was not updated.\n\nmmio_pipe_open() allocates a header_iter and takes a pci_dev reference\nwhen trace_pipe is opened. mmio_close() frees them, but it was only\nwired to the tracer's .close callback.\n\ntracing_release_pipe() invokes .pipe_close, not .close, when the\ntrace_pipe file is released. As a result, closing trace_pipe with the\nmmiotrace tracer active leaked the header_iter allocation and left a\nstale pci_dev reference.\n\nSet .pipe_close to mmio_close, matching how function_graph wires both\ncallbacks to the same handler.\n\nNote, if the trace_pipe is read to completion, it will clean up the\nresources, but if one were to run:\n\n  # head -n 1 /sys/kernel/tracing/trace_pipe\n VERSION 20070824\n\nOver and over again, it would trigger a massive leak.","source":"cvelist"}],"published":"2026-08-10T11:59:45.965Z","modified":"2026-11-30T16:13:21.673Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"7871128ea41217fa6a58bbbcb44cb0d2e9e60966","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"1d0b59e2b203c02149d8f63607329debe36b3ec5","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"581ac13e12e77d6c64f8719083bdf95209308919","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"f9e6dfe341fb31c95b9655eb6b1db8b3ae090817","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"594e1cf3f736779a535873fd5988162d827bfe4f","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"cf5a82bef623b969a609f2b7e392d06dbae34aa6","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"cb459fec4f7b13caf646101ff076e94ef38434d8","status":"affected"},{"type":"git","introduced":"c521efd1700a8c0f7ce26f011f5eaecca17fabfa","fixed":"c1d87e724ae55e781b7cc7ccafb34d9e668582b2","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"2.6.33","status":"affected"},{"type":"semver","introduced":"0","fixed":"2.6.33","status":"unaffected"},{"type":"semver","introduced":"5.10.265","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.216","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.183","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.148","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.101","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.42","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.1.6","lastAffected":"7.1.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.2","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/7871128ea41217fa6a58bbbcb44cb0d2e9e60966","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/1d0b59e2b203c02149d8f63607329debe36b3ec5","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/581ac13e12e77d6c64f8719083bdf95209308919","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f9e6dfe341fb31c95b9655eb6b1db8b3ae090817","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/594e1cf3f736779a535873fd5988162d827bfe4f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cf5a82bef623b969a609f2b7e392d06dbae34aa6","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/cb459fec4f7b13caf646101ff076e94ef38434d8","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c1d87e724ae55e781b7cc7ccafb34d9e668582b2","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-68175","url":"https://www.cve.org/CVERecord?id=CVE-2026-68175","licence":"CVE Terms of Use","modified":"2026-08-19T16:30:39.826Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-68175","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-68175","licence":"Public domain","modified":"2026-11-30T16:13:21.673Z"}],"updatedAt":"2026-11-30T16:17:42.474Z","epss":{"score":0.0022,"percentile":0.0737,"date":"2026-11-30T12:00:22.000Z"}}