{"id":"CVE-2023-53848","aliases":["CVE-2023-53848"],"related":[],"kind":"vulnerability","state":"published","title":"md/raid5-cache: fix a deadlock in r5l_exit_log()","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5-cache: fix a deadlock in r5l_exit_log()\n\nCommit b13015af94cf (\"md/raid5-cache: Clear conf->log after finishing\nwork\") introduce a new problem:\n\n// caller hold reconfig_mutex\nr5l_exit_log\n flush_work(&log->disable_writeback_work)\n\t\t\tr5c_disable_writeback_async\n\t\t\t wait_event\n\t\t\t  /*\n\t\t\t   * conf->log is not NULL, and mddev_trylock()\n\t\t\t   * will fail, wait_event() can never pass.\n\t\t\t   */\n conf->log = NULL\n\nFix this problem by setting 'config->log' to NULL before wake_up() as it\nused to be, so that wait_event() from r5c_disable_writeback_async() can\nexist. In the meantime, move forward md_unregister_thread() so that\nnull-ptr-deref this commit fixed can still be fixed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nmd/raid5-cache: fix a deadlock in r5l_exit_log()\n\nCommit b13015af94cf (\"md/raid5-cache: Clear conf->log after finishing\nwork\") introduce a new problem:\n\n// caller hold reconfig_mutex\nr5l_exit_log\n flush_work(&log->disable_writeback_work)\n\t\t\tr5c_disable_writeback_async\n\t\t\t wait_event\n\t\t\t  /*\n\t\t\t   * conf->log is not NULL, and mddev_trylock()\n\t\t\t   * will fail, wait_event() can never pass.\n\t\t\t   */\n conf->log = NULL\n\nFix this problem by setting 'config->log' to NULL before wake_up() as it\nused to be, so that wait_event() from r5c_disable_writeback_async() can\nexist. In the meantime, move forward md_unregister_thread() so that\nnull-ptr-deref this commit fixed can still be fixed.","source":"cvelist"}],"published":"2025-12-09T01:30:11.895Z","modified":"2026-06-17T06:46:10.730Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"b13015af94cf405f73ff64ce0797269554020c37","fixed":"ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b","status":"affected"},{"type":"git","introduced":"b13015af94cf405f73ff64ce0797269554020c37","fixed":"71cf23271f015a57038bdc4669952096f9fe5500","status":"affected"},{"type":"git","introduced":"b13015af94cf405f73ff64ce0797269554020c37","fixed":"c406984738215dc20ac2dc63e49d70f20797730e","status":"affected"},{"type":"git","introduced":"b13015af94cf405f73ff64ce0797269554020c37","fixed":"a705b11b358dee677aad80630e7608b2d5f56691","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"6.0","status":"affected"},{"type":"semver","introduced":"0","fixed":"6.0","status":"unaffected"},{"type":"semver","introduced":"6.1.53","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.4.16","lastAffected":"6.4.*","status":"unaffected"},{"type":"semver","introduced":"6.5.3","lastAffected":"6.5.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"6.6","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/71cf23271f015a57038bdc4669952096f9fe5500","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c406984738215dc20ac2dc63e49d70f20797730e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a705b11b358dee677aad80630e7608b2d5f56691","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-53848","url":"https://www.cve.org/CVERecord?id=CVE-2023-53848","licence":"CVE Terms of Use","modified":"2026-05-11T19:52:41.221Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-53848","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-53848","licence":"Public domain","modified":"2026-06-17T06:46:10.730Z"}],"updatedAt":"2026-11-25T22:58:35.077Z","epss":{"score":0.00244,"percentile":0.16696,"date":"2026-12-01T12:00:22.000Z"}}