{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "9b54e248d2644be71cb394eb85f31ad99e023a05"
            },
            {
              "fixed": "6ca9400d36005ffdca25f80186bea781c7e1dc4c"
            },
            {
              "fixed": "9f0a9e780f02c02d025a190f1885e1d1d73b87bd"
            },
            {
              "fixed": "6644565527c4c5f507088b1c9ddf72de47790b68"
            },
            {
              "fixed": "5867d7e202e09f037cefe77f7af4413c7c0fa088"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.11.0"
            },
            {
              "fixed": "6.12.93"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.35"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "7.0.12"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63939.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\nKVM: SEV: Compute the correct max length of the in-GHCB scratch area\n\nWhen setting the length of the GHCB scratch area, and the area is in the\nGHCB shared buffer, set the effective length of the scratch area to the max\npossible size given the start of the guest-provided pointer, and the end of\nthe shared buffer.\n\nThe code was \"fine\" when first introduced, as KVM doesn't consult the\nlength of the buffer when emulating MMIO, because the passed in @len always\nspecifies the *max* size required.  But for PSC requests, the incoming @len\nis just the minimum length (to process the header), and KVM needs to know\nthe full size of the scratch area to avoid buffer overflows (spoiler alert).\n\nOpportunistically rename @len =\u003e @min_len to better reflect its role.",
  "id": "CVE-2026-63939",
  "modified": "2026-07-22T05:29:51.724520305Z",
  "published": "2026-07-19T14:55:35.743Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/5867d7e202e09f037cefe77f7af4413c7c0fa088"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6644565527c4c5f507088b1c9ddf72de47790b68"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/6ca9400d36005ffdca25f80186bea781c7e1dc4c"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/9f0a9e780f02c02d025a190f1885e1d1d73b87bd"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/63xxx/CVE-2026-63939.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-63939"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.8.0",
  "severity": [
    {
      "score": "CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:H/A:H",
      "type": "CVSS_V3"
    }
  ],
  "summary": "KVM: SEV: Compute the correct max length of the in-GHCB scratch area"
}