# CVE-2022-49403: lib/string_helpers: fix not adding strarray to device's resource list

- Severity: Medium 5.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.26%, higher than 18% of CVEs (2026-12-01)
- Published: 2025-02-26T02:12:29.556Z
- Modified: 2026-06-17T05:17:56.960Z
- Weaknesses: CWE-401
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Linux

## 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().

(As written by CVE List.)

## Affected

- Linux Linux: from acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a before a152eb42fcecfe41239c3c6695342f3a128593e7; from acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a before bf29edab0c9ff3d2633b8306a67d04c357e2a385; from acdb89b6c87a2d7b5c48a82756e6f5c6f599f60a before cd290a9839cee2f6641558877e707bd373c8f6f1; 5.17 (not affected: before 5.17; from 5.17.14 up to 5.17.*; from 5.18.3 up to 5.18.*; from 5.19 up to *)
- linux linux_kernel: from 5.17 before 5.17.14; from 5.18 before 5.18.3

## Every score

- CISA-ADP: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- NVD: CVSS:3.1 5.5 Medium `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`

## References

- <https://git.kernel.org/stable/c/a152eb42fcecfe41239c3c6695342f3a128593e7> (patch)
- <https://git.kernel.org/stable/c/bf29edab0c9ff3d2633b8306a67d04c357e2a385> (patch)
- <https://git.kernel.org/stable/c/cd290a9839cee2f6641558877e707bd373c8f6f1> (patch)

## Sources

- CVE List: [CVE-2022-49403](https://www.cve.org/CVERecord?id=CVE-2022-49403), CVE Terms of Use, modified 2026-05-11
- NVD: [CVE-2022-49403](https://nvd.nist.gov/vuln/detail/CVE-2022-49403), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2022-49403 · Whole record: https://cve.day/CVE-2022-49403.json · Rebuilt by cve.day 2026-11-25T22:58:20.504Z
