dm-pcache: reject a kset that overruns its segment
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.527.2.107.3In the Linux kernel, the following vulnerability has been resolved:
dm-pcache: reject a kset that overruns its segment
cache_replay(), the writeback worker and the GC worker read a kset of get_kset_onmedia_size() bytes and advance the position by it. A forged key_num makes that size exceed the segment's remaining space, so the advance walks past the segment and trips the cache_pos_advance() BUG_ON.
Reject a kset whose on-media size exceeds cache_seg_remain() before use.
From the CVE record · Linux
The Linux kernel's dm-pcache can read a kset whose forged key count makes its calculated size exceed the remaining segment space. When cache replay, writeback, or garbage collection processes that kset, advancing past the segment triggers a BUG_ON and crashes the kernel. The input does not specify how an attacker could supply the forged kset or whether authentication or user interaction is required.
Engineers running Linux kernels with dm-pcache should check their installations; affected versions are not specified.