Skip to content
Heist/ feed
Back to feed
UnratedFix available

tpm: use try_get_ops() in tpm-space.c

Type: advisorySources: OSV

In the Linux kernel, the following vulnerability has been resolved: tpm: use try_get_ops() in tpm-space.c As part of the series conversion to remove nested TPM operations: https://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/ exposure of the chip->tpm_mutex was removed from much of the upper level code. In this conversion, tpm2_del_space() was missed. This didn't matter much because it's usually called closely after a converted operation, so there's only a very tiny race window where the chip can be removed before the space flushing is done which causes a NULL deref on the mutex. However, there are reports of this window being hit in practice, so fix this by converting tpm2_del_space() to use tpm_try_get_ops(), which performs all the teardown checks before acquring the mutex.

Products
Kernel
Affected versions
Not specified
Fixed versions
5.10.109, 5.15.32, 5.16.18, 5.17.1, 5.4.188
CVEs
CVE-2022-49286
Confirmed fixed CVEs
Not specified
Updated in this feed
8 Nov 2026, 02:55 UTC · Revision 1

Source evidence

tpm: use try_get_ops() in tpm-space.c

core-osv · Original source

Published 26 Feb 2025, 01:56 UTC

In the Linux kernel, the following vulnerability has been resolved: tpm: use try_get_ops() in tpm-space.c As part of the series conversion to remove nested TPM operations: https://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/ exposure of the chip->tpm_mutex was removed from much of the upper level code. In this conversion, tpm2_del_space() was missed. This didn't matter much because it's usually called closely after a converted operation, so there's only a very tiny race window where the chip can be removed before the space flushing is done which causes a NULL deref on the mutex. However, there are reports of this window being hit in practice, so fix this by converting tpm2_del_space() to use tpm_try_get_ops(), which performs all the teardown checks before acquring the mutex.

osv:CVE-2022-49286

Kernel

Fixed versions: 5.4.188, 5.10.109, 5.15.32, 5.16.18, 5.17.1

Complete source record
{
  "id": "63c39d9dedbb6d99736dc999cad42d80b8e9d7a68ae20f55434cc28cf44aeb6e",
  "url": "https://osv.dev/vulnerability/CVE-2022-49286",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "tpm: use try_get_ops() in tpm-space.c",
    "summary": "In the Linux kernel, the following vulnerability has been resolved: tpm: use try_get_ops() in tpm-space.c As part of the series conversion to remove nested TPM operations: https://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/ exposure of the chip->tpm_mutex was removed from much of the upper level code. In this conversion, tpm2_del_space() was missed. This didn't matter much because it's usually called closely after a converted operation, so there's only a very tiny race window where the chip can be removed before the space flushing is done which causes a NULL deref on the mutex. However, there are reports of this window being hit in practice, so fix this by converting tpm2_del_space() to use tpm_try_get_ops(), which performs all the teardown checks before acquring the mutex.",
    "evidence": "osv:CVE-2022-49286",
    "products": [
      {
        "name": {
          "value": "Kernel",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [
          {
            "value": "5.4.188",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.10.109",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.15.32",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.16.18",
            "evidence": "/affected/1/ranges"
          },
          {
            "value": "5.17.1",
            "evidence": "/affected/1/ranges"
          }
        ],
        "affected_versions": []
      }
    ],
    "severity": "unknown",
    "structured": {
      "id": "CVE-2022-49286",
      "aliases": [
        "CVE-2022-49286"
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
              "type": "GIT",
              "events": [
                {
                  "introduced": "4d57856a21ed2abe33412e0526cc84bdcf67ea08"
                },
                {
                  "fixed": "5b1d2561a03e534064b51c50c774657833d3d2cf"
                },
                {
                  "fixed": "95193d12f10a8a088843b25e0f5fe1d83ec6b079"
                },
                {
                  "fixed": "476ddd23f818fb94cf86fb5617f3bb9a7c92113d"
                },
                {
                  "fixed": "eda1662cce964c8a65bb86321f8d9cfa6e9ceaab"
                },
                {
                  "fixed": "ba84f9a48366dcc3cdef978599433efe101dd5bd"
                },
                {
                  "fixed": "fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9"
                }
              ]
            }
          ],
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49286.json"
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "4.12.0"
                },
                {
                  "fixed": "5.4.188"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.5.0"
                },
                {
                  "fixed": "5.10.109"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.11.0"
                },
                {
                  "fixed": "5.15.32"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.16.0"
                },
                {
                  "fixed": "5.16.18"
                }
              ]
            },
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "5.17.0"
                },
                {
                  "fixed": "5.17.1"
                }
              ]
            }
          ],
          "package": {
            "name": "Kernel",
            "ecosystem": "Linux"
          },
          "database_specific": {
            "source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49286.json"
          }
        }
      ],
      "modified": "2026-10-28T02:30:53.423264386Z",
      "provider": "osv",
      "references": [
        "https://git.kernel.org/stable/c/476ddd23f818fb94cf86fb5617f3bb9a7c92113d",
        "https://git.kernel.org/stable/c/5b1d2561a03e534064b51c50c774657833d3d2cf",
        "https://git.kernel.org/stable/c/95193d12f10a8a088843b25e0f5fe1d83ec6b079",
        "https://git.kernel.org/stable/c/ba84f9a48366dcc3cdef978599433efe101dd5bd",
        "https://git.kernel.org/stable/c/eda1662cce964c8a65bb86321f8d9cfa6e9ceaab",
        "https://git.kernel.org/stable/c/fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49286.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-49286",
        "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
      ],
      "provider_metadata": {
        "cna_assigner": "Linux",
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49286.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-49286",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": null
  },
  "source_id": "core-osv",
  "document_id": 521990,
  "published_at": "2025-02-26T01:56:25.566+00:00"
}