{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-54171",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2023-54171"
  ],
  "published": "2025-12-30T12:09:43Z",
  "summary": "tracing: Fix memory leak of iter->temp when reading trace_pipe",
  "details": "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().",
  "affected": [
    {
      "package": {
        "ecosystem": "Raspberry Pi OS:12",
        "name": "linux"
      },
      "versions": [
        "1:6.1.21-1+rpt1"
      ],
      "ecosystem_specific": {
        "binaries": [
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v6",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v7l",
            "binary_version": "1:6.1.21-1+rpt1"
          },
          {
            "binary_name": "linux-image-6.1.0-rpi1-rpi-v8",
            "binary_version": "1:6.1.21-1+rpt1"
          }
        ]
      },
      "database_specific": {
        "per_version": {
          "1:6.1.21-1+rpt1": {
            "linux_commit": "0afb5e98488aed7017b9bf321b575d0177feb7ed",
            "upstream_version": "6.1.21",
            "assessment": "commit ancestry (strak rule)",
            "upstream_fixed": "6.1.40"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-54171"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/1a1e793e021d75cd0accd8f329ec9456e5cd105e"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/954792db9f61b6c0b8a94b8831fed5f146014029"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/be970e22c53d5572b2795b79da9716ada937023b"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3f42d57a76e7e96585f08855554e002218cbca0c"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/d5a821896360cc8b93a15bd888fabc858c038dc0"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-05-12T04:54:46Z"
  }
}
