apparmor: fix potential UAF in aa_replace_profiles
Linux
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
Linux
| Product | Affected | Fixed in |
|---|---|---|
| Linux Linux |
|
≥ 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 · < 57b1bd4486d56254bb8af1a8f3d4445bbe505290| No fix yet |
| Linux Linux |
|
|
In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix potential UAF in aa_replace_profiles
The function aa_replace_profiles was accessing udata->size after calling aa_put_loaddata(udata), causing a potential UAF.
Fixed this by saving the size to a local variable before dropping the reference.
From the CVE record · Linux
The Linux kernel's aa_replace_profiles function could access a load-data size after releasing the data, causing a potential use-after-free. The input does not specify what an attacker could do with this flaw or whether exploitation requires network access, authentication, or user interaction.
Engineers running Linux kernels with AppArmor should check their systems; affected versions are not specified.