What’s Vulnerable › Vulnerabilities
CVE-2021-47654: samples/landlock: Fix path_list memory leak
- Severity: medium (CVSS 5.5 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.3% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-02-26 · updated 2026-06-17
- Weakness: CWE-401
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 products
- Linux kernel: before 5.15.33; from 5.16 before 5.16.19; from 5.17 before 5.17.2 — fixed in 5.15.33, 5.16.19, 5.17.2
How to fix
Upgrade to a fixed version: Linux kernel 5.15.33, 5.16.19, 5.17.2. Check the vendor advisory for mitigations.
References
- https://git.kernel.org/stable/c/017196730299ccd6eed24bbfabed8af4ffd81530
- https://git.kernel.org/stable/c/20fbf100f84b9aeb9c91421abe1927bc152bc32b
- https://git.kernel.org/stable/c/49b0d8bf05809df5f87e5c03e26d74bdfdab4571
- https://git.kernel.org/stable/c/66b513b7c64a7290c1fbb88e657f7cece992e131
Get alerted when CVE-2021-47654 or the next vulnerability affects your stack