{"id":"CVE-2023-54171","aliases":["CVE-2023-54171"],"related":[],"kind":"vulnerability","state":"published","title":"tracing: Fix memory leak of iter->temp when reading trace_pipe","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix memory leak of iter->temp when reading trace_pipe\n\nkmemleak reports:\n  unreferenced object 0xffff88814d14e200 (size 256):\n    comm \"cat\", pid 336, jiffies 4294871818 (age 779.490s)\n    hex dump (first 32 bytes):\n      04 00 01 03 00 00 00 00 08 00 00 00 00 00 00 00  ................\n      0c d8 c8 9b ff ff ff ff 04 5a ca 9b ff ff ff ff  .........Z......\n    backtrace:\n      [<ffffffff9bdff18f>] __kmalloc+0x4f/0x140\n      [<ffffffff9bc9238b>] trace_find_next_entry+0xbb/0x1d0\n      [<ffffffff9bc9caef>] trace_print_lat_context+0xaf/0x4e0\n      [<ffffffff9bc94490>] print_trace_line+0x3e0/0x950\n      [<ffffffff9bc95499>] tracing_read_pipe+0x2d9/0x5a0\n      [<ffffffff9bf03a43>] vfs_read+0x143/0x520\n      [<ffffffff9bf04c2d>] ksys_read+0xbd/0x160\n      [<ffffffff9d0f0edf>] do_syscall_64+0x3f/0x90\n      [<ffffffff9d2000aa>] entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nwhen reading file 'trace_pipe', 'iter->temp' is allocated or relocated\nin trace_find_next_entry() but not freed before 'trace_pipe' is closed.\n\nTo fix it, free 'iter->temp' in tracing_release_pipe().","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Fix memory leak of iter->temp when reading trace_pipe\n\nkmemleak reports:\n  unreferenced object 0xffff88814d14e200 (size 256):\n    comm \"cat\", pid 336, jiffies 4294871818 (age 779.490s)\n    hex dump (first 32 bytes):\n      04 00 01 03 00 00 00 00 08 00 00 00 00 00 00 00  ................\n      0c d8 c8 9b ff ff ff ff 04 5a ca 9b ff ff ff ff  .........Z......\n    backtrace:\n      [<ffffffff9bdff18f>] __kmalloc+0x4f/0x140\n      [<ffffffff9bc9238b>] trace_find_next_entry+0xbb/0x1d0\n      [<ffffffff9bc9caef>] trace_print_lat_context+0xaf/0x4e0\n      [<ffffffff9bc94490>] print_trace_line+0x3e0/0x950\n      [<ffffffff9bc95499>] tracing_read_pipe+0x2d9/0x5a0\n      [<ffffffff9bf03a43>] vfs_read+0x143/0x520\n      [<ffffffff9bf04c2d>] ksys_read+0xbd/0x160\n      [<ffffffff9d0f0edf>] do_syscall_64+0x3f/0x90\n      [<ffffffff9d2000aa>] entry_SYSCALL_64_after_hwframe+0x6e/0xd8\n\nwhen reading file 'trace_pipe', 'iter->temp' is allocated or relocated\nin trace_find_next_entry() but not freed before 'trace_pipe' is closed.\n\nTo fix it, free 'iter->temp' in tracing_release_pipe().","source":"cvelist"}],"published":"2025-12-30T12:08:45.441Z","modified":"2026-06-17T06:46:56.093Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"ff895103a84abc85a5f43ecabc7f67cf36e1348f","fixed":"1a1e793e021d75cd0accd8f329ec9456e5cd105e","status":"affected"},{"type":"git","introduced":"ff895103a84abc85a5f43ecabc7f67cf36e1348f","fixed":"954792db9f61b6c0b8a94b8831fed5f146014029","status":"affected"},{"type":"git","introduced":"ff895103a84abc85a5f43ecabc7f67cf36e1348f","fixed":"be970e22c53d5572b2795b79da9716ada937023b","status":"affected"},{"type":"git","introduced":"ff895103a84abc85a5f43ecabc7f67cf36e1348f","fixed":"3f42d57a76e7e96585f08855554e002218cbca0c","status":"affected"},{"type":"git","introduced":"ff895103a84abc85a5f43ecabc7f67cf36e1348f","fixed":"d5a821896360cc8b93a15bd888fabc858c038dc0","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.7","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.7","status":"unaffected"},{"type":"semver","introduced":"5.10.188","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.121","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.40","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.5","lastAffected":"6.4.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.5","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/1a1e793e021d75cd0accd8f329ec9456e5cd105e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/954792db9f61b6c0b8a94b8831fed5f146014029","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/be970e22c53d5572b2795b79da9716ada937023b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3f42d57a76e7e96585f08855554e002218cbca0c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d5a821896360cc8b93a15bd888fabc858c038dc0","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-54171","url":"https://www.cve.org/CVERecord?id=CVE-2023-54171","licence":"CVE Terms of Use","modified":"2026-05-11T19:56:49.388Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-54171","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-54171","licence":"Public domain","modified":"2026-06-17T06:46:56.093Z"}],"updatedAt":"2026-11-25T22:58:35.205Z","epss":{"score":0.00214,"percentile":0.12453,"date":"2026-12-01T12:00:22.000Z"}}