dm-pcache: detect a cycle in the last-kset chain during replay
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
6.18.507.2.47.3In 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.
From the CVE record · Linux
The Linux kernel’s dm-pcache replay can loop indefinitely when an on-media last-kset chain points back to a segment already visited. This requires a forged chain to be present when replay runs; the input does not specify authentication or user-interaction requirements.
Engineers running Linux kernels with dm-pcache should check whether their kernel is affected; affected versions are not specified.