{"id":"CVE-2026-43254","aliases":["CVE-2026-43254"],"related":[],"kind":"vulnerability","state":"published","title":"ovpn: tcp - fix packet extraction from stream","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: tcp - fix packet extraction from stream\n\nWhen processing TCP stream data in ovpn_tcp_recv, we receive large\ncloned skbs from __strp_rcv that may contain multiple coalesced packets.\nThe current implementation has two bugs:\n\n1. Header offset overflow: Using pskb_pull with large offsets on\n   coalesced skbs causes skb->data - skb->head to exceed the u16 storage\n   of skb->network_header. This causes skb_reset_network_header to fail\n   on the inner decapsulated packet, resulting in packet drops.\n\n2. Unaligned protocol headers: Extracting packets from arbitrary\n   positions within the coalesced TCP stream provides no alignment\n   guarantees for the packet data causing performance penalties on\n   architectures without efficient unaligned access. Additionally,\n   openvpn's 2-byte length prefix on TCP packets causes the subsequent\n   4-byte opcode and packet ID fields to be inherently misaligned.\n\nFix both issues by allocating a new skb for each openvpn packet and\nusing skb_copy_bits to extract only the packet content into the new\nbuffer, skipping the 2-byte length prefix. Also, check the length before\ninvoking the function that performs the allocation to avoid creating an\ninvalid skb.\n\nIf the packet has to be forwarded to userspace the 2-byte prefix can be\npushed to the head safely, without misalignment.\n\nAs a side effect, this approach also avoids the expensive linearization\nthat pskb_pull triggers on cloned skbs with page fragments. In testing,\nthis resulted in TCP throughput improvements of up to 74%.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\novpn: tcp - fix packet extraction from stream\n\nWhen processing TCP stream data in ovpn_tcp_recv, we receive large\ncloned skbs from __strp_rcv that may contain multiple coalesced packets.\nThe current implementation has two bugs:\n\n1. Header offset overflow: Using pskb_pull with large offsets on\n   coalesced skbs causes skb->data - skb->head to exceed the u16 storage\n   of skb->network_header. This causes skb_reset_network_header to fail\n   on the inner decapsulated packet, resulting in packet drops.\n\n2. Unaligned protocol headers: Extracting packets from arbitrary\n   positions within the coalesced TCP stream provides no alignment\n   guarantees for the packet data causing performance penalties on\n   architectures without efficient unaligned access. Additionally,\n   openvpn's 2-byte length prefix on TCP packets causes the subsequent\n   4-byte opcode and packet ID fields to be inherently misaligned.\n\nFix both issues by allocating a new skb for each openvpn packet and\nusing skb_copy_bits to extract only the packet content into the new\nbuffer, skipping the 2-byte length prefix. Also, check the length before\ninvoking the function that performs the allocation to avoid creating an\ninvalid skb.\n\nIf the packet has to be forwarded to userspace the 2-byte prefix can be\npushed to the head safely, without misalignment.\n\nAs a side effect, this approach also avoids the expensive linearization\nthat pskb_pull triggers on cloned skbs with page fragments. In testing,\nthis resulted in TCP throughput improvements of up to 74%.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, la siguiente vulnerabilidad ha sido resuelta:\n\novpn: tcp - corrige la extracción de paquetes del flujo\n\nAl procesar datos de flujo TCP en ovpn_tcp_recv, recibimos skbs clonados grandes de __strp_rcv que pueden contener múltiples paquetes fusionados. La implementación actual tiene dos errores:\n\n1. Desbordamiento de desplazamiento de cabecera: Usar pskb_pull con grandes desplazamientos en skbs fusionados hace que skb  ->  data - skb  ->  head exceda el almacenamiento u16 de skb  ->  network_header. Esto hace que skb_reset_network_header falle en el paquete interno desencapsulado, lo que resulta en pérdidas de paquetes.\n\n2. Cabeceras de protocolo no alineadas: Extraer paquetes de posiciones arbitrarias dentro del flujo TCP fusionado no proporciona garantías de alineación para los datos del paquete, causando penalizaciones de rendimiento en arquitecturas sin acceso no alineado eficiente. Además, el prefijo de longitud de 2 bytes de openvpn en los paquetes TCP hace que los campos subsiguientes de código de operación de 4 bytes e ID de paquete estén inherentemente desalineados.\n\nSoluciona ambos problemas asignando un nuevo skb para cada paquete openvpn y usando skb_copy_bits para extraer solo el contenido del paquete en el nuevo búfer, omitiendo el prefijo de longitud de 2 bytes. Además, verifica la longitud antes de invocar la función que realiza la asignación para evitar crear un skb inválido.\n\nSi el paquete tiene que ser reenviado al espacio de usuario, el prefijo de 2 bytes puede ser empujado a la cabecera de forma segura, sin desalineación.\n\nComo efecto secundario, este enfoque también evita la costosa linealización que pskb_pull desencadena en skbs clonados con fragmentos de página. En las pruebas, esto resultó en mejoras de rendimiento TCP de hasta el 74%.","source":"nvd"}],"published":"2026-05-06T11:28:43.871Z","modified":"2026-11-11T20:10:00.273Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H","score":7.5,"rating":"HIGH"}],"cwes":["CWE-190"],"affected":[{"ranges":[{"type":"git","introduced":"11851cbd60ea1e5abbd97619d69845ead99303d6","fixed":"0315bec883c67fa1413c61e504a28dc5bd02eb37","status":"affected"},{"type":"git","introduced":"11851cbd60ea1e5abbd97619d69845ead99303d6","fixed":"7dba6cd7fb168d7615194a631c9c100c1c224131","status":"affected"},{"type":"git","introduced":"11851cbd60ea1e5abbd97619d69845ead99303d6","fixed":"d4f687fbbce45b5e88438e89b5e26c0c15847992","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.16","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.16","status":"unaffected"},{"type":"semver","introduced":"6.18.16","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"6.19.6","lastAffected":"6.19.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.0","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.16","fixed":"6.18.16"},{"status":"affected","introduced":"6.19","fixed":"6.19.6"},{"status":"affected","version":"7.0"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/0315bec883c67fa1413c61e504a28dc5bd02eb37","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7dba6cd7fb168d7615194a631c9c100c1c224131","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/d4f687fbbce45b5e88438e89b5e26c0c15847992","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-43254","url":"https://www.cve.org/CVERecord?id=CVE-2026-43254","licence":"CVE Terms of Use","modified":"2026-08-05T12:26:54.790Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-43254","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-43254","licence":"Public domain","modified":"2026-11-11T20:10:00.273Z"}],"updatedAt":"2026-11-25T22:59:20.753Z","epss":{"score":0.00451,"percentile":0.40902,"date":"2026-12-01T12:00:22.000Z"}}