Linux
apparmor: fix potential UAF in aa_replace_profiles
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < 9d8e47cbce7536f19c96e37d0685a042010187ee
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < 9d37dc6376e336dc4b4f39a7ad0d069aa70e9495
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < c0f3a3fda617beeec58708720304dd026a1a4dd7
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < 5cba148eae6e8550c2889f5c0f94d72bed864321
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < c44de0880b7ccc15c70a6352b5e107677d32b061
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < 57b1bd4486d56254bb8af1a8f3d4445bbe505290
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb
- >= 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52, < 7b42f95813dc9ceb6bda35afcf914630909a19f9
Fixed in 9d8e47cbce7536f19c96e37d0685a042010187ee, 9d37dc6376e336dc4b4f39a7ad0d069aa70e9495, c0f3a3fda617beeec58708720304dd026a1a4dd7, 5cba148eae6e8550c2889f5c0f94d72bed864321, c44de0880b7ccc15c70a6352b5e107677d32b061, 57b1bd4486d56254bb8af1a8f3d4445bbe505290, dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb, 7b42f95813dc9ceb6bda35afcf914630909a19f9
- 4.11
Fixed in 0, 5.10.261, 5.15.212, 6.1.178, 6.6.145, 6.12.97, 6.18.40, 7.1.5, 7.2
Mitigation
Upgrade Linux to 9d8e47cbce7536f19c96e37d0685a042010187ee or 9d37dc6376e336dc4b4f39a7ad0d069aa70e9495 or c0f3a3fda617beeec58708720304dd026a1a4dd7 or 5cba148eae6e8550c2889f5c0f94d72bed864321 or c44de0880b7ccc15c70a6352b5e107677d32b061 or 57b1bd4486d56254bb8af1a8f3d4445bbe505290 or dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb or 7b42f95813dc9ceb6bda35afcf914630909a19f9 or later.
Upgrade Linux to 0 or 5.10.261 or 5.15.212 or 6.1.178 or 6.6.145 or 6.12.97 or 6.18.40 or 7.1.5 or 7.2 or later.
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.