dm-pcache: bound the logical key offset from persistent memory
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: bound the logical key offset from persistent memory
cache_key_decode() takes a key's logical off from the cache device and later indexes req_key_tree->subtrees[] by it in get_subtree(). An off past the device forms a subtree pointer outside the array, which rb_insert() writes through during replay.
Reject a key of zero length, or whose off+len (computed in 64 bits) exceeds the device size, before it is used.
From the CVE record · Linux
In Linux kernel dm-pcache, a key read from the cache device can have a logical offset beyond the device, causing an out-of-bounds write during replay. This requires an invalid key on the cache device; the input does not specify how an attacker could place one there or whether authentication or user interaction is required.
Engineers running Linux kernels with dm-pcache should check their versions; affected versions are not specified.