# CVE-2021-47654: samples/landlock: Fix path_list memory leak

- 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.27%, higher than 20% of CVEs (2026-12-01)
- Published: 2025-02-26T01:54:19.083Z
- Modified: 2026-06-17T04:18:15.377Z
- 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:

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.

(As written by CVE List.)

## Affected

- 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 *)
- linux linux_kernel: before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2

## 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/20fbf100f84b9aeb9c91421abe1927bc152bc32b> (patch)
- <https://git.kernel.org/stable/c/49b0d8bf05809df5f87e5c03e26d74bdfdab4571> (patch)
- <https://git.kernel.org/stable/c/017196730299ccd6eed24bbfabed8af4ffd81530> (patch)
- <https://git.kernel.org/stable/c/66b513b7c64a7290c1fbb88e657f7cece992e131> (patch)

## Sources

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

---

Page: https://cve.day/CVE-2021-47654 · Whole record: https://cve.day/CVE-2021-47654.json · Rebuilt by cve.day 2026-11-25T22:58:09.008Z
