CVE-2026-99833: apparmor: fix query_data() output overlapping the lookup key
apparmor: fix querydata() output overlapping the lookup key
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.10.275 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 5.15.226 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.1.193 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.6.163 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.12.119 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 6.18.65 - Upgrade
Upgrade
linux/Kernelto a version that resolves this vulnerability.Fixed in 7.3.4 - Upgrade
Upgrade
debian/linuxto a version that resolves this vulnerability.Fixed in 7.3.4-1 - Compensating control
In AppArmor query_data(), copy the lookup key with kstrdup() before writing any output to buf, so the output cannot overwrite the key.
Event History
Frequently Asked Questions
What conditions are required to trigger the out-of-bounds read?
The queried label must contain more than one profile with a data table. Data from an earlier matching profile must be large enough to overwrite the lookup key, and the overwritten region must contain no NUL byte between the key position and the end of the 4096-byte allocation.
What is the observable impact when the issue is triggered?
Later profile data-table lookups use a corrupted key. In the described case, hashing that key causes strlen() and jhash() to read beyond the 4096-byte slab object, producing a KASAN slab-out-of-bounds report.
How can I identify a potentially affected runtime?
KASAN-enabled systems may report a slab-out-of-bounds read in jhash(), with strlen() and AppArmor query_data() in the call path. The report may occur while processing a query involving a label with multiple profiles that have data tables.