CVE-2026-143027: dm cache: reject kcopyd client destory if it setup failed
dm cache: reject kcopyd client destory if it setup failed
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.276 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.227 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.120 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.66 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.7 - Compensating control
Set `cache->copier` to NULL when kcopyd rescuer creation fails, so cleanup does not destroy an invalid kcopyd client.
Event History
Frequently Asked Questions
What condition triggers the crash path?
The path is triggered when dm-cache creates a kcopyd client and creation of the rescuer kthread fails, leaving cache->copier set to -EINTR. Cache creation then enters cleanup, which attempts to destroy that invalid client.
Which systems are exposed to this failure?
The affected path is in the Linux kernel's dm-cache target. It is relevant when a dm-cache target is being created and kcopyd client setup fails; the provided data does not establish whether a default configuration reaches this path.
How can I identify that this issue has occurred?
Kernel logs may show a KASAN null-pointer dereference in dm_kcopyd_client_destroy at drivers/md/dm-kcopyd.c:980. The call trace can include __destroy, cache_create, cache_ctr, dm_table_add_target, and dm-ioctl table loading functions.
What does the fix change?
The fix sets cache->copier to NULL when kcopyd client setup fails, preventing cleanup from calling dm_kcopyd_client_destroy on the invalid -EINTR value.