{
  "id": "CVE-2026-99224",
  "url": "https://poc.griffinguard.io/cve/CVE-2026-99224",
  "published_at": "2026-11-02T16:06:34.014Z",
  "title": "keys: Protect the type name while describing a key",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7,
    "source": "cna",
    "vector": "CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:H/I:H/A:H"
  },
  "kev": {
    "in_kev": false,
    "added_at": null,
    "days_after_publication": null
  },
  "first_poc": null,
  "poc_repo_count": 0,
  "exploit_count": 0,
  "suspicious_repo_count": 0,
  "edge_device": null,
  "description": "In the Linux kernel, the following vulnerability has been resolved:\n\nkeys: Protect the type name while describing a key\n\nkeyctl_describe_key() must keep the key type's name alive until\nkasprintf() has consumed it. The retained key reference keeps the key\nand its description alive, but does not pin the module providing its\ntype. The name is passed to kasprintf() without holding key-\u003esem.\n\nkvasprintf() uses the saved name pointer in two formatting passes, with\na GFP_KERNEL allocation between them. With AF_RXRPC=m, a task that\npasses View permission before type retirement can overlap a privileged\nmodule unload in this order:\n\n1. KEYCTL_DESCRIBE looks up the key, saves key-\u003etype-\u003ename in the\n   kasprintf() arguments and completes the first formatting pass.\n2. While the formatter is delayed before its second pass,\n   af_rxrpc_exit() calls unregister_key_type(), which removes the type\n   from the registry and waits for key_gc_keytype().\n3. The collector takes key-\u003esem for writing, retypes the retained key\n   to key_type_dead and completes retirement. Unregistration and module\n   exit return, allowing free_module() to release the type and name.\n4. The formatter resumes its second pass and reads the saved name from\n   released module storage, which can fault in string().\n\nHold key-\u003esem for reading across kasprintf(). The collector then cannot\nretype the key or complete retirement until both formatting passes have\nfinished. If retirement wins the lock first, formatting uses the core\nkey_type_dead name instead. Release the semaphore immediately after\nkasprintf(), including on allocation failure, before copying to\nuserspace.\n\nOops report as below:\n\n    BUG: unable to handle page fault for address: fffffbfff8054794\n    #PF: supervisor read access in kernel mode\n    #PF: error_code(0x0000) - not-present page\n    RIP: 0010:string+0x23f/0x470\n    Call Trace:\n     vsnprintf+0x330/0x1110",
  "cvss_by_source": {
    "cna": 7
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c 19c4de819e52b7f606468fbfe4fcef4e812e2777",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c a49e6c9a1a5b3457c946a8efb616ce13b4ca8194",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c 916667df7695366f23cfaf365b5840b228cc4b2e",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c dddd3a1ab7d12ee163477918ff6eb943361db4fe",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c 3c3cfd9e262afc9558c38f8cec57f09d10988546",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c 6b613747f7ea309ada5b8d05b55398c338f7a968",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c dea367df18e3a4faac393e3a4e818ee03af89b19",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c 0461bc8f91116aae4a020e15f4e1c1fd535ab35e",
          "\u003e= aa9d4437893f7e015ce5b6d6c443a9ba92c8a2e7, \u003c fced7238b7e80cf8aa688d5af976e4aa6e33c329"
        ],
        "fixed_in": [
          "19c4de819e52b7f606468fbfe4fcef4e812e2777",
          "a49e6c9a1a5b3457c946a8efb616ce13b4ca8194",
          "916667df7695366f23cfaf365b5840b228cc4b2e",
          "dddd3a1ab7d12ee163477918ff6eb943361db4fe",
          "3c3cfd9e262afc9558c38f8cec57f09d10988546",
          "6b613747f7ea309ada5b8d05b55398c338f7a968",
          "dea367df18e3a4faac393e3a4e818ee03af89b19",
          "0461bc8f91116aae4a020e15f4e1c1fd535ab35e",
          "fced7238b7e80cf8aa688d5af976e4aa6e33c329"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "3.18"
        ],
        "fixed_in": [
          "0",
          "5.10.273",
          "5.15.224",
          "6.1.191",
          "6.6.161",
          "6.12.115",
          "6.18.60",
          "7.2.14",
          "7.3.1",
          "7.4-rc1"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 19c4de819e52b7f606468fbfe4fcef4e812e2777 or a49e6c9a1a5b3457c946a8efb616ce13b4ca8194 or 916667df7695366f23cfaf365b5840b228cc4b2e or dddd3a1ab7d12ee163477918ff6eb943361db4fe or 3c3cfd9e262afc9558c38f8cec57f09d10988546 or 6b613747f7ea309ada5b8d05b55398c338f7a968 or dea367df18e3a4faac393e3a4e818ee03af89b19 or 0461bc8f91116aae4a020e15f4e1c1fd535ab35e or fced7238b7e80cf8aa688d5af976e4aa6e33c329 or later.",
      "Upgrade Linux to 0 or 5.10.273 or 5.15.224 or 6.1.191 or 6.6.161 or 6.12.115 or 6.18.60 or 7.2.14 or 7.3.1 or 7.4-rc1 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
