CVE-2023-53848

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

State
Published
Severity
Not scored
Published
Dec 9, 2025
Updated
May 11, 2026
Reserved
Dec 9, 2025

Read the record on cve.org

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.

Scores

The record has no CVSS score.

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
LinuxLinux
  • b13015af94cf405f73ff64ce0797269554020c37 to before ac9e103f282a7854f3274ef5ff0742fbbe8d7d6bAffected
  • b13015af94cf405f73ff64ce0797269554020c37 to before 71cf23271f015a57038bdc4669952096f9fe5500Affected
  • b13015af94cf405f73ff64ce0797269554020c37 to before c406984738215dc20ac2dc63e49d70f20797730eAffected
  • b13015af94cf405f73ff64ce0797269554020c37 to before a705b11b358dee677aad80630e7608b2d5f56691Affected
LinuxLinux
  • 6.0Affected
  • before 6.0Not affected
  • 6.1.53 through 6.1.*Not affected
  • 6.4.16 through 6.4.*Not affected
  • 6.5.3 through 6.5.*Not affected
  • 6.6 and laterNot affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.