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

Published Sep 11, 2026
·
Updated

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

dm-pcache: only hand out initialized cache segments

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

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

Affected Software

1 affected component
Linux Linux kernel

Event History

Sep 11, 2026
CVE Published
via MITRE·07:42 PM
Data Sourced
via MITRE·07:42 PM
Description

Frequently Asked Questions

1

What conditions are required to trigger this issue?

The system must use dm-pcache with a crafted cache image whose cache_info->n_segs value is smaller than the physical device segment count. This leaves some segment structures uninitialized, allowing the allocator to return a segment with a NULL data pointer.

2

Are normally configured cache images affected?

A conforming cache image sets n_segs equal to the device segment count. The fix restricts allocation to initialized segments and does not reject legitimate conforming caches.

3

What is the likely consequence if a vulnerable system processes a crafted image?

cache_kset_close() can write through the uninitialized segment's NULL data pointer because it performs no NULL check. The provided data does not specify the resulting impact beyond that invalid write.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203