CVE-2024-43820

Source
https://cve.org/CVERecord?id=CVE-2024-43820
Import Source
https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43820.json
JSON Data
https://api.test.osv.dev/v1/vulns/CVE-2024-43820
Downstream
Related
Published
2024-08-17T09:21:41.674Z
Modified
2026-03-20T12:38:49.260555Z
Summary
dm-raid: Fix WARN_ON_ONCE check for sync_thread in raid_resume
Details

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

dm-raid: Fix WARNONONCE check for syncthread in raidresume

rm-raid devices will occasionally trigger the following warning when being resumed after a table load because DMRECOVERYRUNNING is set:

WARNING: CPU: 7 PID: 5660 at drivers/md/dm-raid.c:4105 raidresume+0xee/0x100 [dmraid]

The failing check is: WARNONONCE(testbit(MDRECOVERY_RUNNING, &mddev->recovery));

This check is designed to make sure that the sync thread isn't registered, but mdcheckrecovery can set MDRECOVERYRUNNING without the syncthread ever getting registered. Instead of checking if MDRECOVERYRUNNING is set, check if syncthread is non-NULL.

Database specific
{
    "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/43xxx/CVE-2024-43820.json",
    "cna_assigner": "Linux"
}
References

Affected packages

Git / git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git

Affected ranges

Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
16c4770c75b1223998adbeb7286f9a15c65fba73
Fixed
a5c15a78c0e1631b7df822b56e8b6424e4d1ca3e
Fixed
3199a34bfaf7561410e0be1e33a61eba870768fc
Type
GIT
Repo
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
Events
Introduced
0 Unknown introduced commit / All previous commits are affected
Last affected
af916cb66a80597f3523bc85812e790bcdcfd62b
Last affected
eaa8fc9b092837cf2c754bde1a15d784ce9a85ab

Database specific

source
"https://storage.googleapis.com/osv-test-cve-osv-conversion/osv-output/CVE-2024-43820.json"