In the Linux kernel, the following vulnerability has been resolved:
dm stats: check for and propagate alloc_percpu failure
Check allocprecpu()'s return value and return an error from dmstatsinit() if it fails. Update allocdev() to fail if dmstatsinit() does.
Otherwise, a NULL pointer dereference will occur in dmstatscleanup() even if dm-stats isn't being actively used.
[ { "signature_type": "Line", "id": "CVE-2023-53044-05948d57", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d96bd507ed7e7d565b6d53ebd3874686f123b2e", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-121859bc", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2287d7b721471a3d58bcd829250336e3cdf1635e", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "251334763122629012013304595426236085705", "155509014588534044528960042462337015277", "242244956285346869944725120821016643473", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-308430da", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a32a9a818a895671bd43e0c40351e60e4e9140b", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-34a41bb4", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2287d7b721471a3d58bcd829250336e3cdf1635e", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "152958207643075788628240609743641913713", "151243005778288898348124815786330049816", "329726838595315926140897597890345751886", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-3cc5fbe8", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@443c9d522397511a4328dc2ec3c9c63c73049756", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "102731048969840349072296413935483517016", "330390925542748040760509962274082702531", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-513008f4", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d96bd507ed7e7d565b6d53ebd3874686f123b2e", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "152958207643075788628240609743641913713", "151243005778288898348124815786330049816", "329726838595315926140897597890345751886", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-5297eaf9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b66e36a3efd24041b7374432bfa4dec2ff01e95", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "246460652287190827550735916846009102299", "length": 349.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-52bd2cd1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@443c9d522397511a4328dc2ec3c9c63c73049756", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "246460652287190827550735916846009102299", "length": 349.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-549714dd", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c68f08cc745675a17894e1b4a5b5b9700ace6da4", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "251334763122629012013304595426236085705", "155509014588534044528960042462337015277", "242244956285346869944725120821016643473", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-54b37ad1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a32a9a818a895671bd43e0c40351e60e4e9140b", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "307490276073081464562879160849538321969", "length": 311.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-5aca24b8", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3aa3e060c4a80827eb801fc448debc9daa7c46b", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "102731048969840349072296413935483517016", "330390925542748040760509962274082702531", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-5ffa33ef", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b66e36a3efd24041b7374432bfa4dec2ff01e95", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "226169383750789102853382084270320803685", "length": 2628.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-63136e1d", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a42180dd361584816bfe15c137b665699b994d90", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "226169383750789102853382084270320803685", "length": 2628.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-664961b9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c68f08cc745675a17894e1b4a5b5b9700ace6da4", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "307490276073081464562879160849538321969", "length": 311.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-6a673aa8", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3aa3e060c4a80827eb801fc448debc9daa7c46b", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "226169383750789102853382084270320803685", "length": 2628.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-6c5dd328", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a42180dd361584816bfe15c137b665699b994d90", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "102731048969840349072296413935483517016", "330390925542748040760509962274082702531", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-816e36c6", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a42180dd361584816bfe15c137b665699b994d90", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-831fee2b", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@443c9d522397511a4328dc2ec3c9c63c73049756", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "132882824146044913981232716369753446896", "196908608973775577666108013547619927253", "270490208034355082032579074626745238462", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-8ab6cb23", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3aa3e060c4a80827eb801fc448debc9daa7c46b", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "246460652287190827550735916846009102299", "length": 349.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-935af02e", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d96bd507ed7e7d565b6d53ebd3874686f123b2e", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "72682668607469205295858401895019979134", "length": 2837.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-961c589a", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c68f08cc745675a17894e1b4a5b5b9700ace6da4", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "69861289146969412893508689502249169098", "length": 2452.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-97de32ee", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c68f08cc745675a17894e1b4a5b5b9700ace6da4", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-9a24b0c6", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b66e36a3efd24041b7374432bfa4dec2ff01e95", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "102731048969840349072296413935483517016", "330390925542748040760509962274082702531", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-9a5580f9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2287d7b721471a3d58bcd829250336e3cdf1635e", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-ad1ea175", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a32a9a818a895671bd43e0c40351e60e4e9140b", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "251334763122629012013304595426236085705", "155509014588534044528960042462337015277", "242244956285346869944725120821016643473", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-b3ccfc20", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2287d7b721471a3d58bcd829250336e3cdf1635e", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "26198654461229759296692686304087197119", "length": 2623.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-b416b021", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@c68f08cc745675a17894e1b4a5b5b9700ace6da4", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "151553109898272898855013780560370408283", "133892998278296996774091331829981205208", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-bc67531b", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@443c9d522397511a4328dc2ec3c9c63c73049756", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-bda8da94", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@443c9d522397511a4328dc2ec3c9c63c73049756", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "284012680746908341790420327076379692232", "length": 2396.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-c71b792d", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3aa3e060c4a80827eb801fc448debc9daa7c46b", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "132882824146044913981232716369753446896", "196908608973775577666108013547619927253", "270490208034355082032579074626745238462", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-c7b7eadb", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a32a9a818a895671bd43e0c40351e60e4e9140b", "signature_version": "v1", "target": { "file": "drivers/md/dm.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "151553109898272898855013780560370408283", "133892998278296996774091331829981205208", "209101056592303648476971913110047113030", "74266244005563987532561523726330491496" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-cbb6456c", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@d3aa3e060c4a80827eb801fc448debc9daa7c46b", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "226421440000630712507219191207869148959" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-cd8931d1", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b66e36a3efd24041b7374432bfa4dec2ff01e95", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "132882824146044913981232716369753446896", "196908608973775577666108013547619927253", "270490208034355082032579074626745238462", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-cd9bdba0", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@5b66e36a3efd24041b7374432bfa4dec2ff01e95", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.h" }, "digest": { "threshold": 0.9, "line_hashes": [ "108762724614287720175765672517735337501", "19113774298987446772999261606925233130", "45340671894677687532365131745692940269", "273051493363259905969403490307347994637" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-e0f664e9", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@4a32a9a818a895671bd43e0c40351e60e4e9140b", "signature_version": "v1", "target": { "function": "alloc_dev", "file": "drivers/md/dm.c" }, "digest": { "function_hash": "64362650077438316564890727239200355133", "length": 2506.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-e73525dc", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d96bd507ed7e7d565b6d53ebd3874686f123b2e", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "251334763122629012013304595426236085705", "155509014588534044528960042462337015277", "242244956285346869944725120821016643473", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-eb1adc30", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a42180dd361584816bfe15c137b665699b994d90", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "246460652287190827550735916846009102299", "length": 349.0 }, "deprecated": false }, { "signature_type": "Line", "id": "CVE-2023-53044-ed5a0990", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@a42180dd361584816bfe15c137b665699b994d90", "signature_version": "v1", "target": { "file": "drivers/md/dm-stats.c" }, "digest": { "threshold": 0.9, "line_hashes": [ "150635706531452555189624641561130215879", "109338100223732632580183048782814291166", "20685106466371063767048391948341726800", "152604023516794304816845347089602534134", "132882824146044913981232716369753446896", "196908608973775577666108013547619927253", "270490208034355082032579074626745238462", "209224874262407271661696877237166356061", "124407156910490504400848665699500596332", "31787928428620186711568387638160937366", "104593878057558050656686917160401329758", "257712551665963343642267389684789662211", "319072132275945885178707457945000797488" ] }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-ee8d3a35", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@0d96bd507ed7e7d565b6d53ebd3874686f123b2e", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "307490276073081464562879160849538321969", "length": 311.0 }, "deprecated": false }, { "signature_type": "Function", "id": "CVE-2023-53044-f0e2d769", "source": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git@2287d7b721471a3d58bcd829250336e3cdf1635e", "signature_version": "v1", "target": { "function": "dm_stats_init", "file": "drivers/md/dm-stats.c" }, "digest": { "function_hash": "307490276073081464562879160849538321969", "length": 311.0 }, "deprecated": false } ]