{
  "schema_version": "1.6.1",
  "id": "RPI-CVE-2023-53375",
  "modified": "2026-10-07T17:22:01Z",
  "upstream": [
    "CVE-2023-53375"
  ],
  "published": "2025-09-18T13:36:23Z",
  "summary": "tracing: Free error logs of tracing instances",
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ntracing: Free error logs of tracing instances\n\nWhen a tracing instance is removed, the error messages that hold errors\nthat occurred in the instance needs to be freed. The following reports a\nmemory leak:\n\n # cd /sys/kernel/tracing\n # mkdir instances/foo\n # echo 'hist:keys=x' > instances/foo/events/sched/sched_switch/trigger\n # cat instances/foo/error_log\n [  117.404795] hist:sched:sched_switch: error: Couldn't find field\n   Command: hist:keys=x\n                      ^\n # rmdir instances/foo\n\nThen check for memory leaks:\n\n # echo scan > /sys/kernel/debug/kmemleak\n # cat /sys/kernel/debug/kmemleak\nunreferenced object 0xffff88810d8ec700 (size 192):\n  comm \"bash\", pid 869, jiffies 4294950577 (age 215.752s)\n  hex dump (first 32 bytes):\n    60 dd 68 61 81 88 ff ff 60 dd 68 61 81 88 ff ff  `.ha....`.ha....\n    a0 30 8c 83 ff ff ff ff 26 00 0a 00 00 00 00 00  .0......&.......\n  backtrace:\n    [<00000000dae26536>] kmalloc_trace+0x2a/0xa0\n    [<00000000b2938940>] tracing_log_err+0x277/0x2e0\n    [<000000004a0e1b07>] parse_atom+0x966/0xb40\n    [<0000000023b24337>] parse_expr+0x5f3/0xdb0\n    [<00000000594ad074>] event_hist_trigger_parse+0x27f8/0x3560\n    [<00000000293a9645>] trigger_process_regex+0x135/0x1a0\n    [<000000005c22b4f2>] event_trigger_write+0x87/0xf0\n    [<000000002cadc509>] vfs_write+0x162/0x670\n    [<0000000059c3b9be>] ksys_write+0xca/0x170\n    [<00000000f1cddc00>] do_syscall_64+0x3e/0xc0\n    [<00000000868ac68c>] entry_SYSCALL_64_after_hwframe+0x72/0xdc\nunreferenced object 0xffff888170c35a00 (size 32):\n  comm \"bash\", pid 869, jiffies 4294950577 (age 215.752s)\n  hex dump (first 32 bytes):\n    0a 20 20 43 6f 6d 6d 61 6e 64 3a 20 68 69 73 74  .  Command: hist\n    3a 6b 65 79 73 3d 78 0a 00 00 00 00 00 00 00 00  :keys=x.........\n  backtrace:\n    [<000000006a747de5>] __kmalloc+0x4d/0x160\n    [<000000000039df5f>] tracing_log_err+0x29b/0x2e0\n    [<000000004a0e1b07>] parse_atom+0x966/0xb40\n    [<0000000023b24337>] parse_expr+0x5f3/0xdb0\n    [<00000000594ad074>] event_hist_trigger_parse+0x27f8/0x3560\n    [<00000000293a9645>] trigger_process_regex+0x135/0x1a0\n    [<000000005c22b4f2>] event_trigger_write+0x87/0xf0\n    [<000000002cadc509>] vfs_write+0x162/0x670\n    [<0000000059c3b9be>] ksys_write+0xca/0x170\n    [<00000000f1cddc00>] do_syscall_64+0x3e/0xc0\n    [<00000000868ac68c>] entry_SYSCALL_64_after_hwframe+0x72/0xdc\n\nThe problem is that the error log needs to be freed when the instance is\nremoved.",
  "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.24"
          }
        }
      }
    }
  ],
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://www.cve.org/CVERecord?id=CVE-2023-53375"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/987f599fc556a4e64c405d8dde32c70311e8c278"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/6e36373aa5ffa8e00fe7c71b3209f6f17081e552"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/33d5d4e67a0e13c3ca6257fa67bf6503bc000878"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/c0cf0f55be043ef67c38f492aa37ed1986d2f6b6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/46771c34d6721abfd9e7903eaed2201051eebec6"
    },
    {
      "type": "FIX",
      "url": "https://git.kernel.org/stable/c/3357c6e429643231e60447b52ffbb7ac895aca22"
    }
  ],
  "database_specific": {
    "source": "https://git.kernel.org/pub/scm/linux/security/vulns.git",
    "upstream_modified": "2026-05-12T04:54:46Z"
  }
}
