{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-39813","published":"2025-09-16T13:15:55.150000Z","last_modified":"2026-11-05T22:17:32.590000Z","status":"Modified","cvss":{"version":"3.1","score":4.7,"severity":"MEDIUM","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":["CWE-362"],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"2.6.28","version_end_excluding":"5.4.298"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.5","version_end_excluding":"5.10.242"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.11","version_end_excluding":"5.15.191"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"5.16","version_end_excluding":"6.1.150"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.2","version_end_excluding":"6.6.104"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.7","version_end_excluding":"6.12.45"},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"6.13","version_end_excluding":"6.16.5"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"},{"criteria":"cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version":"6.17"},{"criteria":"cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*","part":"o","vendor":"debian","product":"debian_linux","version":"11.0"}],"cpes_truncated":false,"vendors":["linux","debian"],"products":["linux/linux_kernel","debian/debian_linux"],"ssvc":{"exploitation":"none","automatable":"no","technical_impact":"partial"},"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"medium","priority_score":28,"links":{"html_es":"/es/cve/CVE-2025-39813/","html_en":"/en/cve/CVE-2025-39813/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-39813","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-39813"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\nftrace: Fix potential warning in trace_printk_seq during ftrace_dump\n\nWhen calling ftrace_dump_one() concurrently with reading trace_pipe,\na WARN_ON_ONCE() in trace_printk_seq() can be triggered due to a race\ncondition.\n\nThe issue occurs because:\n\nCPU0 (ftrace_dump)                              CPU1 (reader)\necho z > /proc/sysrq-trigger\n\n!trace_empty(&iter)\ntrace_iterator_reset(&iter) <- len = size = 0\n                                                cat /sys/kernel/tracing/trace_pipe\ntrace_find_next_entry_inc(&iter)\n  __find_next_entry\n    ring_buffer_empty_cpu <- all empty\n  return NULL\n\ntrace_printk_seq(&iter.seq)\n  WARN_ON_ONCE(s->seq.len >= s->seq.size)\n\nIn the context between trace_empty() and trace_find_next_entry_inc()\nduring ftrace_dump, the ring buffer data was consumed by other readers.\nThis caused trace_find_next_entry_inc to return NULL, failing to populate\n`iter.seq`. At this point, due to the prior trace_iterator_reset, both\n`iter.seq.len` and `iter.seq.size` were set to 0. Since they are equal,\nthe WARN_ON_ONCE condition is triggered.\n\nMove the trace_printk_seq() into the if block that checks to make sure the\nreturn value of trace_find_next_entry_inc() is non-NULL in\nftrace_dump_one(), ensuring the 'iter.seq' is properly populated before\nsubsequent operations.","affected":[{"untrusted_vendor":"Linux","untrusted_product":"Linux","versions":[]},{"untrusted_vendor":"Siemens","untrusted_product":"SIMATIC CN 4100","versions":[]}],"references":[{"url":"https://git.kernel.org/stable/c/28c8fb7ae2ad27d81c8de3c4fe608c509f6a18aa","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/4013aef2ced9b756a410f50d12df9ebe6a883e4a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/5ab0ec206deb99eb3baf8f1d7602aeaa91dbcc85","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/a6f0f8873cc30fd4543b09adf03f7f51d293f0e6","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ced94e137e6cd5e79c65564841d3b7695d0f5fa3","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/e80ff23ba8bdb0f41a1afe2657078e4097d13a9a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/f299353e7ccbcc5c2ed8993c48fbe7609cbe729a","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/fbd4cf7ee4db65ef36796769fe978e9eba6f0de4","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00007.html","tags":["Third Party Advisory"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Third Party Advisory"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":[]}]},"bulletins":[{"source":"siemens","id":"SSA-032379","url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","published":"2026-05-12T00:00:00+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Multiple Vulnerabilities in SIMATIC CN 4100 Before V5.0"}},{"source":"suse","id":"SUSE-SU-2026:20845-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202620845-1/","published":"2026-03-24T16:48:38+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}},{"source":"suse","id":"SUSE-SU-2026:20876-1","url":"https://www.suse.com/support/update/announcement/2026/suse-su-202620876-1/","published":"2026-03-24T16:48:29+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}},{"source":"suse","id":"openSUSE-SU-2026:20287-1","url":"https://www.suse.com/support/update/","published":"2026-02-27T13:03:55+00:00","severity":"critical","exploited":false,"untrusted":{"title":"Security update for the Linux Kernel"}}]}