{"id":"CVE-2025-39689","aliases":["CVE-2025-39689"],"related":[],"kind":"vulnerability","state":"published","title":"ftrace: Also allocate and copy hash for reading of filter files","summary":"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.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"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.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\nftrace: También asignar y copiar hash para la lectura de archivos de filtro\n\nActualmente, el lector de set_ftrace_filter y set_ftrace_notrace simplemente añade el puntero al hash global del trazador a su iterador. A diferencia del escritor que asigna una copia del hash, el lector mantiene el puntero a los hashes de filtro. Esto es problemático porque este puntero es estático a través de las llamadas a funciones que liberan los bloqueos que pueden actualizar los hashes globales del trazador. Esto puede causar UAF y errores similares.\n\nAsignar y copiar el hash para leer los archivos de filtro como se hace para los escritores. Esto no solo corrige errores de UAF, sino que también simplifica un poco el código, ya que no tiene que diferenciar cuándo liberar el hash del iterador entre escritores y lectores.","source":"nvd"}],"published":"2025-09-05T17:20:55.270Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":["CWE-416"],"affected":[{"ranges":[{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"12064e1880fc9202be75ff668205b1703d92f74f","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"c4cd93811e038d19f961985735ef7bb128078dfb","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"e0b6b223167e1edde5c82edf38e393c06eda1f13","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"3b114a3282ab1a12cb4618a8f45db5d7185e784a","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"c591ba1acd081d4980713e47869dd1cc3d963d19","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"64db338140d2bad99a0a8c6a118dd60b3e1fb8cb","status":"affected"},{"type":"git","introduced":"c20489dad156dd9919ebd854bbace46dbd2576a3","fixed":"bfb336cf97df7b37b2b2edec0f69773e06d11955","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.4.297","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.241","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.190","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.149","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.103","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.44","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.16.4","lastAffected":"6.16.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.17","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.12","fixed":"5.4.297"},{"status":"affected","introduced":"5.5","fixed":"5.10.241"},{"status":"affected","introduced":"5.11","fixed":"5.15.190"},{"status":"affected","introduced":"5.16","fixed":"6.1.149"},{"status":"affected","introduced":"6.2","fixed":"6.6.103"},{"status":"affected","introduced":"6.7","fixed":"6.12.44"},{"status":"affected","introduced":"6.13","fixed":"6.16.4"},{"status":"affected","version":"6.17"},{"status":"affected","version":"6.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"status":"affected","version":"11.0"}],"vendor":"debian","product":"debian_linux","cpe":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/12064e1880fc9202be75ff668205b1703d92f74f","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c4cd93811e038d19f961985735ef7bb128078dfb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e0b6b223167e1edde5c82edf38e393c06eda1f13","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a40c69f4f1ed96acbcd62e9b5ff3a596f0a91309","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/3b114a3282ab1a12cb4618a8f45db5d7185e784a","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c591ba1acd081d4980713e47869dd1cc3d963d19","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/64db338140d2bad99a0a8c6a118dd60b3e1fb8cb","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/bfb336cf97df7b37b2b2edec0f69773e06d11955","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-082556.html","tags":[],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"total","date":"2026-10-15T21:53:25.266Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39689","url":"https://www.cve.org/CVERecord?id=CVE-2025-39689","licence":"CVE Terms of Use","modified":"2026-10-15T22:02:30.348Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39689","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39689","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"}],"updatedAt":"2026-11-25T22:59:04.263Z","epss":{"score":0.00204,"percentile":0.10917,"date":"2026-12-01T12:00:22.000Z"}}