Skip to contentSkip to conversation

CVE-2026-80619: apparmor: fix potential UAF in aa_replace_profiles

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 28

lore
Share & tools
lore
#0 lore raw

From: Greg Kroah-Hartman <[email protected]>

Description
===========

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.

The Linux kernel CVE team has assigned CVE-2026-80619 to this issue.

Affected and fixed versions
===========================

	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 5.10.261 with commit 9d8e47cbce7536f19c96e37d0685a042010187ee
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 5.15.212 with commit 9d37dc6376e336dc4b4f39a7ad0d069aa70e9495
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 6.1.178 with commit c0f3a3fda617beeec58708720304dd026a1a4dd7
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 6.6.145 with commit 5cba148eae6e8550c2889f5c0f94d72bed864321
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 6.12.97 with commit c44de0880b7ccc15c70a6352b5e107677d32b061
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 6.18.40 with commit 57b1bd4486d56254bb8af1a8f3d4445bbe505290
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 7.1.5 with commit dd5f1202f45a2dbe2c7dd10093f5c6bb2d8ac5bb
	Issue introduced in 4.11 with commit 5ac8c355ae0013d82b3a07b49aebeadfce9b6e52 and fixed in 7.2 with commit 7b42f95813dc9ceb6bda35afcf914630909a19f9

Please see https://www.kernel.org for a full list of currently supported kernel versions by the kernel community.

Unaffected versions might change over time as fixes are backported to older supported kernel versions. The official CVE entry at

	https://cve.org/CVERecord/?id=CVE-2026-80619

will be updated if fixes are backported, please check that for the most up to date information about this issue.

Affected files
==============

The file(s) affected by this issue are:
security/apparmor/policy.c

Mitigation
==========

The Linux kernel CVE team recommends that you update to the latest stable kernel version for this, and many other bugfixes. Individual changes are never tested alone, but rather are part of a larger kernel release. Cherry-picking individual commits is not recommended or supported by the Linux kernel community at all. If however, updating to the latest release is impossible, the individual changes to resolve this issue can be found at these commits:

	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