apparmor: fail policy unpack on accept2 allocation 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 |
|
|
6.18.407.1.57.2In the Linux kernel, the following vulnerability has been resolved:
apparmor: fail policy unpack on accept2 allocation failure
unpack_pdb() may need to allocate a missing ACCEPT2 table for older policy data. If that allocation failed, it set an error message but jumped to the success path, returning a policydb with the required table missing.
Return -ENOMEM through the normal failure path when the ACCEPT2 allocation fails. Remove the now-unused out label.
From the CVE record · Linux
When unpacking older AppArmor policy data, an allocation failure for a missing ACCEPT2 table can cause the Linux kernel to return a policy database without that required table instead of failing. The input does not specify what an attacker could do, or whether network access, authentication, or user interaction is required.
Engineers running Linux kernels with AppArmor should check whether their versions are affected; no affected versions are specified.