In the Linux kernel, the following vulnerability has been resolved: dm-cache: fix NULL pointer dereference on open failure When __begin_transaction_flags in metadata_open fails, dm_cache_metadata_close is called. dm_cache_metadata_close attempts to execute list_del(&cmd->list);, but the "cmd" object is not on any list yet, thus it crashes with NULL pointer dereference. Fix this by initializing cmd->list after cmd is allocated.
https://git.kernel.org/stable/c/dac89d0a94ef1630c5c942840bc79ecae9bccdb5
https://git.kernel.org/stable/c/d12afc2f9ed6e14019fed9c02a74ad699915dc85
https://git.kernel.org/stable/c/341f197cfc0aaddfdeb97a82aa3289fa3a40adaf
https://git.kernel.org/stable/c/2380047e8fa5f9cee8204e0099ab620d5d446b03
https://git.kernel.org/stable/c/217644aa5709c5f82697113b4bb44bf32ed03748
https://git.kernel.org/stable/c/08ec0cf4165c71cc8c9064773d9e3a2b7ac57a22