{
  "affected": [
    {
      "ranges": [
        {
          "events": [
            {
              "introduced": "7ca110f2679b7d1f3ac1afc90e6ffbf0af3edf0d"
            },
            {
              "fixed": "b9afbb9a0c734197c59c43610071041044bf1562"
            },
            {
              "fixed": "7dc357d343f134bf59815ff6098b93503ec8a23b"
            }
          ],
          "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
          "type": "GIT"
        }
      ]
    }
  ],
  "database_specific": {
    "cna_assigner": "Linux",
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json"
  },
  "details": "In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: Use auth only after NULL check in tpm_buf_check_hmac_response()\n\nDereference auth after NULL check in tpm_buf_check_hmac_response().\nOtherwise, unless tpm2_sessions_init() was called, a call can cause NULL\ndereference, when TCG_TPM2_HMAC is enabled.\n\n[jarkko: adjusted the commit message.]",
  "id": "CVE-2024-42255",
  "modified": "2026-04-01T23:08:29.107285838Z",
  "published": "2024-08-08T08:49:15.078Z",
  "references": [
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/7dc357d343f134bf59815ff6098b93503ec8a23b"
    },
    {
      "type": "WEB",
      "url": "https://git.kernel.org/stable/c/b9afbb9a0c734197c59c43610071041044bf1562"
    },
    {
      "type": "ADVISORY",
      "url": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/42xxx/CVE-2024-42255.json"
    },
    {
      "type": "ADVISORY",
      "url": "https://nvd.nist.gov/vuln/detail/CVE-2024-42255"
    },
    {
      "type": "PACKAGE",
      "url": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
    }
  ],
  "schema_version": "1.7.3",
  "summary": "tpm: Use auth only after NULL check in tpm_buf_check_hmac_response()"
}