lib/string_helpers: fix not adding strarray to device's resource list
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().
- Products
- Kernel
- Affected versions
- Not specified
- Fixed versions
- 5.17.14, 5.18.3
- CVEs
- CVE-2022-49403
- Confirmed fixed CVEs
- Not specified
- Updated in this feed
- 5 Nov 2026, 10:41 UTC · Revision 1
Source evidence
lib/string_helpers: fix not adding strarray to device's resource list
core-osv · Original sourcePublished 26 Feb 2025, 02:12 UTC
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().
osv:CVE-2022-49403
Kernel
Fixed versions: 5.17.14, 5.18.3
Complete source record
{
"id": "e5c33f89e0598d131ee788276a0ec3f2c6e78cd9c20fe8f8c46d59ee139a4080",
"url": "https://osv.dev/vulnerability/CVE-2022-49403",
"method": "structured",
"payload": {
"kind": "advisory",
"title": "lib/string_helpers: fix not adding strarray to device's resource list",
"summary": "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().",
"evidence": "osv:CVE-2022-49403",
"products": [
{
"name": {
"value": "Kernel",
"evidence": "/affected/1/package/name"
},
"prerequisites": [],
"fixed_versions": [
{
"value": "5.17.14",
"evidence": "/affected/1/ranges"
},
{
"value": "5.18.3",
"evidence": "/affected/1/ranges"
}
],
"affected_versions": []
}
],
"severity": "medium",
"structured": {
"id": "CVE-2022-49403",
"aliases": [
"CVE-2022-49403"
],
"metrics": [
{
"type": "CVSS_V3",
"score": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H"
}
],
"affected": [
{
"ranges": [
{
"repo": "https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git",
"type": "GIT",
"events": [
{
"introduced": "acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a"
},
{
"fixed": "a152eb42fcecfe41239c3c6695342f3a128593e7"
},
{
"fixed": "bf29edab0c9ff3d2633b8306a67d04c357e2a385"
},
{
"fixed": "cd290a9839cee2f6641558877e707bd373c8f6f1"
}
]
}
],
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49403.json"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.17.0"
},
{
"fixed": "5.17.14"
}
]
},
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "5.18.0"
},
{
"fixed": "5.18.3"
}
]
}
],
"package": {
"name": "Kernel",
"ecosystem": "Linux"
},
"database_specific": {
"source": "https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-49403.json"
}
}
],
"modified": "2026-10-28T02:30:43.783649197Z",
"provider": "osv",
"references": [
"https://git.kernel.org/stable/c/a152eb42fcecfe41239c3c6695342f3a128593e7",
"https://git.kernel.org/stable/c/bf29edab0c9ff3d2633b8306a67d04c357e2a385",
"https://git.kernel.org/stable/c/cd290a9839cee2f6641558877e707bd373c8f6f1",
"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49403.json",
"https://nvd.nist.gov/vuln/detail/CVE-2022-49403",
"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"
],
"provider_metadata": {
"cna_assigner": "Linux",
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/49xxx/CVE-2022-49403.json"
}
},
"related_cves": [
{
"value": "CVE-2022-49403",
"evidence": "/id"
}
],
"security_relevant": true,
"severity_evidence": "/severity/0/score"
},
"source_id": "core-osv",
"document_id": 511658,
"published_at": "2025-02-26T02:12:29.556+00:00"
}