{
  "id": "CVE-2025-21893",
  "url": "https://poc.griffinguard.io/cve/CVE-2025-21893",
  "published_at": "2025-03-31T19:41:46.137Z",
  "title": "keys: Fix UAF in key_put()",
  "vendor": "Linux",
  "product": "Linux",
  "cvss": {
    "score": 7.8,
    "source": "cisa-adp",
    "vector": "CVSS:3.1/AV:L/AC:L/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: Fix UAF in key_put()\n\nOnce a key's reference count has been reduced to 0, the garbage collector\nthread may destroy it at any time and so key_put() is not allowed to touch\nthe key after that point.  The most key_put() is normally allowed to do is\nto touch key_gc_work as that's a static global variable.\n\nHowever, in an effort to speed up the reclamation of quota, this is now\ndone in key_put() once the key's usage is reduced to 0 - but now the code\nis looking at the key after the deadline, which is forbidden.\n\nFix this by using a flag to indicate that a key can be gc'd now rather than\nlooking at the key's refcount in the garbage collector.",
  "cwe": "CWE-416",
  "cpes": [
    "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc1:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc2:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc3:*:*:*:*:*:*",
    "cpe:2.3:o:linux:linux_kernel:6.14:rc4:*:*:*:*:*:*"
  ],
  "cvss_by_source": {
    "cisa-adp": 7.8,
    "cna": 7.8
  },
  "repos": [],
  "remediation": {
    "affected": [
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "\u003e= 9578e327b2b4935a25d49e3891b8fcca9b6c10c6, \u003c 6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3",
          "\u003e= 9578e327b2b4935a25d49e3891b8fcca9b6c10c6, \u003c f6a3cf833188e897c97028cd7b926e3f2cb1a8c0",
          "\u003e= 9578e327b2b4935a25d49e3891b8fcca9b6c10c6, \u003c 75845c6c1a64483e9985302793dbf0dfa5f71e32"
        ],
        "fixed_in": [
          "6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3",
          "f6a3cf833188e897c97028cd7b926e3f2cb1a8c0",
          "75845c6c1a64483e9985302793dbf0dfa5f71e32"
        ]
      },
      {
        "vendor": "Linux",
        "product": "Linux",
        "ranges": [
          "6.10"
        ],
        "fixed_in": [
          "0",
          "6.12.21",
          "6.13.9",
          "6.14"
        ]
      }
    ],
    "upgrade": [
      "Upgrade Linux to 6afe2ea2daec156bd94ad2c5a6f4f4c48240dcd3 or f6a3cf833188e897c97028cd7b926e3f2cb1a8c0 or 75845c6c1a64483e9985302793dbf0dfa5f71e32 or later.",
      "Upgrade Linux to 0 or 6.12.21 or 6.13.9 or 6.14 or later."
    ]
  },
  "exploit_refs": [],
  "hunt_profile": [],
  "rules": []
}
