{"id":"CVE-2022-50530","published":"2025-10-07T15:19:21Z","modified":"2026-05-11T19:21:12Z","title":"blk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping()","vendor":"Linux","product":"Linux","tier":"tail","description":{"text":"In the Linux kernel, the following vulnerability has been resolved:\n\nblk-mq: fix null pointer dereference in blk_mq_clear_rq_mapping()\n\nOur syzkaller report a null pointer dereference, root cause is\nfollowing:\n\n__blk_mq_alloc_map_and_rqs\n set->tags[hctx_idx] = blk_mq_alloc_map_and_rqs\n  blk_mq_alloc_map_and_rqs\n   blk_mq_alloc_rqs\n    // failed due to oom\n    alloc_pages_node\n    // set->tags[hctx_idx] is still NULL\n    blk_mq_free_rqs\n     drv_tags = set->tags[hctx_idx];\n     // null pointer dereference is triggered\n     blk_mq_clear_rq_mapping(drv_tags, ...)\n\nThis is because commit 63064be150e4 (\"blk-mq:\nAdd blk_mq_alloc_map_and_rqs()\") merged the two steps:\n\n1) set->tags[hctx_idx] = blk_mq_alloc_rq_map()\n2) blk_mq_alloc_rqs(..., set->tags[hctx_idx])\n\ninto one step:\n\nset->tags[hctx_idx] = blk_mq_alloc_map_and_rqs()\n\nSince tags is not initialized yet in this case, fix the problem by\nchecking if tags is NULL pointer in blk_mq_clear_rq_mapping().","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.0014,"percentile":0.03327,"provenance":"source"},"cwes":[],"references":[{"url":"https://git.kernel.org/stable/c/6a440e6d04431e774dc084abe88c106e2a474c1a","tags":[]},{"url":"https://git.kernel.org/stable/c/76dd298094f484c6250ebd076fa53287477b2328","tags":[]}],"priority":{"score":0.7,"factors":[{"name":"EPSS percentile","points":0.67}]},"vendorSlug":"linux","affectedVersions":[{"vendor":"Linux","product":"Linux","versions":[">= 63064be150e4b1ba1e4af594ef5aa81adf21a52d, < 6a440e6d04431e774dc084abe88c106e2a474c1a",">= 63064be150e4b1ba1e4af594ef5aa81adf21a52d, < 76dd298094f484c6250ebd076fa53287477b2328"]},{"vendor":"Linux","product":"Linux","versions":["5.16"]}],"euvd":{"id":"EUVD-2025-32032","exploited":false,"provenance":"source"}}