# CVE-2023-53848: md/raid5-cache: fix a deadlock in r5l_exit_log()

- Severity: not scored yet
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.24%, higher than 16% of CVEs (2026-12-01)
- Published: 2025-12-09T01:30:11.895Z
- Modified: 2026-06-17T06:46:10.730Z
- Assigned by: Linux

## Description

In the Linux kernel, the following vulnerability has been resolved:

md/raid5-cache: fix a deadlock in r5l_exit_log()

Commit b13015af94cf ("md/raid5-cache: Clear conf->log after finishing
work") introduce a new problem:

// caller hold reconfig_mutex
r5l_exit_log
 flush_work(&log->disable_writeback_work)
			r5c_disable_writeback_async
			 wait_event
			  /*
			   * conf->log is not NULL, and mddev_trylock()
			   * will fail, wait_event() can never pass.
			   */
 conf->log = NULL

Fix this problem by setting 'config->log' to NULL before wake_up() as it
used to be, so that wait_event() from r5c_disable_writeback_async() can
exist. In the meantime, move forward md_unregister_thread() so that
null-ptr-deref this commit fixed can still be fixed.

(As written by CVE List.)

## Affected

- Linux Linux: from b13015af94cf405f73ff64ce0797269554020c37 before ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b; from b13015af94cf405f73ff64ce0797269554020c37 before 71cf23271f015a57038bdc4669952096f9fe5500; from b13015af94cf405f73ff64ce0797269554020c37 before c406984738215dc20ac2dc63e49d70f20797730e; from b13015af94cf405f73ff64ce0797269554020c37 before a705b11b358dee677aad80630e7608b2d5f56691; 6.0 (not affected: before 6.0; from 6.1.53 up to 6.1.*; from 6.4.16 up to 6.4.*; from 6.5.3 up to 6.5.*; from 6.6 up to *)

## References

- <https://git.kernel.org/stable/c/ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b>
- <https://git.kernel.org/stable/c/71cf23271f015a57038bdc4669952096f9fe5500>
- <https://git.kernel.org/stable/c/c406984738215dc20ac2dc63e49d70f20797730e>
- <https://git.kernel.org/stable/c/a705b11b358dee677aad80630e7608b2d5f56691>

## Sources

- CVE List: [CVE-2023-53848](https://www.cve.org/CVERecord?id=CVE-2023-53848), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2023-53848](https://nvd.nist.gov/vuln/detail/CVE-2023-53848), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2023-53848 · Whole record: https://cve.day/CVE-2023-53848.json · Rebuilt by cve.day 2026-11-25T22:58:35.077Z
