CVE-2026-53063: dm cache: fix write hang in passthrough mode
From: Greg Kroah-Hartman <[email protected]>
Description
===========
In the Linux kernel, the following vulnerability has been resolved:
dm cache: fix write hang in passthrough mode
The invalidate_remove() function has incomplete logic for handling write hit bios after cache invalidation. It sets up the remapping for the overwrite_bio but then drops it immediately without submission, causing write operations to hang.
Fix by adding a new invalidate_committed() continuation that submits the remapped writes to the cache origin after metadata commit completes, while using the overwrite_endio hook to ensure proper completion sequencing. This maintains existing coherency. Also improve error handling in invalidate_complete() to preserve the original error status instead of using bio_io_error() unconditionally.
The Linux kernel CVE team has assigned CVE-2026-53063 to this issue.
Affected and fixed versions
===========================
Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 6.1.175 with commit 9fa18d0b981776b190ca4632942a7c2174052b78 Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 6.6.141 with commit ecb10c193cbebf5e6984246a9b4ff1f95d45ed87 Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 6.12.91 with commit 64d6519b00be4116d365bd31f33a5e5ce2944c1a Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 6.18.33 with commit b8ace9e96983abb20ccf39edce8a60f1bb0b83d8 Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 7.0.10 with commit 05798d091ebcfb6d68228890e593f209e8ac940d Issue introduced in 4.12 with commit b29d4986d0da1a27cd35917cdb433672f5c95d7f and fixed in 7.1 with commit 4ca8b8bd952df7c3ccdc68af9bd3419d0839a04b
Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.
Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at
https://cve.org/CVERecord/?id=CVE-2026-53063
will be updated if fixes are backported, please check that for the most up to date information about this issue.
Affected files
==============
The file(s) affected by this issue are:
drivers/md/dm-cache-target.c
Mitigation
==========
The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:
https://git.kernel.org/stable/c/9fa18d0b981776b190ca4632942a7c2174052b78 https://git.kernel.org/stable/c/ecb10c193cbebf5e6984246a9b4ff1f95d45ed87 https://git.kernel.org/stable/c/64d6519b00be4116d365bd31f33a5e5ce2944c1a https://git.kernel.org/stable/c/b8ace9e96983abb20ccf39edce8a60f1bb0b83d8 https://git.kernel.org/stable/c/05798d091ebcfb6d68228890e593f209e8ac940d https://git.kernel.org/stable/c/4ca8b8bd952df7c3ccdc68af9bd3419d0839a04b