apparmor: check accept index + 1 is in bounds

State
Published
Severity
Not Scored
Published
Nov 30, 2026
Updated
Nov 30, 2026
Reserved
Sep 25, 2026

Read the record on cve.org

Description

In the Linux kernel, the following vulnerability has been resolved:

apparmor: check accept index + 1 is in bounds

aa_lookup_condperms() returns perms[index + 1] when an accept entry has ACCEPT_FLAG_OWNER set and the subject uid does not match the file uid, so such an entry consumes two slots in the perms table. But verify_dfa_accept_index() only checks that index is within the perms table, so a policy that sets the owner flag on the last entry is accepted, and the runtime lookup then reads perms[index + 1] one entry past the end of the table.

The perms table is allocated by unpack_perms_table() with a u16 size read from the policy blob, so a crafted policy can place the owner flag at index size - 1 to reach the out-of-bounds read.

Check that index + 1 is also in bounds when the owner flag is set.

ProductVersions
Linux Linux6f442d42c0d89876994a4a135eadf82b0e6ff6e4 to before b816ebeb649ce7fc36921fab226dd58bb12b520d Affected6f442d42c0d89876994a4a135eadf82b0e6ff6e4 to before 1ef71b9b07010096a410dbab7953a0104d5c450b Affected6f442d42c0d89876994a4a135eadf82b0e6ff6e4 to before e5b1fefc2dcd8951874be43f409c8a61f574f6d9 Affected6f442d42c0d89876994a4a135eadf82b0e6ff6e4 to before 92ab39831d6931bdd1a669c513baafdb9cf1c22d Affected6f442d42c0d89876994a4a135eadf82b0e6ff6e4 to before afe5d5a747393cb3d00795db31d7fce5108a766a Affected346b1ac789fa8e666d1b564d9b9fa8880644faa0 Affected6.4.4 to before 6.5 Affected
Linux Linux6.5 Affectedbefore 6.5 Not Affected6.6.163 through 6.6.* Not Affected6.12.118 through 6.12.* Not Affected6.18.63 through 6.18.* Not Affected7.3.4 through 7.3.* Not Affected7.4-rc1 and later Not Affected

Weaknesses

The record names no weakness.

References

Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.