What’s Vulnerable › Vulnerabilities
CVE-2022-49403: lib/string_helpers: fix not adding strarray to device's resource list
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
Description
In 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().
Affected products
- Linux kernel: from 5.17 before 5.17.14; from 5.18 before 5.18.3 — fixed in 5.17.14, 5.18.3
How to fix
Upgrade to a fixed version: Linux kernel 5.17.14, 5.18.3. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/a152eb42fcecfe41239c3c6695342f3a128593e7
- https://git.kernel.org/stable/c/bf29edab0c9ff3d2633b8306a67d04c357e2a385
- https://git.kernel.org/stable/c/cd290a9839cee2f6641558877e707bd373c8f6f1
Get alerted when CVE-2022-49403 or the next vulnerability affects your stack