{"id":"CVE-2022-49286","aliases":["CVE-2022-49286"],"related":[],"kind":"vulnerability","state":"published","title":"tpm: use try_get_ops() in tpm-space.c","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: use try_get_ops() in tpm-space.c\n\nAs part of the series conversion to remove nested TPM operations:\n\nhttps://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/\n\nexposure of the chip->tpm_mutex was removed from much of the upper\nlevel code.  In this conversion, tpm2_del_space() was missed.  This\ndidn't matter much because it's usually called closely after a\nconverted operation, so there's only a very tiny race window where the\nchip can be removed before the space flushing is done which causes a\nNULL deref on the mutex.  However, there are reports of this window\nbeing hit in practice, so fix this by converting tpm2_del_space() to\nuse tpm_try_get_ops(), which performs all the teardown checks before\nacquring the mutex.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ntpm: use try_get_ops() in tpm-space.c\n\nAs part of the series conversion to remove nested TPM operations:\n\nhttps://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/\n\nexposure of the chip->tpm_mutex was removed from much of the upper\nlevel code.  In this conversion, tpm2_del_space() was missed.  This\ndidn't matter much because it's usually called closely after a\nconverted operation, so there's only a very tiny race window where the\nchip can be removed before the space flushing is done which causes a\nNULL deref on the mutex.  However, there are reports of this window\nbeing hit in practice, so fix this by converting tpm2_del_space() to\nuse tpm_try_get_ops(), which performs all the teardown checks before\nacquring the mutex.","source":"cvelist"},{"lang":"es","text":"En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: tpm: uso try_get_ops() en tpm-space.c Como parte de la conversión en serie para eliminar las operaciones TPM anidadas: https://lore.kernel.org/all/20190205224723.19671-1-jarkko.sakkinen@linux.intel.com/ se eliminó la exposición del chip-&gt;tpm_mutex de gran parte del código de nivel superior. En esta conversión, se pasó por alto tpm2_del_space(). Esto no importó mucho porque generalmente se llama poco después de una operación convertida, por lo que solo hay una ventana de ejecución muy pequeña donde se puede quitar el chip antes de que se realice el vaciado de espacio, lo que provoca una desreferencia NULL en el mutex. Sin embargo, hay informes de que esta ventana se alcanza en la práctica, así que solucione esto convirtiendo tpm2_del_space() para usar tpm_try_get_ops(), que realiza todas las comprobaciones de desmontaje antes de adquirir el mutex.","source":"nvd"}],"published":"2025-02-26T01:56:25.566Z","modified":"2026-11-05T20:17:03.257Z","severity":{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"},"severities":[{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:N/I:N/A:H","score":4.7,"rating":"MEDIUM"}],"cwes":["CWE-476"],"affected":[{"ranges":[{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"5b1d2561a03e534064b51c50c774657833d3d2cf","status":"affected"},{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"95193d12f10a8a088843b25e0f5fe1d83ec6b079","status":"affected"},{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"476ddd23f818fb94cf86fb5617f3bb9a7c92113d","status":"affected"},{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"eda1662cce964c8a65bb86321f8d9cfa6e9ceaab","status":"affected"},{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"ba84f9a48366dcc3cdef978599433efe101dd5bd","status":"affected"},{"type":"git","introduced":"4d57856a21ed2abe33412e0526cc84bdcf67ea08","fixed":"fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.12","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.12","status":"unaffected"},{"type":"semver","introduced":"5.4.188","lastAffected":"5.4.*","status":"unaffected"},{"type":"semver","introduced":"5.10.109","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.32","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.18","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.1","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","introduced":"4.12","fixed":"5.4.188"},{"status":"affected","introduced":"5.5","fixed":"5.10.109"},{"status":"affected","introduced":"5.11","fixed":"5.15.32"},{"status":"affected","introduced":"5.16","fixed":"5.16.18"},{"status":"affected","version":"5.17"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/5b1d2561a03e534064b51c50c774657833d3d2cf","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/95193d12f10a8a088843b25e0f5fe1d83ec6b079","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/476ddd23f818fb94cf86fb5617f3bb9a7c92113d","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/eda1662cce964c8a65bb86321f8d9cfa6e9ceaab","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/ba84f9a48366dcc3cdef978599433efe101dd5bd","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/fb5abce6b2bb5cb3d628aaa63fa821da8c4600f9","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-11-05T19:45:02.508Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2022-49286","url":"https://www.cve.org/CVERecord?id=CVE-2022-49286","licence":"CVE Terms of Use","modified":"2026-11-05T19:49:38.355Z"},{"source":"nvd","name":"NVD","id":"CVE-2022-49286","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-49286","licence":"Public domain","modified":"2026-11-05T20:17:03.257Z"}],"updatedAt":"2026-11-25T22:58:20.361Z","epss":{"score":0.00239,"percentile":0.16068,"date":"2026-12-02T12:00:21.000Z"}}