# CVE-2026-80956: dm-pcache: only hand out initialized cache segments

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.20%, higher than 9% of CVEs (2026-12-01)
- Published: 2026-09-11T19:42:24.541Z
- Modified: 2026-10-19T09:17:27.067Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

dm-pcache: only hand out initialized cache segments

get_cache_segment() scans the segment map up to cache->n_segs, the
physical device segment count, but cache_segs_init() only initializes
the first cache_info->n_segs segments. A crafted image with
cache_info->n_segs smaller than the device count leaves the remaining
pcache_cache_segment structs zeroed (segment.data == NULL), and the
allocator can hand one to cache_kset_close(), which writes through the
returned segment's data pointer with no NULL check.

Bound the allocator's search to cache_info->n_segs so only initialized
segments are ever returned. A conforming cache sets n_segs equal to the
device segment count, so this rejects nothing legitimate.

(As written by CVE List.)

## Affected

- Linux Linux: from 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 before 83e3116283ed2c6a6a1fa662862a4b4d7d2701a2; from 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 before 692037ae1a7cfacc2f0c22c6e034c1dfee0e553f; from 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 before 2df0fc042e299bae3c0f60ea5cd2af9285658e9f; 6.18 (not affected: before 6.18; from 6.18.50 up to 6.18.*; from 7.2.4 up to 7.2.*; from 7.3 up to *)

## References

- <https://git.kernel.org/stable/c/83e3116283ed2c6a6a1fa662862a4b4d7d2701a2>
- <https://git.kernel.org/stable/c/692037ae1a7cfacc2f0c22c6e034c1dfee0e553f>
- <https://git.kernel.org/stable/c/2df0fc042e299bae3c0f60ea5cd2af9285658e9f>

## Sources

- CVE List: [CVE-2026-80956](https://www.cve.org/CVERecord?id=CVE-2026-80956), CVE Terms of Use, modified 2026-10-19
- NVD: [CVE-2026-80956](https://nvd.nist.gov/vuln/detail/CVE-2026-80956), Public domain, modified 2026-10-19

---

Page: https://cve.day/CVE-2026-80956 · Whole record: https://cve.day/CVE-2026-80956.json · Rebuilt by cve.day 2026-11-25T22:59:37.992Z
