Skip to content
Heist/ feed
Back to feed
Medium

PyTorch CUDACachingAllocator.cpp torch.cuda.memory.caching_allocator_delete memory corruption

Type: advisorySources: OSV

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. The manipulation leads to memory corruption. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2025-3136
Confirmed fixed CVEs
Not specified
Updated in this feed
3 Nov 2026, 16:48 UTC · Revision 1

Source evidence

PyTorch CUDACachingAllocator.cpp torch.cuda.memory.caching_allocator_delete memory corruption

core-osv · Original source

Published 3 Apr 2025, 03:31 UTC

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. The manipulation leads to memory corruption. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.

osv:CVE-2025-3136
Complete source record
{
  "id": "0ca7560f6c1b04c59dfed33b262b7a87a01154d177bd7945cb7cb24c4e9ff54c",
  "url": "https://osv.dev/vulnerability/CVE-2025-3136",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "PyTorch CUDACachingAllocator.cpp torch.cuda.memory.caching_allocator_delete memory corruption",
    "summary": "A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0. This issue affects the function torch.cuda.memory.caching_allocator_delete of the file c10/cuda/CUDACachingAllocator.cpp. The manipulation leads to memory corruption. An attack has to be approached locally. The exploit has been disclosed to the public and may be used.",
    "evidence": "osv:CVE-2025-3136",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2025-3136",
      "aliases": [
        "BIT-pytorch-2025-3136",
        "CVE-2025-3136",
        "PYSEC-2025-197"
      ],
      "metrics": [
        {
          "type": "CVSS_V4",
          "score": "CVSS:4.0/AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/pytorch/pytorch",
              "type": "GIT",
              "events": [
                {
                  "introduced": "1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"
                },
                {
                  "last_affected": "1eba9b3aa3c43f86f4a2c807ac8e12c4a7767340"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "2.6.0"
                      },
                      {
                        "last_affected": "2.6.0"
                      }
                    ],
                    "source": "AFFECTED_FIELD",
                    "strategy": "StandaloneSingleVersion"
                  },
                  {
                    "cpe": "cpe:2.3:a:linuxfoundation:pytorch:2.6.0:-:*:*:*:python:*:*",
                    "range": [
                      {
                        "introduced": "2.6.0-NA"
                      },
                      {
                        "last_affected": "2.6.0-NA"
                      }
                    ],
                    "source": "CPE_STRING"
                  }
                ]
              }
            }
          ],
          "versions": [
            "2.6.0",
            "2.6.0-NA",
            "v2.6.0"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2025-3136.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:30.498099535Z",
      "provider": "osv",
      "references": [
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3136.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2025-3136",
        "https://vuldb.com/?id.303041",
        "https://vuldb.com/?submit.525252",
        "https://github.com/pytorch/pytorch/issues/149821",
        "https://github.com/pytorch/pytorch/issues/149821#issue-2940838975",
        "https://github.com/pytorch/pytorch/issues/149821#issuecomment-2765311086",
        "https://vuldb.com/?ctiid.303041",
        "https://github.com/ARPANET-cybersecurity/vuldb/issues/2"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-119"
        ],
        "cna_assigner": "VulDB",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2025/3xxx/CVE-2025-3136.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2025-3136",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 497577,
  "published_at": "2025-04-03T03:31:05.598+00:00"
}