{"api_version":"1","generated_at":"2026-11-30T19:45:59+00:00","cve":"CVE-2026-139206","urls":{"html":"https://cve.report/CVE-2026-139206","api":"https://cve.report/api/cve/CVE-2026-139206.json","docs":"https://cve.report/api","cve_org":"https://www.cve.org/CVERecord?id=CVE-2026-139206","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2026-139206"},"summary":{"title":"net/sched: etf: initialise the sock_exterr_skb before filling it","description":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: etf: initialise the sock_exterr_skb before filling it\n\nreport_sock_error() clones the transmitted skb, overlays a\nstruct sock_exterr_skb on its control block and fills in the seven\nstruct sock_extended_err fields, but never clears addr_offset and port.\nskb_clone() copies cb[] verbatim, so the errqueue entry carries the TX\nskb's stale control block to the receive side, and the ipv4 error-queue\nreader trusts those bytes:\n\n  net/ipv4/ip_sockglue.c:556\n\tsin->sin_addr.s_addr = *(__be32 *)(skb_network_header(skb) +\n\t\t\t\t\t   serr->addr_offset);\n\tsin->sin_port = serr->port;\n\nThe gate that is supposed to guard that read only asks whether an\naddress was requested at all:\n\n  net/ipv4/ip_sockglue.c:484\n\treturn serr->ee.ee_origin == SO_EE_ORIGIN_ICMP ||\n\t       serr->ee.ee_origin == SO_EE_ORIGIN_LOCAL || serr->port;\n\nSO_EE_ORIGIN_TXTIME is neither ICMP nor LOCAL, so for sch_etf the gate is\ndecided by serr->port alone -- by the stale byte pair.  When it is\nnon-zero the reader dereferences skb_network_header() + addr_offset with\nan arbitrary offset.  On the TCP path cb[40..44) is not zero: the\ntransmit path stored delivered_mstamp there (tcp_rate_skb_sent()), which\nis exactly where addr_offset/port sit in the arm64 struct layout.\n\nReached with an unmodified 7.3-rc4 (arm64, KASAN, in-tree modules): a TCP\nsocket enables TX-timestamp error reporting (SO_TXTIME with\nSOF_TXTIME_REPORT_ERRORS), a sch_etf qdisc drops the packet, and a\nrecvmsg() reaches ip_recv_error():\n\n  BUG: KASAN: slab-out-of-bounds in ip_recv_error+0x970/0xa0c\n  Read of size 4 at addr ffff0000158ffdd5 by task A-227-A227-1_S2/113\n  ip_recv_error+0x970/0xa0c\n  inet_recv_error+0x94/0xdc\n  tcp_recvmsg+0x378/0x408\n  ...\n  The buggy address is located 149 bytes to the right of\n  allocated 704-byte region\n\nZero the whole overlay rather than the two fields individually: the\nerrqueue entry is handed to the receive side as a self-contained record,\nwhich is what every other producer in the tree already does (sch_etf was\nthe only error-queue producer that cleared neither field).  This does not\nchange what the in-tree selftest observes -- so_txtime.c reads only\nee_origin/ee_errno/ee_code/ee_data/ee_info, never msg_name or sin_port.","state":"PUBLISHED","assigner":"Linux","published_at":"2026-11-30 14:18:40","updated_at":"2026-11-30 14:18:40"},"problem_types":[],"metrics":[],"references":[{"url":"https://git.kernel.org/stable/c/cf171f9d765027e189264eff3fde09f9e6089370","name":"https://git.kernel.org/stable/c/cf171f9d765027e189264eff3fde09f9e6089370","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/021567d09653ecb3dea330a5f8659199038e65d4","name":"https://git.kernel.org/stable/c/021567d09653ecb3dea330a5f8659199038e65d4","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7","name":"https://git.kernel.org/stable/c/f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/18f6c145a2fdaf002524935333f5787456dadf7a","name":"https://git.kernel.org/stable/c/18f6c145a2fdaf002524935333f5787456dadf7a","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/577a60149f05b84bf908abb5009ddf7223368cf3","name":"https://git.kernel.org/stable/c/577a60149f05b84bf908abb5009ddf7223368cf3","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/fd01ed96c286cadf51137e7b7ffc15b4cea16547","name":"https://git.kernel.org/stable/c/fd01ed96c286cadf51137e7b7ffc15b4cea16547","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/7076f684d5132e6a6145e1da2fa74771ecd052e5","name":"https://git.kernel.org/stable/c/7076f684d5132e6a6145e1da2fa74771ecd052e5","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://git.kernel.org/stable/c/5ca63981668e3e944a26a3dfb916d45179e985e2","name":"https://git.kernel.org/stable/c/5ca63981668e3e944a26a3dfb916d45179e985e2","refsource":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","tags":[],"title":"","mime":"","httpstatus":"","archivestatus":"0"},{"url":"https://www.cve.org/CVERecord?id=CVE-2026-139206","name":"CVE Program record","refsource":"CVE.ORG","tags":["canonical"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-139206","name":"NVD vulnerability detail","refsource":"NVD","tags":["canonical","analysis"]}],"affected":[{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae cf171f9d765027e189264eff3fde09f9e6089370 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae fd01ed96c286cadf51137e7b7ffc15b4cea16547 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae 577a60149f05b84bf908abb5009ddf7223368cf3 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae 5ca63981668e3e944a26a3dfb916d45179e985e2 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae 021567d09653ecb3dea330a5f8659199038e65d4 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae 18f6c145a2fdaf002524935333f5787456dadf7a git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4b15c7075352668d4467ced7594b676707d11cae 7076f684d5132e6a6145e1da2fa74771ecd052e5 git","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"affected 4.19","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 4.19 semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.10.275 5.10.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 5.15.226 5.15.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.1.193 6.1.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.6.163 6.6.* semver","platforms":[]},{"source":"CNA","vendor":"Linux","product":"Linux","version":"unaffected 6.12.119 6.12.* 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/sched/sch_etf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"lessThan":"cf171f9d765027e189264eff3fde09f9e6089370","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"fd01ed96c286cadf51137e7b7ffc15b4cea16547","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"577a60149f05b84bf908abb5009ddf7223368cf3","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"5ca63981668e3e944a26a3dfb916d45179e985e2","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"021567d09653ecb3dea330a5f8659199038e65d4","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"18f6c145a2fdaf002524935333f5787456dadf7a","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"},{"lessThan":"7076f684d5132e6a6145e1da2fa74771ecd052e5","status":"affected","version":"4b15c7075352668d4467ced7594b676707d11cae","versionType":"git"}]},{"defaultStatus":"affected","product":"Linux","programFiles":["net/sched/sch_etf.c"],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","vendor":"Linux","versions":[{"status":"affected","version":"4.19"},{"lessThan":"4.19","status":"unaffected","version":"0","versionType":"semver"},{"lessThanOrEqual":"5.10.*","status":"unaffected","version":"5.10.275","versionType":"semver"},{"lessThanOrEqual":"5.15.*","status":"unaffected","version":"5.15.226","versionType":"semver"},{"lessThanOrEqual":"6.1.*","status":"unaffected","version":"6.1.193","versionType":"semver"},{"lessThanOrEqual":"6.6.*","status":"unaffected","version":"6.6.163","versionType":"semver"},{"lessThanOrEqual":"6.12.*","status":"unaffected","version":"6.12.119","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":"5.10.275","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"5.15.226","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.1.193","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.6.163","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.12.119","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"6.18.65","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.3.6","versionStartIncluding":"4.19","vulnerable":true},{"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionEndExcluding":"7.4-rc1","versionStartIncluding":"4.19","vulnerable":true}],"negate":false,"operator":"OR"}]}],"descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: etf: initialise the sock_exterr_skb before filling it\n\nreport_sock_error() clones the transmitted skb, overlays a\nstruct sock_exterr_skb on its control block and fills in the seven\nstruct sock_extended_err fields, but never clears addr_offset and port.\nskb_clone() copies cb[] verbatim, so the errqueue entry carries the TX\nskb's stale control block to the receive side, and the ipv4 error-queue\nreader trusts those bytes:\n\n  net/ipv4/ip_sockglue.c:556\n\tsin->sin_addr.s_addr = *(__be32 *)(skb_network_header(skb) +\n\t\t\t\t\t   serr->addr_offset);\n\tsin->sin_port = serr->port;\n\nThe gate that is supposed to guard that read only asks whether an\naddress was requested at all:\n\n  net/ipv4/ip_sockglue.c:484\n\treturn serr->ee.ee_origin == SO_EE_ORIGIN_ICMP ||\n\t       serr->ee.ee_origin == SO_EE_ORIGIN_LOCAL || serr->port;\n\nSO_EE_ORIGIN_TXTIME is neither ICMP nor LOCAL, so for sch_etf the gate is\ndecided by serr->port alone -- by the stale byte pair.  When it is\nnon-zero the reader dereferences skb_network_header() + addr_offset with\nan arbitrary offset.  On the TCP path cb[40..44) is not zero: the\ntransmit path stored delivered_mstamp there (tcp_rate_skb_sent()), which\nis exactly where addr_offset/port sit in the arm64 struct layout.\n\nReached with an unmodified 7.3-rc4 (arm64, KASAN, in-tree modules): a TCP\nsocket enables TX-timestamp error reporting (SO_TXTIME with\nSOF_TXTIME_REPORT_ERRORS), a sch_etf qdisc drops the packet, and a\nrecvmsg() reaches ip_recv_error():\n\n  BUG: KASAN: slab-out-of-bounds in ip_recv_error+0x970/0xa0c\n  Read of size 4 at addr ffff0000158ffdd5 by task A-227-A227-1_S2/113\n  ip_recv_error+0x970/0xa0c\n  inet_recv_error+0x94/0xdc\n  tcp_recvmsg+0x378/0x408\n  ...\n  The buggy address is located 149 bytes to the right of\n  allocated 704-byte region\n\nZero the whole overlay rather than the two fields individually: the\nerrqueue entry is handed to the receive side as a self-contained record,\nwhich is what every other producer in the tree already does (sch_etf was\nthe only error-queue producer that cleared neither field).  This does not\nchange what the in-tree selftest observes -- so_txtime.c reads only\nee_origin/ee_errno/ee_code/ee_data/ee_info, never msg_name or sin_port."}],"providerMetadata":{"dateUpdated":"2026-11-30T13:32:33.689Z","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","shortName":"Linux"},"references":[{"url":"https://git.kernel.org/stable/c/cf171f9d765027e189264eff3fde09f9e6089370"},{"url":"https://git.kernel.org/stable/c/fd01ed96c286cadf51137e7b7ffc15b4cea16547"},{"url":"https://git.kernel.org/stable/c/577a60149f05b84bf908abb5009ddf7223368cf3"},{"url":"https://git.kernel.org/stable/c/5ca63981668e3e944a26a3dfb916d45179e985e2"},{"url":"https://git.kernel.org/stable/c/f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7"},{"url":"https://git.kernel.org/stable/c/021567d09653ecb3dea330a5f8659199038e65d4"},{"url":"https://git.kernel.org/stable/c/18f6c145a2fdaf002524935333f5787456dadf7a"},{"url":"https://git.kernel.org/stable/c/7076f684d5132e6a6145e1da2fa74771ecd052e5"}],"title":"net/sched: etf: initialise the sock_exterr_skb before filling it","x_generator":{"engine":"bippy-1.2.0"}}},"cveMetadata":{"assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","assignerShortName":"Linux","cveId":"CVE-2026-139206","datePublished":"2026-11-30T13:32:33.689Z","dateReserved":"2026-11-30T13:22:15.920Z","dateUpdated":"2026-11-30T13:32:33.689Z","state":"PUBLISHED"},"dataType":"CVE_RECORD","dataVersion":"5.2"},"nvd":{"publishedDate":"2026-11-30 14:18:40","lastModifiedDate":"2026-11-30 14:18:40","problem_types":[],"metrics":[],"configurations":[]},"legacy_mitre":{"record":{"CveYear":"2026","CveId":"139206","Ordinal":"1","Title":"net/sched: etf: initialise the sock_exterr_skb before filling it","CVE":"CVE-2026-139206","Year":"2026"},"notes":[{"CveYear":"2026","CveId":"139206","Ordinal":"1","NoteData":"In the Linux kernel, the following vulnerability has been resolved:\n\nnet/sched: etf: initialise the sock_exterr_skb before filling it\n\nreport_sock_error() clones the transmitted skb, overlays a\nstruct sock_exterr_skb on its control block and fills in the seven\nstruct sock_extended_err fields, but never clears addr_offset and port.\nskb_clone() copies cb[] verbatim, so the errqueue entry carries the TX\nskb's stale control block to the receive side, and the ipv4 error-queue\nreader trusts those bytes:\n\n  net/ipv4/ip_sockglue.c:556\n\tsin->sin_addr.s_addr = *(__be32 *)(skb_network_header(skb) +\n\t\t\t\t\t   serr->addr_offset);\n\tsin->sin_port = serr->port;\n\nThe gate that is supposed to guard that read only asks whether an\naddress was requested at all:\n\n  net/ipv4/ip_sockglue.c:484\n\treturn serr->ee.ee_origin == SO_EE_ORIGIN_ICMP ||\n\t       serr->ee.ee_origin == SO_EE_ORIGIN_LOCAL || serr->port;\n\nSO_EE_ORIGIN_TXTIME is neither ICMP nor LOCAL, so for sch_etf the gate is\ndecided by serr->port alone -- by the stale byte pair.  When it is\nnon-zero the reader dereferences skb_network_header() + addr_offset with\nan arbitrary offset.  On the TCP path cb[40..44) is not zero: the\ntransmit path stored delivered_mstamp there (tcp_rate_skb_sent()), which\nis exactly where addr_offset/port sit in the arm64 struct layout.\n\nReached with an unmodified 7.3-rc4 (arm64, KASAN, in-tree modules): a TCP\nsocket enables TX-timestamp error reporting (SO_TXTIME with\nSOF_TXTIME_REPORT_ERRORS), a sch_etf qdisc drops the packet, and a\nrecvmsg() reaches ip_recv_error():\n\n  BUG: KASAN: slab-out-of-bounds in ip_recv_error+0x970/0xa0c\n  Read of size 4 at addr ffff0000158ffdd5 by task A-227-A227-1_S2/113\n  ip_recv_error+0x970/0xa0c\n  inet_recv_error+0x94/0xdc\n  tcp_recvmsg+0x378/0x408\n  ...\n  The buggy address is located 149 bytes to the right of\n  allocated 704-byte region\n\nZero the whole overlay rather than the two fields individually: the\nerrqueue entry is handed to the receive side as a self-contained record,\nwhich is what every other producer in the tree already does (sch_etf was\nthe only error-queue producer that cleared neither field).  This does not\nchange what the in-tree selftest observes -- so_txtime.c reads only\nee_origin/ee_errno/ee_code/ee_data/ee_info, never msg_name or sin_port.","Type":"Description","Title":"net/sched: etf: initialise the sock_exterr_skb before filling it"}]}}}