{
  "id": "CVE-2025-39689",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39689",
  "published_at": "2025-09-05T17:20:55.27Z",
  "title": "ftrace: Also allocate and copy hash for reading of filter files",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Also allocate and copy hash for reading of filter files\n\nCurrently the reader of set_ftrace_filter and set_ftrace_notrace just adds\nthe pointer to the global tracer hash to its iterator. Unlike the writer\nthat allocates a copy of the hash, the reader keeps the pointer to the\nfilter hashes. This is problematic because this pointer is static across\nfunction calls that release the locks that can update the global tracer\nhashes. This can cause UAF and similar bugs.\n\nAllocate and copy the hash for reading the filter files like it is done\nfor the writers. This not only fixes UAF bugs, but also makes the code a\nbit simpler as it doesn't have to differentiate when to free the\niterator's hash between writers and readers.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 7.8,
    "nvd": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c 12064e1880fc9202be75ff668205b1703d92f74f",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c c4cd93811e038d19f961985735ef7bb128078dfb",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c e0b6b223167e1edde5c82edf38e393c06eda1f13",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c 3b114a3282ab1a12cb4618a8f45db5d7185e784a",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c c591ba1acd081d4980713e47869dd1cc3d963d19",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c 64db338140d2bad99a0a8c6a118dd60b3e1fb8cb",
          "\u003e= c20489dad156dd9919ebd854bbace46dbd2576a3, \u003c bfb336cf97df7b37b2b2edec0f69773e06d11955"
        ],
        "fixed_in": [
          "12064e1880fc9202be75ff668205b1703d92f74f",
          "c4cd93811e038d19f961985735ef7bb128078dfb",
          "e0b6b223167e1edde5c82edf38e393c06eda1f13",
          "a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309",
          "3b114a3282ab1a12cb4618a8f45db5d7185e784a",
          "c591ba1acd081d4980713e47869dd1cc3d963d19",
          "64db338140d2bad99a0a8c6a118dd60b3e1fb8cb",
          "bfb336cf97df7b37b2b2edec0f69773e06d11955"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "4.12"
        ],
        "fixed_in": [
          "0",
          "5.4.297",
          "5.10.241",
          "5.15.190",
          "6.1.149",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 12064e1880fc9202be75ff668205b1703d92f74f or c4cd93811e038d19f961985735ef7bb128078dfb or e0b6b223167e1edde5c82edf38e393c06eda1f13 or a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309 or 3b114a3282ab1a12cb4618a8f45db5d7185e784a or c591ba1acd081d4980713e47869dd1cc3d963d19 or 64db338140d2bad99a0a8c6a118dd60b3e1fb8cb or bfb336cf97df7b37b2b2edec0f69773e06d11955 or later.",
      "Upgrade Linux to 0 or 5.4.297 or 5.10.241 or 5.15.190 or 6.1.149 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
