{
  "schemaVersion": 1,
  "attribution": [
    {
      "source": "CISA Known Exploited Vulnerabilities",
      "url": "https://www.cisa.gov/known-exploited-vulnerabilities-catalog",
      "licence": "US government work"
    },
    {
      "source": "GitHub Advisory Database",
      "url": "https://github.com/advisories",
      "licence": "CC BY 4.0"
    },
    {
      "source": "Have I Been Pwned",
      "url": "https://haveibeenpwned.com/",
      "licence": "CC BY 4.0"
    },
    {
      "source": "CVE Program (CVE records)",
      "url": "https://www.cve.org/Legal/TermsOfUse",
      "licence": "CVE Terms of Use",
      "notice": "Copyright © 1999-2026, The MITRE Corporation. CVE is a trademark and the CVE logo is a registered trademark of The MITRE Corporation.",
      "terms": "CVE Usage: MITRE hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute Common Vulnerabilities and Exposures (CVE™). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy."
    },
    {
      "source": "FIRST EPSS",
      "url": "https://www.first.org/epss/",
      "licence": "free to use; FIRST requests attribution"
    }
  ],
  "record": {
    "id": "CVE-2026-31786",
    "sourceURL": "https://www.cve.org/CVERecord?id=CVE-2026-31786",
    "idYear": 2026,
    "status": "PUBLISHED",
    "publishedAt": "2026-04-30T10:31:28.293Z",
    "updatedAt": "2026-10-19T19:06:08.809Z",
    "importedAt": "2026-10-24T01:58:02.025Z",
    "snapshot": {
      "id": "cve_2026-10-24_midnight_baseline",
      "at": "2026-10-24T00:00:00.000Z",
      "source": "https://github.com/CVEProject/cvelistV5/releases/tag/cve_2026-10-24_0100Z"
    },
    "facts": {
      "title": "Buffer overflow in drivers/xen/sys-hypervisor.c",
      "summary": "In the Linux kernel, the following vulnerability has been resolved:\n\nBuffer overflow in drivers/xen/sys-hypervisor.c\n\nThe build id returned by HYPERVISOR_xen_version(XENVER_build_id) is\nneither NUL terminated nor a string.\n\nThe first causes a buffer overflow as sprintf in buildid_show will\nread and copy till it finds a NUL.\n\n00000000  f4 91 51 f4 dd 38 9e 9d  65 47 52 eb 10 71 db 50  |..Q..8..eGR..q.P|\n00000010  b9 a8 01 42 6f 2e 32                              |...Bo.2|\n00000017\n\nSo use a memcpy instead of sprintf to have the correct value:\n\n00000000  f4 91 51 f4 dd 00 9e 9d  65 47 52 eb 10 71 db 50  |..Q.....eGR..q.P|\n00000010  b9 a8 01 42                                       |...B|\n00000014\n\n(the above have a hack to embed a zero inside and check it's\nreturned correctly).\n\nThis is XSA-485 / CVE-2026-31786",
      "affected": [
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "unaffected",
          "versions": [
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "e3af585e1728c917682b6a3de9a69b41fb9194d4"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "8288d031a01dbacfde3fc643f7be3d23504de64d"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "f458ba102da97fafca106327086fc95f3fc764cb"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "4b4defd2fce3f966c25adabf46644a85558f1169"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "5c5ff7c7bd15bb536f44b10b3fb5b8408f344d0a"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "d5f59216650c51e5e3fcb7517c825bc8047f60ef"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "52cecff98bda2c51eed1c6ce9d21c5d6268fb19d"
            },
            {
              "version": "84b7625728ea311ea35bdaa0eded53c1c56baeaa",
              "status": "affected",
              "versionType": "git",
              "lessThan": "27fdbab4221b375de54bf91919798d88520c6e28"
            }
          ]
        },
        {
          "vendor": "Linux",
          "product": "Linux",
          "defaultStatus": "affected",
          "versions": [
            {
              "version": "4.13",
              "status": "affected"
            },
            {
              "version": "0",
              "status": "unaffected",
              "versionType": "semver",
              "lessThan": "4.13"
            },
            {
              "version": "5.10.254",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.10.*"
            },
            {
              "version": "5.15.204",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "5.15.*"
            },
            {
              "version": "6.1.170",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.1.*"
            },
            {
              "version": "6.6.137",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.6.*"
            },
            {
              "version": "6.12.85",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.12.*"
            },
            {
              "version": "6.18.26",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "6.18.*"
            },
            {
              "version": "7.0.3",
              "status": "unaffected",
              "versionType": "semver",
              "lessThanOrEqual": "7.0.*"
            },
            {
              "version": "7.1",
              "status": "unaffected",
              "versionType": "original_commit_for_fix",
              "lessThanOrEqual": "*"
            }
          ]
        }
      ]
    }
  }
}