md/raid5-cache: fix a deadlock in r5l_exit_log()
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.
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 6.1.53, 6.4.16, 6.5.3
- CVEs
- CVE-2023-53848
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 7 Nov 2026, 10:05 UTC · Revision 1
Source evidence
md/raid5-cache: fix a deadlock in r5l_exit_log()
core-osv · Original sourcePublished 9 Dec 2025, 01:30 UTC
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.
osv:CVE-2023-53848
Kernel
Fixed versions: 6.1.53, 6.4.16, 6.5.3
Complete source record
{
"id": "84f3598c8bb380ab192d438adca20deb85cf892a3e4b2f13db758cebc2031578",
"url": "https://osv.dev/vulnerability/CVE-2023-53848",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "md/raid5-cache: fix a deadlock in r5l_exit_log()",
"summary": "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.",
"evidence": "osv:CVE-2023-53848",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "6.1.53",
"evidence": "/affected/1/ranges"
},
{
"value": "6.4.16",
"evidence": "/affected/1/ranges"
},
{
"value": "6.5.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "unknown",
"structured": {
"id": "CVE-2023-53848",
"aliases": [
"CVE-2023-53848"
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "b13015af94cf405f73ff64ce0797269554020c37"
},
{
"fixed": "ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b"
},
{
"fixed": "71cf23271f015a57038bdc4669952096f9fe5500"
},
{
"fixed": "c406984738215dc20ac2dc63e49d70f20797730e"
},
{
"fixed": "a705b11b358dee677aad80630e7608b2d5f56691"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53848.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.0.0"
},
{
"fixed": "6.1.53"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.2.0"
},
{
"fixed": "6.4.16"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "6.5.0"
},
{
"fixed": "6.5.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2023-53848.json"
}
}
],
"modified": "2026-10-28T02:30:50.248526307Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/71cf23271f015a57038bdc4669952096f9fe5500",
"https://git.kernel.org/stable/c/a705b11b358dee677aad80630e7608b2d5f56691",
"https://git.kernel.org/stable/c/ac9e103f282a7854f3274ef5ff0742fbbe8d7d6b",
"https://git.kernel.org/stable/c/c406984738215dc20ac2dc63e49d70f20797730e",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53848.json",
"https://nvd.nist.gov/vuln/detail/CVE-2023-53848",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/53xxx/CVE-2023-53848.json"
}
},
"related_cves": [
{
"value": "CVE-2023-53848",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": null
},
"source_id": "core-osv",
"document_id": 518957,
"published_at": "2025-12-09T01:30:11.895+00:00"
}