Description
In the Linux kernel, the following vulnerability has been resolved: dm-era: fix shadowed superblock leak on take-snap failure metadata_take_snap() bumps the live superblock refcount and then dm_tm_shadow_block() allocates a new block for the metadata snapshot. If the subsequent dm_sm_inc_block() of writeset_tree_root or era_array_root fails, the function only unlocks the clone and returns. The newly allocated shadow block is never returned to the metadata space map, so each failed take-snap permanently leaks one metadata block. Free the clone with dm_sm_dec_block() on those error paths, matching the final step of metadata_drop_snap().
Affected products
Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.
Linux Linux
Default version status: unaffected
eec40579d84873dfb7021eb24c50360f073237c5 to < 54dd21ca945ecc07885012b9f3e8197f091cfba0affectedeec40579d84873dfb7021eb24c50360f073237c5 to < ef00efb6fcaee88f50891279ceced17c614e97f7affectedeec40579d84873dfb7021eb24c50360f073237c5 to < e9fa68b89214bc65af0ef963af7ec3cce9f866e0affectedeec40579d84873dfb7021eb24c50360f073237c5 to < dc731d7fddfd6149f5e88ea080475d18c36d3c64affectedeec40579d84873dfb7021eb24c50360f073237c5 to < d66ceeefb87ddb097b0546bafc581380b816b048affectedeec40579d84873dfb7021eb24c50360f073237c5 to < 36ff918637e3517f732188a3c39dbeae5b9cfb1baffectedeec40579d84873dfb7021eb24c50360f073237c5 to < 6876ca330e741fb8886d12070cb6a7f9cb67257eaffectedeec40579d84873dfb7021eb24c50360f073237c5 to < 39c5aa3bd8ec3912d2cd0b3fe092642b0d2b0713affected
Linux Linux
Default version status: affected
3.15affected0 to < 3.15unaffected5.10.270 to ≤ 5.10.*unaffected5.15.221 to ≤ 5.15.*unaffected6.1.188 to ≤ 6.1.*unaffected6.6.157 to ≤ 6.6.*unaffected6.12.109 to ≤ 6.12.*unaffected6.18.50 to ≤ 6.18.*unaffected7.2.4 to ≤ 7.2.*unaffected7.3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/54dd21ca945ecc07885012b9f3e8197f091cfba0 ↗
- https://git.kernel.org/stable/c/ef00efb6fcaee88f50891279ceced17c614e97f7 ↗
- https://git.kernel.org/stable/c/e9fa68b89214bc65af0ef963af7ec3cce9f866e0 ↗
- https://git.kernel.org/stable/c/dc731d7fddfd6149f5e88ea080475d18c36d3c64 ↗
- https://git.kernel.org/stable/c/d66ceeefb87ddb097b0546bafc581380b816b048 ↗
- https://git.kernel.org/stable/c/36ff918637e3517f732188a3c39dbeae5b9cfb1b ↗
- https://git.kernel.org/stable/c/6876ca330e741fb8886d12070cb6a7f9cb67257e ↗
- https://git.kernel.org/stable/c/39c5aa3bd8ec3912d2cd0b3fe092642b0d2b0713 ↗