5.5medium
samples/landlock: Fix path_list memory leak
- Severity
- 5.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.27% (higher than 20% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Linux
Description
In the Linux kernel, the following vulnerability has been resolved: samples/landlock: Fix path_list memory leak Clang static analysis reports this error sandboxer.c:134:8: warning: Potential leak of memory pointed to by 'path_list' ret = 0; ^ path_list is allocated in parse_path() but never freed.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| Linux Linux | from ba84b0bf5a164f0f523656c1e37568c30f3f3303 before 20fbf100f84b9aeb9c91421abe1927bc152bc32b, from ba84b0bf5a164f0f523656c1e37568c30f3f3303 before 49b0d8bf05809df5f87e5c03e26d74bdfdab4571, from ba84b0bf5a164f0f523656c1e37568c30f3f3303 before 017196730299ccd6eed24bbfabed8af4ffd81530, from ba84b0bf5a164f0f523656c1e37568c30f3f3303 before 66b513b7c64a7290c1fbb88e657f7cece992e131, 5.13 Not affected: before 5.13, from 5.15.33 up to 5.15.*, from 5.16.19 up to 5.16.*, from 5.17.2 up to 5.17.*, from 5.18 up to * | CVE List |
| linux linux_kernel | before 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2 | NVD |
All scores
| CISA-ADP | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| NVD | 5.5medium CVSS:3.1 | CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.
What each source says
CVE List
In the Linux kernel, the following vulnerability has been resolved: samples/landlock: Fix path_list memory leak Clang static analysis reports this error sandboxer.c:134:8: warning: Potential leak of memory pointed to by 'path_list' ret = 0; ^ path_list is allocated in parse_path() but never freed.
NVD (es)
En el kernel de Linux, se ha resuelto la siguiente vulnerabilidad: samples/landlock: Se corrige la pérdida de memoria de path_list El análisis estático de Clang informa este error sandboxer.c:134:8: advertencia: Posible pérdida de memoria señalada por 'path_list' ret = 0; ^ path_list se asigna en parse_path() pero nunca se libera.
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-47654 changed 2026-05-11 | CVE Terms of Use |
| NVD | CVE-2021-47654 changed 2026-06-17 | Public domain |