{"id":"CVE-2026-80960","published":"2026-09-11T19:42:27Z","modified":"2026-10-19T08:45:44Z","title":"dm-pcache: validate on-media seg_num against the cache device size","vendor":"Linux","product":"Linux","tier":"tail","description":{"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.00206,"percentile":0.10629,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c","tags":[]},{"url":"https://git.kernel.org/stable/c/e889c0ee81165fc90aad2979b51f930f77895703","tags":[]},{"url":"https://git.kernel.org/stable/c/62d92e45abe9e087370f9fc5d876b95673aced34","tags":[]}],"priority":{"score":2.1,"factors":[{"name":"EPSS percentile","points":2.13}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0, < 91b93fe5cf4d62d5ecc642a6c8f15a3c11b00e3c",">= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0, < e889c0ee81165fc90aad2979b51f930f77895703",">= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0, < 62d92e45abe9e087370f9fc5d876b95673aced34"]},{"vendor":"Linux","product":"Linux","versions":["6.18"]}],"euvd":{"id":"EUVD-2026-76283","exploited":false,"provenance":"source"}}