{"id":"CVE-2026-80955","aliases":["CVE-2026-80955"],"related":[],"kind":"vulnerability","state":"published","title":"dm-pcache: fix use-after-free and invalid seg operations in kset_replay()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: fix use-after-free and invalid seg operations in kset_replay()\n\nIn kset_replay, when key->seg_gen is stale (key->seg_gen <\nkey->cache_pos.cache_seg->gen), cache_key_put(key) is called but then\nkey->cache_pos.cache_seg is accessed as the argument to cache_seg_get().\nThis is a use-after-free on the freed key memory. Although mempool\nrecycled memory is not immediately reclaimed or overwritten in practice,\nthis is still a potential UAF bug.\n\nAdditionally, for expired invalid keys, setting the cache->seg_map bit\nand calling cache_seg_get() is unreasonable since the corresponding\nsegment data is no longer valid.\n\nFix both issues by moving cache_seg_get() and __set_bit() after the\ngen check, so they only execute for valid keys, and using continue to\nskip invalid keys.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: fix use-after-free and invalid seg operations in kset_replay()\n\nIn kset_replay, when key->seg_gen is stale (key->seg_gen <\nkey->cache_pos.cache_seg->gen), cache_key_put(key) is called but then\nkey->cache_pos.cache_seg is accessed as the argument to cache_seg_get().\nThis is a use-after-free on the freed key memory. Although mempool\nrecycled memory is not immediately reclaimed or overwritten in practice,\nthis is still a potential UAF bug.\n\nAdditionally, for expired invalid keys, setting the cache->seg_map bit\nand calling cache_seg_get() is unreasonable since the corresponding\nsegment data is no longer valid.\n\nFix both issues by moving cache_seg_get() and __set_bit() after the\ngen check, so they only execute for valid keys, and using continue to\nskip invalid keys.","source":"cvelist"}],"published":"2026-09-11T19:42:23.838Z","modified":"2026-10-19T09:17:26.963Z","severity":{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"},"severities":[{"scorer":"Linux","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","score":7.8,"rating":"HIGH"}],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"1894fc7a3bab90143dcd26ef8ee27040ef4a7501","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"f39a3e9cc5946473e16d6f5071b2ee0216c56d06","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"c2e894eac398b258f12fdec73ed6ba081047f7b3","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.18","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.18","status":"unaffected"},{"type":"semver","introduced":"6.18.50","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.4","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/1894fc7a3bab90143dcd26ef8ee27040ef4a7501","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f39a3e9cc5946473e16d6f5071b2ee0216c56d06","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c2e894eac398b258f12fdec73ed6ba081047f7b3","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80955","url":"https://www.cve.org/CVERecord?id=CVE-2026-80955","licence":"CVE Terms of Use","modified":"2026-10-19T08:45:39.156Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80955","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80955","licence":"Public domain","modified":"2026-10-19T09:17:26.963Z"}],"updatedAt":"2026-11-25T22:59:37.992Z","epss":{"score":0.00157,"percentile":0.05122,"date":"2026-12-02T12:00:21.000Z"}}