CVE-2026-80957: dm-pcache: detect a cycle in the last-kset chain during replay
In the Linux kernel, the following vulnerability has been resolved:
dm-pcache: detect a cycle in the last-kset chain during replay
cachereplay() follows the on-media last-kset chain by nextcachesegid with no condresched(). A forged chain that points back into a segment it has already visited makes the replay loop follow it forever.
Cap the last-kset hops at cache->nsegs; a valid chain visits each segment at most once.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
ubuntu/linux-hwe-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42~24.04.1 - Upgrade
Upgrade
ubuntu/linux-riscv-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1~24.04.1 - Upgrade
Upgrade
ubuntu/linuxto a version that resolves this vulnerability.Fixed in 7.0.0-42.42 - Upgrade
Upgrade
ubuntu/linux-awsto a version that resolves this vulnerability.Fixed in 7.0.0-1016.17 - Upgrade
Upgrade
ubuntu/linux-gcpto a version that resolves this vulnerability.Fixed in 7.0.0-1016.18 - Upgrade
Upgrade
ubuntu/linux-ibmto a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oem-7.0to a version that resolves this vulnerability.Fixed in 7.0.0-1017.17 - Upgrade
Upgrade
ubuntu/linux-oracleto a version that resolves this vulnerability.Fixed in 7.0.0-1015.16 - Upgrade
Upgrade
ubuntu/linux-riscvto a version that resolves this vulnerability.Fixed in 7.0.0-42.42.1
Event History
Frequently Asked Questions
Which systems are exposed?
Systems using the Linux kernel dm-pcache component are exposed when cache replay processes on-media last-kset metadata.
What does exploitation require?
An attacker needs to forge the on-media last-kset chain so that next_cache_seg_id points to a cache segment that has already been visited.
What is the impact of a forged chain?
During cache_replay(), the kernel can follow the cyclic chain indefinitely, causing the replay loop not to complete.