{
  "id": "CVE-2025-39682",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-39682",
  "published_at": "2025-09-05T17:20:48.657Z",
  "title": "tls: fix handling of zero-length records on the rx_list",
  "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": true,
    "added_at": "2026-09-18",
    "known_ransomware_campaign_use": "Unknown",
    "days_after_publication": 378
  },
  "first_poc": {
    "created_at": "2025-10-14T07:59:03Z",
    "first_seen_at": "2026-11-14T11:25:11.578Z",
    "days_after_publication": 38.6,
    "repo": "khoatran107/cve-2025-39682",
    "source": "github"
  },
  "poc_repo_count": 2,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\ntls: fix handling of zero-length records on the rx_list\n\nEach recvmsg() call must process either\n - only contiguous DATA records (any number of them)\n - one non-DATA record\n\nIf the next record has different type than what has already been\nprocessed we break out of the main processing loop. If the record\nhas already been decrypted (which may be the case for TLS 1.3 where\nwe don't know type until decryption) we queue the pending record\nto the rx_list. Next recvmsg() will pick it up from there.\n\nQueuing the skb to rx_list after zero-copy decrypt is not possible,\nsince in that case we decrypted directly to the user space buffer,\nand we don't have an skb to queue (darg.skb points to the ciphertext\nskb for access to metadata like length).\n\nOnly data records are allowed zero-copy, and we break the processing\nloop after each non-data record. So we should never zero-copy and\nthen find out that the record type has changed. The corner case\nwe missed is when the initial record comes from rx_list, and it's\nzero length.",
  "cwe": "CWE-754",
  "cpes": [
    "cpe:2.3:o:debian:debian_linux:11.0:*:*:*:*:*:*:*",
    "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:siemens:simatic_cn_4100_firmware:*:*:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cna": 9.8,
    "nvd": 9.8
  },
  "repos": [
    {
      "repo": "khoatran107/cve-2025-39682",
      "url": "https://github.com/khoatran107/cve-2025-39682",
      "created_at": "2025-10-14T07:59:03Z",
      "first_seen_at": "2026-11-14T11:25:11.578Z",
      "stars": 6,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2018-02-22T06:46:43Z"
    },
    {
      "repo": "suominen/CVE-2025-39682",
      "url": "https://github.com/suominen/CVE-2025-39682",
      "created_at": "2026-09-20T05:58:09Z",
      "first_seen_at": "2026-11-14T14:50:35.824Z",
      "stars": 0,
      "is_poc": "yes",
      "kind": "exploit",
      "suspicion_score": 0,
      "suspicious": false,
      "suspicion_reasons": [],
      "status": "analyzed",
      "owner_created_at": "2012-07-08T23:28:18Z"
    }
  ],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 2902c3ebcca52ca845c03182000e8d71d3a5196f",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 3439c15ae91a517cf3c650ea15a8987699416ad9",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e",
          "\u003e= 84c61fe1a75b4255df1e1e7c054c9e6d048da417, \u003c 62708b9452f8eb77513115b17c4f8d1a22ebf843"
        ],
        "fixed_in": [
          "2902c3ebcca52ca845c03182000e8d71d3a5196f",
          "c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677",
          "3439c15ae91a517cf3c650ea15a8987699416ad9",
          "29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e",
          "62708b9452f8eb77513115b17c4f8d1a22ebf843"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.0"
        ],
        "fixed_in": [
          "0",
          "6.1.149",
          "6.6.103",
          "6.12.44",
          "6.16.4",
          "6.17"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 2902c3ebcca52ca845c03182000e8d71d3a5196f or c09dd3773b5950e9cfb6c9b9a5f6e36d06c62677 or 3439c15ae91a517cf3c650ea15a8987699416ad9 or 29c0ce3c8cdb6dc5d61139c937f34cb888a6f42e or 62708b9452f8eb77513115b17c4f8d1a22ebf843 or later.",
      "Upgrade Linux to 0 or 6.1.149 or 6.6.103 or 6.12.44 or 6.16.4 or 6.17 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [
    {
      "method": "GET",
      "path_template": "/",
      "query_markers": [
        "delimiter=/",
        "prefix=",
        "marker="
      ],
      "ports": [
        1313
      ],
      "protocol": "https",
      "repos": [
        "suominen/CVE-2025-39682"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "suominen/CVE-2025-39682/scripts/nixos-first-shipped:108",
        "suominen/CVE-2025-39682/scripts/nixos-first-shipped:174"
      ]
    },
    {
      "method": "GET",
      "path_template": "/dev/null",
      "ports": [
        1313
      ],
      "protocol": "http",
      "repos": [
        "suominen/CVE-2025-39682"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "suominen/CVE-2025-39682/scripts/nixos-first-shipped:206"
      ]
    },
    {
      "method": "GET",
      "path_template": "/madison",
      "query_markers": [
        "package=linux",
        "s=sid,forky,trixie,bookworm,bullseye",
        "text=on"
      ],
      "ports": [
        1313
      ],
      "protocol": "https",
      "repos": [
        "suominen/CVE-2025-39682"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "suominen/CVE-2025-39682/CLAUDE.md:524",
        "suominen/CVE-2025-39682/scripts/auto-update-prompt.txt:109"
      ]
    },
    {
      "method": "GET",
      "path_template": "/mr/package/linux/{var}/srcfiles",
      "query_markers": [
        "fileinfo=1"
      ],
      "ports": [
        1313
      ],
      "protocol": "https",
      "repos": [
        "suominen/CVE-2025-39682"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "suominen/CVE-2025-39682/CLAUDE.md:531"
      ]
    },
    {
      "method": "GET",
      "path_template": "/tracker/data/json",
      "ports": [
        1313
      ],
      "protocol": "https",
      "repos": [
        "suominen/CVE-2025-39682"
      ],
      "repo_count": 1,
      "confidence": 0.7,
      "evidence": [
        "suominen/CVE-2025-39682/CLAUDE.md:516",
        "suominen/CVE-2025-39682/scripts/auto-update-prompt.txt:105"
      ]
    }
  ],
  "rules": []
}
