CVE-2021-47654Published Feb 26, 2025 · Feb 26Updated Jun 17
samples/landlock: Fix path_list memory leak
Linux
Medium5.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
| No fix yet |
| Linux Linux |
|
|
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.
From the CVE record · Linux
The Linux kernel Landlock sandboxer sample allocates path_list in parse_path() but never frees it, causing a memory leak. The input does not specify how an attacker could trigger the leak or whether access or user interaction is required.
Engineers running the Linux kernel should check whether their version includes the affected Landlock sandboxer sample; affected versions are not specified.