Skip to contentSkip to conversation

CVE-2026-72457: apparmor: fail policy unpack on accept2 allocation failure

DISCUSSION Greg Kroah-Hartman 1 participant 1 message Aug 15

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: 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.

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

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

	Issue introduced in 6.17 with commit 2e12c5f060176ede209673e4f63ea5d0e3c5814c and fixed in 6.18.40 with commit 22dc9433d458cff1270f120685114a9753e0ad1b
	Issue introduced in 6.17 with commit 2e12c5f060176ede209673e4f63ea5d0e3c5814c and fixed in 7.1.5 with commit 106e909e12baf059538f0b0f1a59f87781d25b3c
	Issue introduced in 6.17 with commit 2e12c5f060176ede209673e4f63ea5d0e3c5814c and fixed in 7.2-rc1 with commit 45cf568241048e560a81aa2053f06a62069f5640

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-72457

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_unpack.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/22dc9433d458cff1270f120685114a9753e0ad1b
	https://git.kernel.org/stable/c/106e909e12baf059538f0b0f1a59f87781d25b3c
	https://git.kernel.org/stable/c/45cf568241048e560a81aa2053f06a62069f5640