{"id":"CVE-2021-47654","aliases":["CVE-2021-47654"],"related":[],"kind":"vulnerability","state":"published","title":"samples/landlock: Fix path_list memory leak","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nsamples/landlock: Fix path_list memory leak\n\nClang static analysis reports this error\n\nsandboxer.c:134:8: warning: Potential leak of memory\n  pointed to by 'path_list'\n        ret = 0;\n              ^\npath_list is allocated in parse_path() but never freed.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nsamples/landlock: Fix path_list memory leak\n\nClang static analysis reports this error\n\nsandboxer.c:134:8: warning: Potential leak of memory\n  pointed to by 'path_list'\n        ret = 0;\n              ^\npath_list is allocated in parse_path() but never freed.","source":"cvelist"},{"lang":"es","text":"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.","source":"nvd"}],"published":"2025-02-26T01:54:19.083Z","modified":"2026-06-17T04:18:15.377Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H","score":5.5,"rating":"MEDIUM"}],"cwes":["CWE-401"],"affected":[{"ranges":[{"type":"git","introduced":"ba84b0bf5a164f0f523656c1e37568c30f3f3303","fixed":"20fbf100f84b9aeb9c91421abe1927bc152bc32b","status":"affected"},{"type":"git","introduced":"ba84b0bf5a164f0f523656c1e37568c30f3f3303","fixed":"49b0d8bf05809df5f87e5c03e26d74bdfdab4571","status":"affected"},{"type":"git","introduced":"ba84b0bf5a164f0f523656c1e37568c30f3f3303","fixed":"017196730299ccd6eed24bbfabed8af4ffd81530","status":"affected"},{"type":"git","introduced":"ba84b0bf5a164f0f523656c1e37568c30f3f3303","fixed":"66b513b7c64a7290c1fbb88e657f7cece992e131","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"5.13","status":"affected"},{"type":"semver","introduced":"0","fixed":"5.13","status":"unaffected"},{"type":"semver","introduced":"5.15.33","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"5.16.19","lastAffected":"5.16.*","status":"unaffected"},{"type":"semver","introduced":"5.17.2","lastAffected":"5.17.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"5.18","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"status":"affected","fixed":"5.15.33"},{"status":"affected","introduced":"5.16","fixed":"5.16.19"},{"status":"affected","introduced":"5.17","fixed":"5.17.2"}],"vendor":"linux","product":"linux_kernel","cpe":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","source":"nvd"}],"references":[{"url":"https://git.kernel.org/stable/c/20fbf100f84b9aeb9c91421abe1927bc152bc32b","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/49b0d8bf05809df5f87e5c03e26d74bdfdab4571","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/017196730299ccd6eed24bbfabed8af4ffd81530","tags":["patch"],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/66b513b7c64a7290c1fbb88e657f7cece992e131","tags":["patch"],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2025-10-01T19:50:18.388Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2021-47654","url":"https://www.cve.org/CVERecord?id=CVE-2021-47654","licence":"CVE Terms of Use","modified":"2026-05-11T13:58:41.074Z"},{"source":"nvd","name":"NVD","id":"CVE-2021-47654","url":"https://nvd.nist.gov/vuln/detail/CVE-2021-47654","licence":"Public domain","modified":"2026-06-17T04:18:15.377Z"}],"updatedAt":"2026-11-25T22:58:09.008Z","epss":{"score":0.00271,"percentile":0.20622,"date":"2026-12-01T12:00:22.000Z"}}