apparmor: release exe file resources on path failure
Linux
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:
apparmor: release exe file resources on path failure
get_current_exe_path() takes both an exe_file reference and a path reference before resolving the path name. If aa_path_name() failed, it returned immediately and leaked both references.
Route the failure through the common cleanup path so fput() and path_put() always run after the references are acquired.
From the CVE record · Linux
AppArmor's get_current_exe_path() leaks an executable-file reference and a path reference if path-name resolution fails. The input does not establish how an attacker could trigger the failure or whether network access, authentication, or user interaction is required.
Teams running the Linux kernel should check whether their build includes the affected AppArmor code; affected versions are not specified.