Skip to content
Heist/ feed
Back to feed
Medium

pytorch — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-CVE-2025-2953

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The security policy of the project warns to use unknown models which might establish malicious effects.

Products
pytorch
Affected versions
1.7.1-7, 1.8.1-4, 2.12.1+dfsg-1, 2.6.0+dfsg-5build1, 2.6.0+dfsg-7, 2.6.0+dfsg-9, 2.9.1+dfsg-1~exp1ubuntu2
Fixed versions
Not specified
CVEs
CVE-2025-2953
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:26 UTC · Revision 1

Source evidence

UBUNTU-CVE-2025-2953

core-osv · Original source

Published 30 Mar 2025, 16:15 UTC

A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The security policy of the project warns to use unknown models which might establish malicious effects.

osv:UBUNTU-CVE-2025-2953

pytorch

Fixed versions: Not specified

pytorch

Fixed versions: Not specified

pytorch

Fixed versions: Not specified

pytorch

Fixed versions: Not specified

Complete source record
{
  "id": "23ae4ef5e9e98070d2aa94224589f739ff4188bccf6c813323d66f022368ae20",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2025-2953",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-CVE-2025-2953",
    "summary": "A vulnerability, which was classified as problematic, has been found in PyTorch 2.6.0+cu124. Affected by this issue is the function torch.mkldnn_max_pool2d. The manipulation leads to denial of service. An attack has to be approached locally. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. The security policy of the project warns to use unknown models which might establish malicious effects.",
    "evidence": "osv:UBUNTU-CVE-2025-2953",
    "products": [
      {
        "name": {
          "value": "pytorch",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.7.1-7",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "1.8.1-4",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pytorch",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.0+dfsg-5build1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "2.6.0+dfsg-7",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pytorch",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.9.1+dfsg-1~exp1ubuntu2",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "2.12.1+dfsg-1",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "pytorch",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "2.6.0+dfsg-7",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.6.0+dfsg-9",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "2.9.1+dfsg-1~exp1ubuntu2",
            "evidence": "/affected/3/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2025-2953",
      "aliases": [
        "UBUNTU-CVE-2025-2953"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:L"
        },
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
        },
        {
          "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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pytorch",
            "purl": "pkg:deb/ubuntu/pytorch?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "versions": [
            "1.7.1-7",
            "1.8.1-4"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2953.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libtorch-test",
                "binary_version": "1.8.1-4"
              },
              {
                "binary_name": "libtorch1.8",
                "binary_version": "1.8.1-4"
              },
              {
                "binary_name": "python3-torch",
                "binary_version": "1.8.1-4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pytorch",
            "purl": "pkg:deb/ubuntu/pytorch?arch=source&distro=questing",
            "ecosystem": "Ubuntu:25.10"
          },
          "versions": [
            "2.6.0+dfsg-5build1",
            "2.6.0+dfsg-7"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2953.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libtorch-test",
                "binary_version": "2.6.0+dfsg-7"
              },
              {
                "binary_name": "libtorch2.6",
                "binary_version": "2.6.0+dfsg-7"
              },
              {
                "binary_name": "python3-torch",
                "binary_version": "2.6.0+dfsg-7"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pytorch",
            "purl": "pkg:deb/ubuntu/pytorch?arch=source&distro=stonking",
            "ecosystem": "Ubuntu:26.10"
          },
          "versions": [
            "2.9.1+dfsg-1~exp1ubuntu2",
            "2.12.1+dfsg-1"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2953.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libtorch-test",
                "binary_version": "2.12.1+dfsg-1"
              },
              {
                "binary_name": "libtorch2.12",
                "binary_version": "2.12.1+dfsg-1"
              },
              {
                "binary_name": "python3-torch",
                "binary_version": "2.12.1+dfsg-1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "pytorch",
            "purl": "pkg:deb/ubuntu/pytorch?arch=source&distro=resolute",
            "ecosystem": "Ubuntu:26.04:LTS"
          },
          "versions": [
            "2.6.0+dfsg-7",
            "2.6.0+dfsg-9",
            "2.9.1+dfsg-1~exp1ubuntu2"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2025/UBUNTU-CVE-2025-2953.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "libtorch-test",
                "binary_version": "2.9.1+dfsg-1~exp1ubuntu2"
              },
              {
                "binary_name": "libtorch2.9",
                "binary_version": "2.9.1+dfsg-1~exp1ubuntu2"
              },
              {
                "binary_name": "python3-torch",
                "binary_version": "2.9.1+dfsg-1~exp1ubuntu2"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:56:49.881923639Z",
      "provider": "osv",
      "upstream": [
        "CVE-2025-2953"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2025-2953",
        "https://www.cve.org/CVERecord?id=CVE-2025-2953",
        "https://github.com/pytorch/pytorch/issues/149274",
        "https://github.com/pytorch/pytorch/issues/149274#issue-2923122269",
        "https://vuldb.com/?ctiid.302006",
        "https://vuldb.com/?id.302006",
        "https://vuldb.com/?submit.521279"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2025-2953",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/1/score"
  },
  "source_id": "core-osv",
  "document_id": 356415,
  "published_at": "2025-03-30T16:15:00+00:00"
}