CVE-2023-53848

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

published December 9, 2025

CVSS
—
EPSS
0%
Percentile
12.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS
Not scored
CVSS v4.0
Not supplied
EPSS
0.00227 · 12.8th percentile
Published
2025-12-09T01:30Z
EPSS history
Timeline
  • 09 DEC 01:30Z
    md/raid5-cache: fix a deadlock in r5l_exit_log()
    cvelistv5