lib/string_helpers: fix not adding strarray to device's resource list
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
5.17.145.18.35.19In the Linux kernel, the following vulnerability has been resolved:
lib/string_helpers: fix not adding strarray to device's resource list
Add allocated strarray to device's resource list. This is a must to automatically release strarray when the device disappears.
Without this fix we have a memory leak in the few drivers which use devm_kasprintf_strarray().
From the CVE record · Linux
The Linux kernel does not add an allocated strarray to the device's resource list, causing a memory leak when the device disappears in drivers that use devm_kasprintf_strarray(). The input does not describe how an attacker could trigger the leak or specify access, authentication, or user-interaction requirements.
Engineers running Linux kernels with drivers that use devm_kasprintf_strarray() should check their installations; affected versions are not specified.