{"id":"CVE-2025-39682","aliases":["CVE-2025-39682"],"related":[],"kind":"vulnerability","state":"published","title":"tls: fix handling of zero-length records on the rx_list","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: fix handling of zero-length records on the rx_list\n\nEach recvmsg() call must process either\n - only contiguous DATA records (any number of them)\n - one non-DATA record\n\nIf the next record has different type than what has already been\nprocessed we break out of the main processing loop. If the record\nhas already been decrypted (which may be the case for TLS 1.3 where\nwe don't know type until decryption) we queue the pending record\nto the rx_list. Next recvmsg() will pick it up from there.\n\nQueuing the skb to rx_list after zero-copy decrypt is not possible,\nsince in that case we decrypted directly to the user space buffer,\nand we don't have an skb to queue (darg.skb points to the ciphertext\nskb for access to metadata like length).\n\nOnly data records are allowed zero-copy, and we break the processing\nloop after each non-data record. So we should never zero-copy and\nthen find out that the record type has changed. The corner case\nwe missed is when the initial record comes from rx_list, and it's\nzero length.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntls: fix handling of zero-length records on the rx_list\n\nEach recvmsg() call must process either\n - only contiguous DATA records (any number of them)\n - one non-DATA record\n\nIf the next record has different type than what has already been\nprocessed we break out of the main processing loop. If the record\nhas already been decrypted (which may be the case for TLS 1.3 where\nwe don't know type until decryption) we queue the pending record\nto the rx_list. Next recvmsg() will pick it up from there.\n\nQueuing the skb to rx_list after zero-copy decrypt is not possible,\nsince in that case we decrypted directly to the user space buffer,\nand we don't have an skb to queue (darg.skb points to the ciphertext\nskb for access to metadata like length).\n\nOnly data records are allowed zero-copy, and we break the processing\nloop after each non-data record. So we should never zero-copy and\nthen find out that the record type has changed. The corner case\nwe missed is when the initial record comes from rx_list, and it's\nzero length.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\ntls: soluciona el manejo de registros de longitud cero en la rx_list\n\nCada llamada a recvmsg() debe procesar o bien\n- solo registros DATA contiguos (cualquier número de ellos)\n- un registro que no sea DATA\n\nSi el siguiente registro tiene un tipo diferente al que ya ha sido procesado, salimos del bucle de procesamiento principal. Si el registro ya ha sido descifrado (lo cual puede ocurrir con TLS 1.3 donde no conocemos el tipo hasta el descifrado), ponemos en cola el registro pendiente en la rx_list. La siguiente recvmsg() lo recogerá de ahí.\n\nPoner en cola el skb en la rx_list después del descifrado de copia cero no es posible, ya que en ese caso desciframos directamente al búfer del espacio de usuario, y no tenemos un skb para poner en cola (darg.skb apunta al skb del texto cifrado para acceder a metadatos como la longitud).\n\nSolo a los registros de datos se les permite la copia cero, y rompemos el bucle de procesamiento después de cada registro que no sea de datos. Así que nunca deberíamos hacer copia cero y luego descubrir que el tipo de registro ha cambiado. El caso excepcional que pasamos por alto es cuando el registro inicial proviene de la rx_list, y es de longitud cero.","source":"nvd"},{"lang":"en","text":"Linux Kernel contains an improper check for unusual or exceptional conditions vulnerability in the TLS receive path which allows a zero-length record retrieved from the rx_list to bypass the intended recvmsg() record-type handling, potentially causing subsequent TLS records to be processed using incorrect zero-copy and queuing assumptions. The impacted product(s) could be end-of-life (EoL) and/or end-of-service (EoS). Users are advised to discontinue use and/or transition to a supported version.","source":"kev"}],"published":"2025-09-05T17:20:48.657Z","modified":"2026-10-19T21:10:00.160Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8,"rating":"CRITICAL"}],"cwes":["CWE-754"],"affected":[{"ranges":[{"type":"git","introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417","fixed":"2902c3ebcca52ca845c03182000e8d71d3a5196f","status":"affected"},{"type":"git","introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417","fixed":"c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677","status":"affected"},{"type":"git","introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417","fixed":"3439c15ae91a517cf3c650ea15a8987699416ad9","status":"affected"},{"type":"git","introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417","fixed":"29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e","status":"affected"},{"type":"git","introduced":"84c61fe1a75b4255df1e1e7c054c9e6d048da417","fixed":"62708b9452f8eb77513115b17c4f8d1a22ebf843","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","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":"6.0","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"},{"ranges":[{"status":"affected","fixed":"5.0"}],"vendor":"siemens","product":"simatic_cn_4100_firmware","cpe":"cpe:2.3:o:siemens:simatic_cn_4100_firmware:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[],"vendor":"Linux","product":"Kernel","source":"kev"}],"references":[{"url":"https://git.kernel.org/stable/c/2902c3ebcca52ca845c03182000e8d71d3a5196f","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://git.kernel.org/stable/c/c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://git.kernel.org/stable/c/3439c15ae91a517cf3c650ea15a8987699416ad9","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://git.kernel.org/stable/c/29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://git.kernel.org/stable/c/62708b9452f8eb77513115b17c4f8d1a22ebf843","tags":["kev","patch"],"sources":["cvelist","nvd","kev"]},{"url":"https://lists.debian.org/debian-lts-announce/2025/10/msg00008.html","tags":["mailing-list","third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://cert-portal.siemens.com/productcert/html/ssa-032379.html","tags":["third-party-advisory"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?field_cve=CVE-2025-39682","tags":["government-resource","us-government-resource"],"sources":["cvelist","nvd"]},{"url":"https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk","tags":["kev"],"sources":["kev"]},{"url":"https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk","tags":["kev"],"sources":["kev"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39682","tags":["kev"],"sources":["kev"]}],"credits":[],"assigner":"Linux","kev":{"dateAdded":"2026-09-18","dueDate":"2026-09-21","name":"Linux Kernel Improper Check for Unusual or Exceptional Conditions Vulnerability","requiredAction":"Apply mitigations in accordance with vendor instructions, ensuring compliance with CISA’s BOD 26-04 Prioritizing Security Updates Based on Risk (see URL in Notes) guidance and CISA’s “Forensics Triage Requirements” (see URL in Notes). Follow applicable BOD 26-04 guidance for cloud services or discontinue use of the product if mitigations are unavailable. Stakeholders are responsible for evaluating each asset's internet exposure and ensuring adherence to BOD 26-04 patching guidelines.","ransomware":false,"notes":"This vulnerability affects an open-source component, third-party library, protocol, or proprietary implementation that could be used by different products. For more information, please see: ; https://git.kernel.org/stable/c/2902c3ebcca52ca845c03182000e8d71d3a5196f; https://git.kernel.org/stable/c/c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677; https://git.kernel.org/stable/c/3439c15ae91a517cf3c650ea15a8987699416ad9; https://git.kernel.org/stable/c/29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e; https://git.kernel.org/stable/c/62708b9452f8eb77513115b17c4f8d1a22ebf843 ; BOD 26-04: https://www.cisa.gov/news-events/directives/bod-26-04-prioritizing-security-updates-based-risk ; Forensics Triage Requirements: https://www.cisa.gov/news-events/directives/bod-26-04-implementation-guidance-prioritizing-security-updates-based-risk ; https://nvd.nist.gov/vuln/detail/CVE-2025-39682"},"ssvc":{"scorer":"CISA-ADP","exploitation":"active","automatable":"yes","technicalImpact":"total","date":"2026-09-19T03:56:25.358Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2025-39682","url":"https://www.cve.org/CVERecord?id=CVE-2025-39682","licence":"CVE Terms of Use","modified":"2026-10-07T17:56:14.826Z"},{"source":"nvd","name":"NVD","id":"CVE-2025-39682","url":"https://nvd.nist.gov/vuln/detail/CVE-2025-39682","licence":"Public domain","modified":"2026-10-19T21:10:00.160Z"},{"source":"kev","name":"CISA KEV","id":"CVE-2025-39682","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog?search_api_fulltext=CVE-2025-39682","licence":"CC0-1.0","modified":"2026-09-18T00:00:00.000Z"}],"updatedAt":"2026-11-25T22:59:04.260Z","epss":{"score":0.03011,"percentile":0.87771,"date":"2026-12-01T12:00:22.000Z"}}