{"api_version":"1","generated_at":"2026-12-01T22:16:16+00:00","cve":"CVE-2026-139210","urls":{"html":"https://cve.report/CVE-2026-139210","api":"https://cve.report/api/cve/CVE-2026-139210.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139210","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139210"},"summary":{"title":"tcp: reject devmem tx with fastopen and repair","description":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: reject devmem tx with fastopen and repair\n\ntcp_sendmsg_locked() enforces that devmem TX can only proceed if the\nzero-copy path is active and a valid dmabuf binding exists. However,\nsubsequent branches in tcp_sendmsg_locked() can still intercept the\nmessage before it reaches the devmem zero-copy loop:\n\n1. TCP Fast Open (MSG_FASTOPEN or DEFER_CONNECT):\n   If TCP_FASTOPEN_CONNECT is set, the socket may have a valid dst with\n   NETIF_F_SG (so zc == MSG_ZEROCOPY and binding is present), but\n   tcp_sendmsg_fastopen() -> tcp_send_syn_data() will use\n   copy_page_from_iter() to byte-copy from the iterator. Since iov_base\n   represents dma-buf offsets rather than user virtual addresses, this\n   misinterprets offsets as user pointers and copies the caller's memory\n   at those addresses into the SYN packet.\n\n2. TCP repair mode:\n   If tp->repair is enabled with TCP_RECV_QUEUE, tcp_send_rcvq() similarly\n   calls skb_copy_datagram_from_iter(), byte-copying from the iterator.\n\nNeither path supports or makes sense for devmem transmission. Reject\ndevmem sends inside the Fast Open and TCP repair branches when a devmem\nbinding is present. Checking inside the tp->repair branch also covers\nthe case where repair mode is enabled while sk_stream_wait_connect()\ndrops the socket lock.\n\nAdditionally, drop the !sockc_err gate from the devmem validation check\nand return sockc_err if set. Otherwise, if a valid SCM_DEVMEM_DMABUF is\nfollowed by a failing cmsg, sockc.dmabuf_id remains set while binding is\nnot acquired, allowing the Fast Open and TCP_RECV_QUEUE repair paths to\nproceed and return before sockc_err is checked.\n\nThis pre-existing issue was identified by Sashiko AI review on commit\n125755776bc6 (\"tcp: reject non zerocopy devmem tx\") and has not been\nhit in production.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:41","updated_at":"2026-11-30 14:18:41"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/3c7bf219b8a366277f3aece661a2c09dcb85ae15","name":"https://git.kernel.org/stable/c/3c7bf219b8a366277f3aece661a2c09dcb85ae15","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/c64d34f285267e5eabadd677cc2c89447d51d5d1","name":"https://git.kernel.org/stable/c/c64d34f285267e5eabadd677cc2c89447d51d5d1","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/89b9db72918bc209029fad8cccc42191b498d511","name":"https://git.kernel.org/stable/c/89b9db72918bc209029fad8cccc42191b498d511","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139210","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139210","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd61848900bff597764238f3a8ec67c815cd316e 3c7bf219b8a366277f3aece661a2c09dcb85ae15 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd61848900bff597764238f3a8ec67c815cd316e c64d34f285267e5eabadd677cc2c89447d51d5d1 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected bd61848900bff597764238f3a8ec67c815cd316e 89b9db72918bc209029fad8cccc42191b498d511 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 6.16","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.16 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.18.65 6.18.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.3.6 7.3.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 7.4-rc1 * original_commit_for_fix","platforms":[]}],"timeline":[],"solutions":[],"workarounds":[],"exploits":[],"credits":[],"nvd_cpes":[],"vendor_comments":[],"enrichments":{"kev":null,"epss":null,"legacy_qids":[]},"source_records":{"cve_program":{"containers":{"cna":{"affected":[{"defaultStatus":"unaffected","product":"Linux","programFiles":["net/ipv4/tcp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"3c7bf219b8a366277f3aece661a2c09dcb85ae15","status":"affected","version":"bd61848900bff597764238f3a8ec67c815cd316e","versionType":"git"},{"lessThan":"c64d34f285267e5eabadd677cc2c89447d51d5d1","status":"affected","version":"bd61848900bff597764238f3a8ec67c815cd316e","versionType":"git"},{"lessThan":"89b9db72918bc209029fad8cccc42191b498d511","status":"affected","version":"bd61848900bff597764238f3a8ec67c815cd316e","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/ipv4/tcp.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"6.16"},{"lessThan":"6.16","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"6.18.*","status":"unaffected","version":"6.18.65","versionType":"semver"},{"lessThanOrEqual":"7.3.*","status":"unaffected","version":"7.3.6","versionType":"semver"},{"lessThanOrEqual":"*","status":"unaffected","version":"7.4-rc1","versionType":"original_commit_for_fix"}]}],"cpeApplicability":[{"nodes":[{"cpeMatch":[{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"6.16","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"6.16","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: reject devmem tx with fastopen and repair\n\ntcp_sendmsg_locked() enforces that devmem TX can only proceed if the\nzero-copy path is active and a valid dmabuf binding exists. However,\nsubsequent branches in tcp_sendmsg_locked() can still intercept the\nmessage before it reaches the devmem zero-copy loop:\n\n1. TCP Fast Open (MSG_FASTOPEN or DEFER_CONNECT):\n   If TCP_FASTOPEN_CONNECT is set, the socket may have a valid dst with\n   NETIF_F_SG (so zc == MSG_ZEROCOPY and binding is present), but\n   tcp_sendmsg_fastopen() -> tcp_send_syn_data() will use\n   copy_page_from_iter() to byte-copy from the iterator. Since iov_base\n   represents dma-buf offsets rather than user virtual addresses, this\n   misinterprets offsets as user pointers and copies the caller's memory\n   at those addresses into the SYN packet.\n\n2. TCP repair mode:\n   If tp->repair is enabled with TCP_RECV_QUEUE, tcp_send_rcvq() similarly\n   calls skb_copy_datagram_from_iter(), byte-copying from the iterator.\n\nNeither path supports or makes sense for devmem transmission. Reject\ndevmem sends inside the Fast Open and TCP repair branches when a devmem\nbinding is present. Checking inside the tp->repair branch also covers\nthe case where repair mode is enabled while sk_stream_wait_connect()\ndrops the socket lock.\n\nAdditionally, drop the !sockc_err gate from the devmem validation check\nand return sockc_err if set. Otherwise, if a valid SCM_DEVMEM_DMABUF is\nfollowed by a failing cmsg, sockc.dmabuf_id remains set while binding is\nnot acquired, allowing the Fast Open and TCP_RECV_QUEUE repair paths to\nproceed and return before sockc_err is checked.\n\nThis pre-existing issue was identified by Sashiko AI review on commit\n125755776bc6 (\"tcp: reject non zerocopy devmem tx\") and has not been\nhit in production."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:35.915Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/3c7bf219b8a366277f3aece661a2c09dcb85ae15"},{"url":"https://git.kernel.org/stable/c/c64d34f285267e5eabadd677cc2c89447d51d5d1"},{"url":"https://git.kernel.org/stable/c/89b9db72918bc209029fad8cccc42191b498d511"}],"title":"tcp: reject devmem tx with fastopen and repair","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139210","datePublished":"2026-11-30T13:32:35.915Z","dateReserved":"2026-11-30T13:22:15.920Z","dateUpdated":"2026-11-30T13:32:35.915Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:41","lastModifiedDate":"2026-11-30 14:18:41","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139210","Ordinal":"1","Title":"tcp: reject devmem tx with fastopen and repair","CVE":"CVE-2026-139210","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139210","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\ntcp: reject devmem tx with fastopen and repair\n\ntcp_sendmsg_locked() enforces that devmem TX can only proceed if the\nzero-copy path is active and a valid dmabuf binding exists. However,\nsubsequent branches in tcp_sendmsg_locked() can still intercept the\nmessage before it reaches the devmem zero-copy loop:\n\n1. TCP Fast Open (MSG_FASTOPEN or DEFER_CONNECT):\n   If TCP_FASTOPEN_CONNECT is set, the socket may have a valid dst with\n   NETIF_F_SG (so zc == MSG_ZEROCOPY and binding is present), but\n   tcp_sendmsg_fastopen() -> tcp_send_syn_data() will use\n   copy_page_from_iter() to byte-copy from the iterator. Since iov_base\n   represents dma-buf offsets rather than user virtual addresses, this\n   misinterprets offsets as user pointers and copies the caller's memory\n   at those addresses into the SYN packet.\n\n2. TCP repair mode:\n   If tp->repair is enabled with TCP_RECV_QUEUE, tcp_send_rcvq() similarly\n   calls skb_copy_datagram_from_iter(), byte-copying from the iterator.\n\nNeither path supports or makes sense for devmem transmission. Reject\ndevmem sends inside the Fast Open and TCP repair branches when a devmem\nbinding is present. Checking inside the tp->repair branch also covers\nthe case where repair mode is enabled while sk_stream_wait_connect()\ndrops the socket lock.\n\nAdditionally, drop the !sockc_err gate from the devmem validation check\nand return sockc_err if set. Otherwise, if a valid SCM_DEVMEM_DMABUF is\nfollowed by a failing cmsg, sockc.dmabuf_id remains set while binding is\nnot acquired, allowing the Fast Open and TCP_RECV_QUEUE repair paths to\nproceed and return before sockc_err is checked.\n\nThis pre-existing issue was identified by Sashiko AI review on commit\n125755776bc6 (\"tcp: reject non zerocopy devmem tx\") and has not been\nhit in production.","Type":"Description","Title":"tcp: reject devmem tx with fastopen and repair"}]}}}