{"id":"CVE-2026-93201","aliases":["CVE-2026-93201"],"related":[],"kind":"vulnerability","state":"published","title":"dm-pcache: validate seg_id fields from persistent memory","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate seg_id fields from persistent memory\n\ncache_pos_decode(), cache_key_decode() and the last-kset branches of\ncache_replay(), the writeback worker and the GC worker take a cache\nsegment id from the cache device metadata and index cache->segments[]\nwith it without checking it against cache->n_segs. That metadata is only\nCRC-protected with a fixed public seed, so whoever supplies the cache\ndevice on a table load (CAP_SYS_ADMIN) controls the id; an out-of-range\nvalue forms a wild pcache_cache_segment pointer that is dereferenced and\nwritten through -- an out-of-bounds read and write driven by on-disk data.\n\nAdd cache_seg_id_valid() and reject an out-of-range id at each decode\nsite, failing the operation with -EIO instead of indexing past the array.\nBound the id against the initialized-segment count (cache_info.n_segs)\nrather than the physical device total. A forged cache_info.n_segs below\nseg_num otherwise leaves segments[cache_info.n_segs..seg_num) as zeroed\nstructs whose data pointer is NULL, so a forged id in that window would\nstill be dereferenced. A later patch guarantees cache_info.n_segs <=\nseg_num, and a driver-created cache sets the two equal, so valid images\nare unaffected.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\ndm-pcache: validate seg_id fields from persistent memory\n\ncache_pos_decode(), cache_key_decode() and the last-kset branches of\ncache_replay(), the writeback worker and the GC worker take a cache\nsegment id from the cache device metadata and index cache->segments[]\nwith it without checking it against cache->n_segs. That metadata is only\nCRC-protected with a fixed public seed, so whoever supplies the cache\ndevice on a table load (CAP_SYS_ADMIN) controls the id; an out-of-range\nvalue forms a wild pcache_cache_segment pointer that is dereferenced and\nwritten through -- an out-of-bounds read and write driven by on-disk data.\n\nAdd cache_seg_id_valid() and reject an out-of-range id at each decode\nsite, failing the operation with -EIO instead of indexing past the array.\nBound the id against the initialized-segment count (cache_info.n_segs)\nrather than the physical device total. A forged cache_info.n_segs below\nseg_num otherwise leaves segments[cache_info.n_segs..seg_num) as zeroed\nstructs whose data pointer is NULL, so a forged id in that window would\nstill be dereferenced. A later patch guarantees cache_info.n_segs <=\nseg_num, and a driver-created cache sets the two equal, so valid images\nare unaffected.","source":"cvelist"}],"published":"2026-09-17T16:12:22.392Z","modified":"2026-10-19T10:17:10.760Z","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":"96d4b275281b45aacd0f0510fa8bec85d9f7dc5a","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"b4bf8af5e7d7db4c5e179e15017da55857761ac4","status":"affected"},{"type":"git","introduced":"1d57628ff95b32d5cfa8d8f50e07690c161e9cf0","fixed":"90c990a68460d7b5720e5634cf650eccdf0f4098","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.57","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","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/96d4b275281b45aacd0f0510fa8bec85d9f7dc5a","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/b4bf8af5e7d7db4c5e179e15017da55857761ac4","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/90c990a68460d7b5720e5634cf650eccdf0f4098","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-93201","url":"https://www.cve.org/CVERecord?id=CVE-2026-93201","licence":"CVE Terms of Use","modified":"2026-10-19T09:07:13.558Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-93201","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-93201","licence":"Public domain","modified":"2026-10-19T10:17:10.760Z"}],"updatedAt":"2026-11-25T22:59:39.488Z","epss":{"score":0.00119,"percentile":0.01914,"date":"2026-12-02T12:00:21.000Z"}}