Linux
module/dups: Fix use-after-free in kmod_dup_req lifetime handling
In the Linux kernel, the following vulnerability has been resolved: module/dups: Fix use-after-free in kmod_dup_req lifetime handling The kmod dups code uses RCU to ensure that a kmod_dup_req instance is freed only after it is no longer referenced. When releasing an instance, the kmod_dup_request_delete() function removes the kmod_dup_req from the dup_kmod_reqs list, waits via synchronize_rcu() and finally frees it. However, this doesn't work correctly because parallel users referencing the instance in kmod_dup_request_exists_wait() don't enter an RCU read-side critical section. This can result in a use-after-free. The kmod_dup_request_exists_wait() function may need to hold a valid reference to a kmod_dup_req instance across a blocking wait until the corresponding modprobe command completes. This makes it unsuitable for RCU. Fix the issue by changing the lifecycle management of kmod_dup_req to use reference counting.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 8660484ed1cf3261e89e0bad94c6395597e87599, < a3205bd1f218053575589b14caf8df667f344134
- >= 8660484ed1cf3261e89e0bad94c6395597e87599, < 2c85e0fb528e039aa8ea1e9c2a1f64347f990541
- >= 8660484ed1cf3261e89e0bad94c6395597e87599, < b2709aad7599f6fd957939b60f4a8323c8f08072
- >= 8660484ed1cf3261e89e0bad94c6395597e87599, < cd2396fc9684d2cfd3f3c3f09c79d6d9d725b0ca
- >= 8660484ed1cf3261e89e0bad94c6395597e87599, < 5eecb11b543f9f417bcf0dea239ff99c6af65dbd
Fixed in a3205bd1f218053575589b14caf8df667f344134, 2c85e0fb528e039aa8ea1e9c2a1f64347f990541, b2709aad7599f6fd957939b60f4a8323c8f08072, cd2396fc9684d2cfd3f3c3f09c79d6d9d725b0ca, 5eecb11b543f9f417bcf0dea239ff99c6af65dbd
- 6.4
Fixed in 0, 6.6.160, 6.12.110, 6.18.52, 7.2.6, 7.3
Mitigation
Upgrade Linux to a3205bd1f218053575589b14caf8df667f344134 or 2c85e0fb528e039aa8ea1e9c2a1f64347f990541 or b2709aad7599f6fd957939b60f4a8323c8f08072 or cd2396fc9684d2cfd3f3c3f09c79d6d9d725b0ca or 5eecb11b543f9f417bcf0dea239ff99c6af65dbd or later.
Upgrade Linux to 0 or 6.6.160 or 6.12.110 or 6.18.52 or 7.2.6 or 7.3 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.