---
id: CVE-2026-80957
title: 'dm-pcache: detect a cycle in the last-kset chain during replay'
summary: |-
  In the Linux kernel, the following vulnerability has been resolved:

  dm-pcache: detect a cycle in the last-kset chain during replay

  cache_replay() follows the on-media last-kset chain by next_cache_seg_id
  with no cond_resched(). A forge…
severity: medium
cvss: 5.5
cvssVector: 'CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H'
cvssSource: vendor
cwe:
  - CWE-835
vendor: Linux
product: Linux
affected:
  - >-
    Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 <
    663ee2f3824a505b983162de44134e789f8230da
  - >-
    Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 <
    5311dfc5cd70edccd110257e3f30b2c1dcd3768d
  - >-
    Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 <
    16c3b3a326e70f246a605b3dc27b7f83ba4743e3
  - Linux 6.18
published: '2026-09-11'
updated: '2026-10-19'
sourceUpdated: '2026-10-19T08:45:41.225Z'
source: CVEORG
sourceUrl: 'https://www.cve.org/CVERecord?id=CVE-2026-80957'
references:
  - url: 'https://git.kernel.org/stable/c/663ee2f3824a505b983162de44134e789f8230da'
  - url: 'https://git.kernel.org/stable/c/5311dfc5cd70edccd110257e3f30b2c1dcd3768d'
  - url: 'https://git.kernel.org/stable/c/16c3b3a326e70f246a605b3dc27b7f83ba4743e3'
  - url: >-
      https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80957.json
  - url: 'https://access.redhat.com/security/cve/CVE-2026-80957'
  - url: 'https://bugzilla.redhat.com/show_bug.cgi?id=2532037'
  - url: 'https://www.cve.org/CVERecord?id=CVE-2026-80957'
  - url: 'https://nvd.nist.gov/vuln/detail/CVE-2026-80957'
  - url: >-
      https://git.kernel.org/pub/scm/linux/security/vulns.git/plain/cve/published/2026/CVE-2026-80957.mbox
tags:
  - cve.org
  - csaf
  - vex
  - red-hat
epss: 0.00206
epssPercentile: 0.10629
ingestedAt: '2026-09-14T00:35:28.532Z'
---

## Overview

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

dm-pcache: detect a cycle in the last-kset chain during replay

cache_replay() follows the on-media last-kset chain by next_cache_seg_id
with no cond_resched(). 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->n_segs; a valid chain visits each segment
at most once.

## Affected

- `Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 < 663ee2f3824a505b983162de44134e789f8230da`
- `Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 < 5311dfc5cd70edccd110257e3f30b2c1dcd3768d`
- `Linux >= 1d57628ff95b32d5cfa8d8f50e07690c161e9cf0 < 16c3b3a326e70f246a605b3dc27b7f83ba4743e3`
- `Linux 6.18`

## Remediation

Refer to the linked advisories for vendor-supplied fixes and affected version ranges.

## Vendor advisories

- **Red Hat VEX** · Moderate · updated 2026-09-14 · [vex](https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-80957.json)
