{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "b57180c75c7ebff6613886cb69ef6e283a10358b"
            },
            {
              "fixed": "c787a235deb33be6eda40beee8f561da5fd8cb8c"
            },
            {
              "fixed": "a4741114c9622346c4bbb8cc2bbd88153616ffaf"
            },
            {
              "fixed": "53c998527ffa60f9deda8974a11ad39790684159"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    },
    {
      "package": {
        "ecosystem": "Linux",
        "name": "Kernel"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "6.13.0"
            },
            {
              "fixed": "6.18.14"
            }
          ],
          "type": "ECOSYSTEM"
        },
        {
          "events": [
            {
              "introduced": "6.19.0"
            },
            {
              "fixed": "6.19.4"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45876.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\narm64/gcs: Fix error handling in arch_set_shadow_stack_status()\n\nalloc_gcs() returns an error-encoded pointer on failure, which comes\nfrom do_mmap(), not NULL.\n\nThe current NULL check fails to detect errors, which could lead to using\nan invalid GCS address.\n\nUse IS_ERR_VALUE() to properly detect errors, consistent with the\ncheck in gcs_alloc_thread_stack().",
  "id": "CVE-2026-45876",
  "modified": "2026-07-08T05:36:57.057249444Z",
  "published": "2026-05-27T12:16:43.350Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/53c998527ffa60f9deda8974a11ad39790684159"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/a4741114c9622346c4bbb8cc2bbd88153616ffaf"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/c787a235deb33be6eda40beee8f561da5fd8cb8c"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/45xxx/CVE-2026-45876.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2026-45876"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.5",
  "summary": "arm64/gcs: Fix error handling in arch_set_shadow_stack_status()"
}