Description
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 cache_create(), 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 dm_kcopyd_client_destroy+0xae/0x480 drivers/md/dm-kcopyd.c:980 Read of size 4 at addr 0000000000000174 by task syz.2.19/6560 Call Trace: dm_kcopyd_client_destroy+0xae/0x480 drivers/md/dm-kcopyd.c:980 __destroy+0x172/0x2f0 drivers/md/dm-cache-target.c:1973 cache_create drivers/md/dm-cache-target.c:2604 [inline] cache_ctr+0x1674/0x2bf0 drivers/md/dm-cache-target.c:2649 dm_table_add_target+0x58d/0xc70 drivers/md/dm-table.c:749 populate_table drivers/md/dm-ioctl.c:1602 [inline] table_load+0x325/0x8a0 drivers/md/dm-ioctl.c:1645 ctl_ioctl drivers/md/dm-ioctl.c:2221 [inline] Set copier to NULL to avoid destroying a invalid kcopy client.
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
c6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < 7b6ac795e9eb57adbd408cfbb4db3b17047b83c0affectedc6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < 308bde4052bc7167b2e00d347990284a5c8f753eaffectedc6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < fff4550558441274d0d5fb5c5d2cd0e2f27ced40affectedc6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < f98c4c79e505cef57d0f37e8f27a8a062914321faffectedc6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < 56e8c6075385425e1574c267a6872d382d7b4756affectedc6b4fcbad044e6fffcc75bba160e720eb8d67d17 to < 8b97b168eb4d3affcf23d2980a0c3f35ed9262e2affected
Linux Linux
Default version status: affected
3.9affected0 to < 3.9unaffected5.10.276 to ≤ 5.10.*unaffected5.15.227 to ≤ 5.15.*unaffected6.12.120 to ≤ 6.12.*unaffected6.18.66 to ≤ 6.18.*unaffected7.3.7 to ≤ 7.3.*unaffected7.4-rc3 to ≤ *unaffected
References
- https://git.kernel.org/stable/c/7b6ac795e9eb57adbd408cfbb4db3b17047b83c0 ↗
- https://git.kernel.org/stable/c/308bde4052bc7167b2e00d347990284a5c8f753e ↗
- https://git.kernel.org/stable/c/fff4550558441274d0d5fb5c5d2cd0e2f27ced40 ↗
- https://git.kernel.org/stable/c/f98c4c79e505cef57d0f37e8f27a8a062914321f ↗
- https://git.kernel.org/stable/c/56e8c6075385425e1574c267a6872d382d7b4756 ↗
- https://git.kernel.org/stable/c/8b97b168eb4d3affcf23d2980a0c3f35ed9262e2 ↗