AZL-117968: CVE-2026-143027 affecting package kernel 6.6.161.1-1
In the Linux kernel, the following vulnerability has been resolved:
dm cache: reject kcopyd client destory if it setup failed
The value of cache->copier is -EINTR when failed to create a rescuer kthread for wq kcopyd, in cachecreate(), the code jumps directly to destroy(cache), it merely performs a simple check to see whether copier is NULL, potentially hitting:
BUG: KASAN: null-ptr-deref in dmkcopydclientdestroy+0xae/0x480 drivers/md/dm-kcopyd.c:980 Read of size 4 at addr 0000000000000174 by task syz.2.19/6560 Call Trace: dmkcopydclientdestroy+0xae/0x480 drivers/md/dm-kcopyd.c:980 destroy+0x172/0x2f0 drivers/md/dm-cache-target.c:1973 cachecreate drivers/md/dm-cache-target.c:2604 [inline] cachectr+0x1674/0x2bf0 drivers/md/dm-cache-target.c:2649 dmtableaddtarget+0x58d/0xc70 drivers/md/dm-table.c:749 populatetable drivers/md/dm-ioctl.c:1602 [inline] tableload+0x325/0x8a0 drivers/md/dm-ioctl.c:1645 ctlioctl drivers/md/dm-ioctl.c:2221 [inline]
Set copier to NULL to avoid destroying a invalid kcopy client.
Affected Software
Event History
Frequently Asked Questions
What conditions are required to trigger this issue?
The failure path is reached when dm-cache setup cannot create the rescuer kernel thread for the kcopyd workqueue, causing cache->copier to contain -EINTR. Subsequent cleanup attempts to destroy that invalid kcopyd client and can dereference a null pointer.
What is the practical impact if the vulnerable path is reached?
The reported failure is a KASAN-detected null-pointer dereference in dm_kcopyd_client_destroy during dm-cache target creation. The provided data indicates a kernel fault in this cleanup path, not any further impact.
How can administrators determine whether they may be exposed?
Systems using the Azure Linux kernel package version 6.6.161.1-1 are identified as affected. The relevant functionality is the device-mapper cache target and its kcopyd workqueue setup path.
What does the fix change?
The fix sets cache->copier to NULL when kcopyd client setup fails, so cleanup does not attempt to destroy an invalid client.