{
  "id": "CVE-2025-39946",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39946",
  "published_at": "2025-10-04T07:31:07.871Z",
  "title": "tls: make sure to abort the stream if headers are bogus",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 9.8,
    "source": "cna",
    "vector": "CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": {
    "created_at": "2025-10-04T19:39:03Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 0.5,
    "repo": "farazsth98/exploit-CVE-2025-39946",
    "source": "github"
  },
  "poc_repo_count": 1,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ntls: make sure to abort the stream if headers are bogus\n\nNormally we wait for the socket to buffer up the whole record\nbefore we service it. If the socket has a tiny buffer, however,\nwe read out the data sooner, to prevent connection stalls.\nMake sure that we abort the connection when we find out late\nthat the record is actually invalid. Retrying the parsing is\nfine in itself but since we copy some more data each time\nbefore we parse we can overflow the allocated skb space.\n\nConstructing a scenario in which we're under pressure without\nenough data in the socket to parse the length upfront is quite\nhard. syzbot figured out a way to do this by serving us the header\nin small OOB sends, and then filling in the recvbuf with a large\nnormal send.\n\nMake sure that tls_rx_msg_size() aborts strp, if we reach\nan invalid record there's really no way to recover.",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc4:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc5:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.17:rc6:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 5.5
  },
  "repos": [
    {
      "repo": "farazsth98/exploit-CVE-2025-39946",
      "url": "https://github.com/farazsth98/exploit-CVE-2025-39946",
      "created_at": "2025-10-04T19:39:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 37,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2017-02-20T14:12:24Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c b36462146d86b1f22e594fe4dae611dffacfb203",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 4cefe5be73886f383639fe0850bb72d5b568a7b9",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 208640e6225cc929a05adbf79d1df558add3e231",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 61ca2da5fb8f433ce8bbd1657c84a86272133e6b",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d"
        ],
        "fixed_in": [
          "b36462146d86b1f22e594fe4dae611dffacfb203",
          "4cefe5be73886f383639fe0850bb72d5b568a7b9",
          "208640e6225cc929a05adbf79d1df558add3e231",
          "61ca2da5fb8f433ce8bbd1657c84a86272133e6b",
          "0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.154",
          "6.6.108",
          "6.12.49",
          "6.16.9",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to b36462146d86b1f22e594fe4dae611dffacfb203 or 4cefe5be73886f383639fe0850bb72d5b568a7b9 or 208640e6225cc929a05adbf79d1df558add3e231 or 61ca2da5fb8f433ce8bbd1657c84a86272133e6b or 0aeb54ac4cd5cf8f60131b4d9ec0b6dc9c27b20d or later.",
      "Upgrade Linux to 0 or 6.1.154 or 6.6.108 or 6.12.49 or 6.16.9 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
