CVE-2022-49270 Information
Description
In the Linux kernel the following vulnerability has been resolved:
dm: fix use-after-free in dm_cleanup_zoned_dev()
dm_cleanup_zoned_dev() uses queue so it must be called before blk_cleanup_disk() starts its killing:
blk_cleanup_disk->blk_cleanup_queue()->kobject_put()->blk_release_queue()-> ->…RCU…->blk_free_queue_rcu()->kmem_cache_free()
Otherwise RCU callback may be executed first and dm_cleanup_zoned_dev() will touch free’d memory:
BUG: KASAN: use-after-free in dm_cleanup_zoned_dev+0x33/0xd0 Read of size 8 at addr ffff88805ac6e430 by task dmsetup/681
CPU: 4 PID: 681 Comm: dmsetup Not tainted 5.17.0-rc2+ 6
Hardware name: QEMU Standard PC (i440FX + PIIX 1996) BIOS 1.14.0-2 04/01/2014
Call Trace:
Reference
https://git.kernel.org/stable/c/0987f00a76a17aa7213da492c00ed9e5a6210c73 https://git.kernel.org/stable/c/43a043aed964659bc69ef81f266912b73c80d837 https://git.kernel.org/stable/c/588b7f5df0cb64f281290c7672470c006abe7160 https://git.kernel.org/stable/c/fdfe414ca28ddfd562c233fb27385cf820de03e8
Share on: