CVE-2026-80955: dm-pcache: fix use-after-free and invalid seg operations in kset_replay()

Published Sep 11, 2026
·
Updated

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

dm-pcache: fix use-after-free and invalid seg operations in ksetreplay()

In ksetreplay, when key->seggen is stale (key->seggen < key->cachepos.cacheseg->gen), cachekeyput(key) is called but then key->cachepos.cacheseg is accessed as the argument to cachesegget(). This is a use-after-free on the freed key memory. Although mempool recycled memory is not immediately reclaimed or overwritten in practice, this is still a potential UAF bug.

Additionally, for expired invalid keys, setting the cache->segmap bit and calling cachesegget() is unreasonable since the corresponding segment data is no longer valid.

Fix both issues by moving cachesegget() and setbit() after the gen check, so they only execute for valid keys, and using continue to skip invalid keys.

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

Which systems are exposed to this issue?

The affected component is dm-pcache in the Linux kernel. Exposure therefore depends on whether dm-pcache is present and in use; the provided information does not identify affected kernel versions or configurations.

2

What condition triggers the vulnerable path?

The issue occurs in kset_replay() when a key has a stale segment generation, meaning key->seg_gen is less than key->cache_pos.cache_seg->gen. Expired invalid keys can also reach inappropriate segment-map and segment-reference operations before the fix.

3

How can administrators determine whether the fix is present?

Check the kernel source or applied stable patches for the referenced changes. The fix moves cache_seg_get() and __set_bit() until after the generation check and skips invalid keys with continue.

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