Skip to content
Heist/ feed
Back to feed
HighFix available

drm/amdkfd: fix 32-bit overflow in CWSR total size calculation

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix 32-bit overflow in CWSR total size calculation total_cwsr_size was computed in 32-bit before being used as a BO/SVM allocation size. With large ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count, the product can wrap, yielding an undersized CWSR save area that firmware later overruns. Promote total_cwsr_size to u64 and use check_add_overflow()/ check_mul_overflow() in both kfd_queue_acquire_buffers() and kfd_queue_release_buffers(). (cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608)

Products
Kernel
Affected versions
Not specified
Fixed versions
6.12.101, 6.18.42, 7.1.6
CVEs
CVE-2026-68257
Confirmed fixed CVEs
Not specified
Updated in this feed
7 Nov 2026, 13:23 UTC · Revision 1

Source evidence

drm/amdkfd: fix 32-bit overflow in CWSR total size calculation

core-osv · Original source

Published 10 Aug 2026, 12:01 UTC

In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix 32-bit overflow in CWSR total size calculation total_cwsr_size was computed in 32-bit before being used as a BO/SVM allocation size. With large ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count, the product can wrap, yielding an undersized CWSR save area that firmware later overruns. Promote total_cwsr_size to u64 and use check_add_overflow()/ check_mul_overflow() in both kfd_queue_acquire_buffers() and kfd_queue_release_buffers(). (cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608)

osv:CVE-2026-68257

Kernel

Fixed versions: 6.12.101, 6.18.42, 7.1.6

Complete source record
{
  "id": "801ad5ccc70729a588d3cf97064886db5c5df74f9d58ae1b9ce4d8b4d3273fcd",
  "url": "https://osv.dev/vulnerability/CVE-2026-68257",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "drm/amdkfd: fix 32-bit overflow in CWSR total size calculation",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: drm/amdkfd: fix 32-bit overflow in CWSR total size calculation total_cwsr_size was computed in 32-bit before being used as a BO/SVM allocation size. With large ctx_save_restore_area_size and debug_memory_size multiplied by the XCC count, the product can wrap, yielding an undersized CWSR save area that firmware later overruns. Promote total_cwsr_size to u64 and use check_add_overflow()/ check_mul_overflow() in both kfd_queue_acquire_buffers() and kfd_queue_release_buffers(). (cherry picked from commit 319f7e13423ae3f486b9aea82f9ad2d6af0ee608)",
    "evidence": "osv:CVE-2026-68257",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "6.12.101",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "6.18.42",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "7.1.6",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "high",
    "structured": {
      "id": "CVE-2026-68257",
      "aliases": [
        "CVE-2026-68257"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "325aa07165394b8e866ffe9ec1d4c99d9195b2f2"
                },
                {
                  "fixed": "b88ffe6593607364a8c06a48c6f29e55437cdf8e"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "d15deafab5d722afb9e2f83c5edcdef9d9d98bd1"
                },
                {
                  "fixed": "abce3276c57e36c955627307469b9f009057a467"
                },
                {
                  "fixed": "865532d54eb57b660b1cb1b0e1755776ce21b849"
                },
                {
                  "fixed": "2b0386d4293920e690c0e017708f999b93cc729b"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.12.59"
                },
                {
                  "fixed": "6.12.101"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "6.17.9"
                },
                {
                  "fixed": "6.18"
                }
              ]
            },
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "63600103d2ac5c09fdeec5b931b396e4e0efd5d8"
                }
              ]
            }
          ],
          "versions": [
            "v6.12.100",
            "v6.12.99",
            "v6.12.98",
            "v6.12.97",
            "v6.12.96",
            "v6.12.95",
            "v6.12.94",
            "v6.12.93",
            "v6.12.92",
            "v6.12.91",
            "v6.12.90",
            "v6.12.89",
            "v6.12.88",
            "v6.12.87",
            "v6.12.86",
            "v6.12.85",
            "v6.12.84",
            "v6.12.83",
            "v6.12.82",
            "v6.12.81",
            "v6.12.80",
            "v6.12.79",
            "v6.12.78",
            "v6.12.77",
            "v6.12.76",
            "v6.12.75",
            "v6.12.74",
            "v6.12.73",
            "v6.12.72",
            "v6.12.71",
            "v6.12.70",
            "v6.12.69",
            "v6.12.68",
            "v6.12.67",
            "v6.12.66",
            "v6.12.65",
            "v6.12.64",
            "v6.12.63",
            "v6.12.62",
            "v6.12.61",
            "v6.12.60",
            "v6.12.59",
            "v6.17.13",
            "v6.17.12",
            "v6.17.11",
            "v6.17.10",
            "v6.17.9"
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68257.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "6.12.101"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.13.0"
                },
                {
                  "fixed": "6.18.42"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "6.18.0"
                },
                {
                  "fixed": "7.1.6"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-68257.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:50.709633471Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/2b0386d4293920e690c0e017708f999b93cc729b",
        "https://git.kernel.org/stable/c/865532d54eb57b660b1cb1b0e1755776ce21b849",
        "https://git.kernel.org/stable/c/abce3276c57e36c955627307469b9f009057a467",
        "https://git.kernel.org/stable/c/b88ffe6593607364a8c06a48c6f29e55437cdf8e",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68257.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2026-68257",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/68xxx/CVE-2026-68257.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2026-68257",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 519439,
  "published_at": "2026-08-10T12:01:30.547+00:00"
}