{"id":"CVE-2026-80961","aliases":["CVE-2026-80961"],"related":[],"kind":"vulnerability","state":"published","title":"dm-pcache: validate kset key_num and intra-segment bounds","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate kset key_num and intra-segment bounds\n\nTwo more fields decoded from the cache device go unbounded. The kset\nkey_num drives cache_kset_crc() and the replay loop in cache_replay(),\nthe writeback worker and the GC worker, but only the magic and a\nfixed-seed CRC are checked first, so a non-last kset whose key_num exceeds\nthe PCACHE_KSET_KEYS_MAX buffer reads past its end before the CRC compare.\nA key's intra-segment offset and length in cache_key_decode() are taken\nverbatim, so a key running past its segment is replayed into the cache\ntree and the data CRC check and every later read hit then copy adjacent\npersistent memory into the caller's bio -- an out-of-bounds read that\nleaks to user space. Both fields are controlled by whoever supplies the\ncache device (CAP_SYS_ADMIN); the CRC seed is public.\n\nAdd kset_onmedia_valid() to bound key_num before any kset read, and\nreject a key whose offset plus length, computed in 64 bits, exceeds the\nsegment data_size. Valid metadata is unaffected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate kset key_num and intra-segment bounds\n\nTwo more fields decoded from the cache device go unbounded. The kset\nkey_num drives cache_kset_crc() and the replay loop in cache_replay(),\nthe writeback worker and the GC worker, but only the magic and a\nfixed-seed CRC are checked first, so a non-last kset whose key_num exceeds\nthe PCACHE_KSET_KEYS_MAX buffer reads past its end before the CRC compare.\nA key's intra-segment offset and length in cache_key_decode() are taken\nverbatim, so a key running past its segment is replayed into the cache\ntree and the data CRC check and every later read hit then copy adjacent\npersistent memory into the caller's bio -- an out-of-bounds read that\nleaks to user space. Both fields are controlled by whoever supplies the\ncache device (CAP_SYS_ADMIN); the CRC seed is public.\n\nAdd kset_onmedia_valid() to bound key_num before any kset read, and\nreject a key whose offset plus length, computed in 64 bits, exceeds the\nsegment data_size. Valid metadata is unaffected.","source":"cvelist"}],"published":"2026-09-11T19:42:27.847Z","modified":"2026-10-19T09:17:27.613Z","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":"d8caf96040a06096276ab72f5e1e8547c014c564","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"5ac38f4b4862fad6e7270fde5c3356a822ce74ca","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"f11deb032fd84081e7831cffcba895d893054a22","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/d8caf96040a06096276ab72f5e1e8547c014c564","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5ac38f4b4862fad6e7270fde5c3356a822ce74ca","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/f11deb032fd84081e7831cffcba895d893054a22","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80961","url":"https://www.cve.org/CVERecord?id=CVE-2026-80961","licence":"CVE Terms of Use","modified":"2026-10-19T08:45:45.271Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80961","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80961","licence":"Public domain","modified":"2026-10-19T09:17:27.613Z"}],"updatedAt":"2026-11-25T22:59:37.993Z","epss":{"score":0.00162,"percentile":0.05575,"date":"2026-12-01T12:00:22.000Z"}}