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.
https://git.kernel.org/stable/c/663ee2f3824a505b983162de44134e789f8230da
https://git.kernel.org/stable/c/5311dfc5cd70edccd110257e3f30b2c1dcd3768d
https://git.kernel.org/stable/c/16c3b3a326e70f246a605b3dc27b7f83ba4743e3