{"id":"CVE-2026-80619","state":"PUBLISHED","title":"apparmor: fix potential UAF in aa_replace_profiles","description":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix potential UAF in aa_replace_profiles\n\nThe function aa_replace_profiles was accessing udata->size after calling\naa_put_loaddata(udata), causing a potential UAF.\n\nFixed this by saving the size to a local variable before dropping the\nreference.","publishedAt":"2026-08-28T06:48:38.702Z","updatedAt":"2026-08-29T06:21:26.537Z","severity":{"score":7.8,"label":"High","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","source":"Linux"},"assigner":"Linux","products":["Linux Linux"],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"9d8e47cbce7536f19c96e37d0685a042010187ee","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"9d37dc6376e336dc4b4f39a7ad0d069aa70e9495","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"c0f3a3fda617beeec58708720304dd026a1a4dd7","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"5cba148eae6e8550c2889f5c0f94d72bed864321","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"c44de0880b7ccc15c70a6352b5e107677d32b061","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"57b1bd4486d56254bb8af1a8f3d4445bbe505290","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"7b42f95813dc9ceb6bda35afcf914630909a19f9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/policy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/policy.c"]}],"references":["https://git.kernel.org/stable/c/9d8e47cbce7536f19c96e37d0685a042010187ee","https://git.kernel.org/stable/c/9d37dc6376e336dc4b4f39a7ad0d069aa70e9495","https://git.kernel.org/stable/c/c0f3a3fda617beeec58708720304dd026a1a4dd7","https://git.kernel.org/stable/c/5cba148eae6e8550c2889f5c0f94d72bed864321","https://git.kernel.org/stable/c/c44de0880b7ccc15c70a6352b5e107677d32b061","https://git.kernel.org/stable/c/57b1bd4486d56254bb8af1a8f3d4445bbe505290","https://git.kernel.org/stable/c/dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb","https://git.kernel.org/stable/c/7b42f95813dc9ceb6bda35afcf914630909a19f9"],"weaknesses":[],"ingestedAt":"2026-10-29T20:13:07.220Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/80xxx/CVE-2026-80619.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-80619","state":"PUBLISHED","datePublished":"2026-08-28T06:48:38.702Z","dateUpdated":"2026-08-29T06:21:26.537Z","assignerShortName":"Linux","assignerOrgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateReserved":"2026-08-26T14:34:25.774Z"},"containers":{"cna":{"title":"apparmor: fix potential UAF in aa_replace_profiles","descriptions":[{"lang":"en","value":"In the Linux kernel, the following vulnerability has been resolved:\n\napparmor: fix potential UAF in aa_replace_profiles\n\nThe function aa_replace_profiles was accessing udata->size after calling\naa_put_loaddata(udata), causing a potential UAF.\n\nFixed this by saving the size to a local variable before dropping the\nreference."}],"affected":[{"vendor":"Linux","product":"Linux","defaultStatus":"unaffected","versions":[{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"9d8e47cbce7536f19c96e37d0685a042010187ee","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"9d37dc6376e336dc4b4f39a7ad0d069aa70e9495","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"c0f3a3fda617beeec58708720304dd026a1a4dd7","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"5cba148eae6e8550c2889f5c0f94d72bed864321","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"c44de0880b7ccc15c70a6352b5e107677d32b061","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"57b1bd4486d56254bb8af1a8f3d4445bbe505290","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb","versionType":"git"},{"version":"5ac8c355ae0013d82b3a07b49aebeadfce9b6e52","status":"affected","lessThan":"7b42f95813dc9ceb6bda35afcf914630909a19f9","versionType":"git"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/policy.c"]},{"vendor":"Linux","product":"Linux","defaultStatus":"affected","versions":[{"version":"4.11","status":"affected"},{"version":"0","status":"unaffected","lessThan":"4.11","versionType":"semver"},{"version":"5.10.261","status":"unaffected","lessThanOrEqual":"5.10.*","versionType":"semver"},{"version":"5.15.212","status":"unaffected","lessThanOrEqual":"5.15.*","versionType":"semver"},{"version":"6.1.178","status":"unaffected","lessThanOrEqual":"6.1.*","versionType":"semver"},{"version":"6.6.145","status":"unaffected","lessThanOrEqual":"6.6.*","versionType":"semver"},{"version":"6.12.97","status":"unaffected","lessThanOrEqual":"6.12.*","versionType":"semver"},{"version":"6.18.40","status":"unaffected","lessThanOrEqual":"6.18.*","versionType":"semver"},{"version":"7.1.5","status":"unaffected","lessThanOrEqual":"7.1.*","versionType":"semver"},{"version":"7.2","status":"unaffected","lessThanOrEqual":"*","versionType":"original_commit_for_fix"}],"repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","programFiles":["security/apparmor/policy.c"]}],"references":[{"url":"https://git.kernel.org/stable/c/9d8e47cbce7536f19c96e37d0685a042010187ee"},{"url":"https://git.kernel.org/stable/c/9d37dc6376e336dc4b4f39a7ad0d069aa70e9495"},{"url":"https://git.kernel.org/stable/c/c0f3a3fda617beeec58708720304dd026a1a4dd7"},{"url":"https://git.kernel.org/stable/c/5cba148eae6e8550c2889f5c0f94d72bed864321"},{"url":"https://git.kernel.org/stable/c/c44de0880b7ccc15c70a6352b5e107677d32b061"},{"url":"https://git.kernel.org/stable/c/57b1bd4486d56254bb8af1a8f3d4445bbe505290"},{"url":"https://git.kernel.org/stable/c/dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb"},{"url":"https://git.kernel.org/stable/c/7b42f95813dc9ceb6bda35afcf914630909a19f9"}],"metrics":[{"cvssV3_1":{"version":"3.1","vectorString":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","baseScore":7.8,"baseSeverity":"HIGH"},"scenarios":[{"lang":"en","value":"AV:L - The flaw is only reachable via local write() to AppArmor policy management interfaces (/sys/kernel/security/apparmor/.load or .replace, or namespace .load/.replace under apparmorfs), which invoke policy_update() -> aa_replace_profiles(); there is no network or adjacent protocol path.\nAC:L - An attacker with policy-admin rights can trigger the bug by loading or replacing policy (including duplicate rawdata dedup paths) while concurrently removing/replacing profiles so aa_put_profile_loaddata() at the out label can drop the last pcount and schedule do_ploaddata_rmfs() before udata->size is read; the attacker controls both sides of this race.\nPR:L - aa_replace_profiles() is gated by aa_may_manage_policy(), which requires CAP_MAC_ADMIN and policy-view rights; with default unprivileged_userns_apparmor_policy=1, namespace UID 0 in an unprivileged user namespace can satisfy these without init-namespace root, matching prior AppArmor policy-load CVE scoring.\nUI:N - Exploitation requires only the attacker's own write of policy data to .load/.replace; no separate victim action, mount, or administrator interaction beyond the attacker's policy-management operation is needed.\nS:U - The UAF corrupts kernel AppArmor loaddata within the same OS security authority as the caller; it is standard kernel memory corruption/local privilege escalation, not a VM escape, IOMMU bypass, or cross-authority sandbox breakout.\nC:H - Reading udata->size after aa_put_profile_loaddata() is a use-after-free on struct aa_loaddata; freed heap objects can be reallocated and the size field read gives attacker-influenced kernel heap disclosure primitives per kernel CVSS UAF guidance.\nI:H - UAF on aa_loaddata enables heap grooming and corruption of adjacent kernel objects through controlled policy load/free timing, providing a well-established path to arbitrary kernel writes and local privilege escalation beyond the initial policy-admin capability.\nA:H - When the last profile reference is dropped at cleanup, the deferred free can run before the post-put size read, causing refcount corruption, kernel oops/BUG, or panic; UAF bugs are scored Availability High even when full exploitation is not attempted."}]}],"providerMetadata":{"shortName":"Linux","orgId":"416baaa9-dc9f-4396-8d5f-8c081fb06d67","dateUpdated":"2026-08-29T06:21:26.537Z"},"cpeApplicability":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.10.261"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"5.15.212"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.1.178"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.6.145"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.12.97"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"6.18.40"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.1.5"},{"vulnerable":true,"criteria":"cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*","versionStartIncluding":"4.11","versionEndExcluding":"7.2"}]}]}],"x_generator":{"engine":"bippy-1.2.0"}}}}}