{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "4b15c7075352668d4467ced7594b676707d11cae"
            },
            {
              "fixed": "cf171f9d765027e189264eff3fde09f9e6089370"
            },
            {
              "fixed": "fd01ed96c286cadf51137e7b7ffc15b4cea16547"
            },
            {
              "fixed": "577a60149f05b84bf908abb5009ddf7223368cf3"
            },
            {
              "fixed": "5ca63981668e3e944a26a3dfb916d45179e985e2"
            },
            {
              "fixed": "f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7"
            },
            {
              "fixed": "021567d09653ecb3dea330a5f8659199038e65d4"
            },
            {
              "fixed": "18f6c145a2fdaf002524935333f5787456dadf7a"
            },
            {
              "fixed": "7076f684d5132e6a6145e1da2fa74771ecd052e5"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "4.19.0"
            },
            {
              "fixed": "5.10.275"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.11.0"
            },
            {
              "fixed": "5.15.226"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "5.16.0"
            },
            {
              "fixed": "6.1.193"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.2.0"
            },
            {
              "fixed": "6.6.163"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.7.0"
            },
            {
              "fixed": "6.12.119"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.65"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.3.6"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139206.json"
  },
  "details": "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-\u003esin_addr.s_addr = *(__be32 *)(skb_network_header(skb) +\n\t\t\t\t\t   serr-\u003eaddr_offset);\n\tsin-\u003esin_port = serr-\u003eport;\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-\u003eee.ee_origin == SO_EE_ORIGIN_ICMP ||\n\t       serr-\u003eee.ee_origin == SO_EE_ORIGIN_LOCAL || serr-\u003eport;\n\nSO_EE_ORIGIN_TXTIME is neither ICMP nor LOCAL, so for sch_etf the gate is\ndecided by serr-\u003eport 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.",
  "id": "CVE-2026-139206",
  "modified": "2026-12-01T06:46:07.195256399Z",
  "published": "2026-11-30T13:32:33.689Z",
  "references": [
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/021567d09653ecb3dea330a5f8659199038e65d4"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/18f6c145a2fdaf002524935333f5787456dadf7a"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/577a60149f05b84bf908abb5009ddf7223368cf3"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5ca63981668e3e944a26a3dfb916d45179e985e2"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7076f684d5132e6a6145e1da2fa74771ecd052e5"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/cf171f9d765027e189264eff3fde09f9e6089370"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/f49e631213f5dbc56b7f3c6b6822a82bd3c42fc7"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/fd01ed96c286cadf51137e7b7ffc15b4cea16547"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/139xxx/CVE-2026-139206.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-139206"
    }
  ],
  "schema_version": "1.9.2",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "net/sched: etf: initialise the sock_exterr_skb before filling it"
}