devres: Fix memory leakage caused by driver API devm_free_percpu()
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ ff86aae3b4112b85d2231c23bccbc49589df1c06 · < b67552d7c61f52f1271031adfa7834545ae99701| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
devres: Fix memory leakage caused by driver API devm_free_percpu()
It will cause memory leakage when use driver API devm_free_percpu() to free memory allocated by devm_alloc_percpu(), fixed by using devres_release() instead of devres_destroy() within devm_free_percpu().
From the CVE record · Linux
The Linux kernel's devm_free_percpu() can leak memory when freeing memory allocated by devm_alloc_percpu(). The input does not describe an attacker action, authentication requirement, or user interaction; the leak occurs when a driver uses these APIs in that sequence.
Engineers running Linux kernels with drivers that use devm_alloc_percpu() and devm_free_percpu() should check their kernel version; affected versions are not specified.