{"id":"CVE-2026-80960","aliases":["CVE-2026-80960"],"related":[],"kind":"vulnerability","state":"published","title":"dm-pcache: validate on-media seg_num against the cache device size","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate on-media seg_num against the cache device size\n\nseg_num is read from the crc32c-only superblock, so whoever supplies the\ncache device on a table load (CAP_SYS_ADMIN) controls it. It sizes\ncache->segments[] and is the value every later on-media segment id is\nbounded against, yet it is never checked against the device. Because\ncache_dev->mapping is the direct map of the pmem, CACHE_DEV_SEGMENT() for\na segment id past the device resolves to ordinary kernel memory beyond\nthe mapping; a new-cache init reaching such an id has cache_seg_init() ->\ncache_dev_zero_range() memset() 12 KiB over that memory -- an\nout-of-bounds write into the kernel heap at table load. A zero seg_num\nmakes the segment allocations ZERO_SIZE_PTR.\n\nReject a seg_num that is zero, larger than the device can hold, or larger\nthan PCACHE_CACHE_SEGS_MAX before it is used.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate on-media seg_num against the cache device size\n\nseg_num is read from the crc32c-only superblock, so whoever supplies the\ncache device on a table load (CAP_SYS_ADMIN) controls it. It sizes\ncache->segments[] and is the value every later on-media segment id is\nbounded against, yet it is never checked against the device. Because\ncache_dev->mapping is the direct map of the pmem, CACHE_DEV_SEGMENT() for\na segment id past the device resolves to ordinary kernel memory beyond\nthe mapping; a new-cache init reaching such an id has cache_seg_init() ->\ncache_dev_zero_range() memset() 12 KiB over that memory -- an\nout-of-bounds write into the kernel heap at table load. A zero seg_num\nmakes the segment allocations ZERO_SIZE_PTR.\n\nReject a seg_num that is zero, larger than the device can hold, or larger\nthan PCACHE_CACHE_SEGS_MAX before it is used.","source":"cvelist"}],"published":"2026-09-11T19:42:27.182Z","modified":"2026-10-19T09:17:27.510Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"e889c0ee81165fc90aad2979b51f930f77895703","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"62d92e45abe9e087370f9fc5d876b95673aced34","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/91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/e889c0ee81165fc90aad2979b51f930f77895703","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/62d92e45abe9e087370f9fc5d876b95673aced34","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-80960","url":"https://www.cve.org/CVERecord?id=CVE-2026-80960","licence":"CVE Terms of Use","modified":"2026-10-19T08:45:44.213Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-80960","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-80960","licence":"Public domain","modified":"2026-10-19T09:17:27.510Z"}],"updatedAt":"2026-11-25T22:59:37.993Z","epss":{"score":0.00198,"percentile":0.10038,"date":"2026-12-01T12:00:22.000Z"}}