{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2025-39686","published":"2025-09-05T18:15:45.297000Z","last_modified":"2026-10-19T21:10:00.160000Z","status":"Modified","cvss":{"version":"3.1","score":7.8,"severity":"HIGH","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"nvd@nist.gov","primary":true},"auth":true,"cwes":[],"cpes":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","part":"o","vendor":"linux","product":"linux_kernel","version_start_including":"2.6.29","version_end_excluding":"5.15.190"},{"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.149"},{"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.103"},{"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.44"},{"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.4"},{"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"],"cat":"os","platform":"linux","eol":false,"packages":[],"severity":"high","priority_score":47,"links":{"html_es":"/es/cve/CVE-2025-39686/","html_en":"/en/cve/CVE-2025-39686/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2025-39686","cve_org":"https://www.cve.org/CVERecord?id=CVE-2025-39686"},"untrusted":{"vendor_name":"Linux","product_name":"Linux Kernel","desc_en":"In the Linux kernel, the following vulnerability has been resolved:\n\ncomedi: Make insn_rw_emulate_bits() do insn->n samples\n\nThe `insn_rw_emulate_bits()` function is used as a default handler for\n`INSN_READ` instructions for subdevices that have a handler for\n`INSN_BITS` but not for `INSN_READ`.  Similarly, it is used as a default\nhandler for `INSN_WRITE` instructions for subdevices that have a handler\nfor `INSN_BITS` but not for `INSN_WRITE`. It works by emulating the\n`INSN_READ` or `INSN_WRITE` instruction handling with a constructed\n`INSN_BITS` instruction.  However, `INSN_READ` and `INSN_WRITE`\ninstructions are supposed to be able read or write multiple samples,\nindicated by the `insn->n` value, but `insn_rw_emulate_bits()` currently\nonly handles a single sample.  For `INSN_READ`, the comedi core will\ncopy `insn->n` samples back to user-space.  (That triggered KASAN\nkernel-infoleak errors when `insn->n` was greater than 1, but that is\nbeing fixed more generally elsewhere in the comedi core.)\n\nMake `insn_rw_emulate_bits()` either handle `insn->n` samples, or return\nan error, to conform to the general expectation for `INSN_READ` and\n`INSN_WRITE` handlers.","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/7afba9221f70d4cbce0f417c558879cba0eb5e66","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/842f307a1d115b24f2bcb2415c4e344f11f55930","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/92352ed2f9ac422181e381c2430c2d0dfb46faa0","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ab77e85bd3bc006ef40738f26f446a660813da44","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/ae8bc1f07bcb31b8636420e03d1f9c3df6219a2b","tags":["Patch"]},{"url":"https://git.kernel.org/stable/c/dc0a2f142d655700db43de90cb6abf141b73d908","tags":["Patch"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["Mailing List","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"}}]}