CVE-2021-47654
JSON

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 packageVersionsReported by
Linux Linuxfrom 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_kernelbefore 5.15.33, from 5.16 before 5.16.19, from 5.17 before 5.17.2NVD

All scores

CISA-ADP5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
NVD5.5medium CVSS:3.1CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Classification

CWE-401

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

SourceRecordLicence
CVE ListCVE-2021-47654 changed 2026-05-11CVE Terms of Use
NVDCVE-2021-47654 changed 2026-06-17Public domain