CVE-2026-80960: dm-pcache: validate on-media seg_num against the cache device size

Published Sep 11, 2026
·
Updated

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

dm-pcache: validate on-media segnum against the cache device size

segnum is read from the crc32c-only superblock, so whoever supplies the cache device on a table load (CAPSYSADMIN) controls it. It sizes cache->segments[] and is the value every later on-media segment id is bounded against, yet it is never checked against the device. Because cachedev->mapping is the direct map of the pmem, CACHEDEVSEGMENT() for a segment id past the device resolves to ordinary kernel memory beyond the mapping; a new-cache init reaching such an id has cacheseginit() -> cachedevzerorange() memset() 12 KiB over that memory -- an out-of-bounds write into the kernel heap at table load. A zero segnum makes the segment allocations ZEROSIZEPTR.

Reject a segnum that is zero, larger than the device can hold, or larger than PCACHECACHESEGSMAX before it is used.

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

Who can trigger this issue?

An attacker needs CAP_SYS_ADMIN and must be able to supply a cache device when loading a device-mapper table. The vulnerable seg_num value is read from that cache device's CRC32C-only superblock.

2

What is the impact of a malicious cache-device superblock?

An oversized seg_num can cause initialization to resolve segment addresses beyond the direct-mapped persistent-memory device and perform a 12 KiB memset into kernel heap memory during table load. A zero seg_num can also cause segment allocations to use ZERO_SIZE_PTR.

3

What values should be rejected when assessing a fix or mitigation?

seg_num must be rejected before use if it is zero, exceeds the number of segments the cache device can hold, or exceeds PCACHE_CACHE_SEGS_MAX.

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