CVE-2026-99833
publishedapparmor: fix query_data() output overlapping the lookup key
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| Linux | — | Linux317d9a054e1c6d5f18b02b99ce09911942f8e603 to < decf312cdffb13c2c3b5d5217ae7d85e45150f88 · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < e4c6ebf03802ee9e6de2be36d231462d30d49fb0 · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < cddbf0c270b7bb2b21deb7dbcffd9802be23da4f · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < 54f911b9c19582927c932b809e693db840b97e3e · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < f2143b4ecaf6afb81a785b6bf976274e16e58997 · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < ff9f9a86b5b3e0942a96b6a1f91ed074090203c7 · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < 64d601ac18874892cb96bf81dab1fedfe77f41df · 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < d30844001360a403a511cf24fc75ecaa6a7a7544 · Other versions: unaffected | Affected | Not stated | Linux |
| Linux | — | Linux4.13 (affected) · 0 to < 4.13 (unaffected · semver) · 5.10.275 through 5.10.* (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.119 through 6.12.* (unaffected · semver) · 6.18.65 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected | Version-specific | Not stated | Linux |
| Amazon Linux | AL2 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
| Amazon Linux | AL2023 | Release evaluation | Not Affected | Not required | Amazon Linux assessment |
Description
In the Linux kernel, the following vulnerability has been resolved: apparmor: fix query_data() output overlapping the lookup key In query_data(), buf and query point into the same multi_transaction buffer: buf at the start, query a few bytes in, and the lookup key right after the label string that query points to. Reusing the buffer is by design and is safe as long as the query is fully parsed before buf is written to, but the key is not: it is dereferenced on every iteration of label_for_each_confined(), after output has already been written. So when the label has more than one profile with a data table, the data of the first matching profile is written to buf while the key is still needed, and overwrites it if the data is large enough. The later lookups then run on a corrupted key. Besides, if the data has no NUL byte from the key's position to the end of the allocation, strhash() -> strlen() -> jhash() reads past the 4096-byte slab object, triggering an out-of-bound read: BUG: KASAN: slab-out-of-bounds in jhash+0x595/0x5e0 Read of size 1 at addr ff1100001159d000 by task exploit/155 CPU: 0 UID: 1000 PID: 155 Comm: exploit Not tainted 7.3.0-rc7 #1 Call Trace: jhash+0x595/0x5e0 aa_write_access+0x880/0x1400 vfs_write+0x26f/0xd20 ksys_write+0x115/0x210 Writing to the .access file is unprivileged (0666), but triggering this requires loaded profiles that carry a data table, which needs CAP_MAC_ADMIN and is not the case on default distribution policies. Fix by copying the key with kstrdup() before writing any output to buf, so the key stays valid across all loop iterations regardless of what gets written to the overlapping buffer.
Related advisories
Vendor advisories explicitly linked to this CVE.
No linked advisories were found for this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
No normalized assessments.
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| Linux | Linux | 317d9a054e1c6d5f18b02b99ce09911942f8e603 to < decf312cdffb13c2c3b5d5217ae7d85e45150f88 (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < e4c6ebf03802ee9e6de2be36d231462d30d49fb0 (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < cddbf0c270b7bb2b21deb7dbcffd9802be23da4f (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < 54f911b9c19582927c932b809e693db840b97e3e (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < f2143b4ecaf6afb81a785b6bf976274e16e58997 (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < ff9f9a86b5b3e0942a96b6a1f91ed074090203c7 (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < 64d601ac18874892cb96bf81dab1fedfe77f41df (affected · git)317d9a054e1c6d5f18b02b99ce09911942f8e603 to < d30844001360a403a511cf24fc75ecaa6a7a7544 (affected · git)Default: unaffected | Linux · cna |
| Linux | Linux | 4.13 (affected)0 to < 4.13 (unaffected · semver)5.10.275 through 5.10.* (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.119 through 6.12.* (unaffected · semver)6.18.65 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected | Linux · cna |
Weaknesses
0No weakness assertions.
References
8- https://git.kernel.org/stable/c/54f911b9c19582927c932b809e693db840b97e3e
- https://git.kernel.org/stable/c/64d601ac18874892cb96bf81dab1fedfe77f41df
- https://git.kernel.org/stable/c/cddbf0c270b7bb2b21deb7dbcffd9802be23da4f
- https://git.kernel.org/stable/c/d30844001360a403a511cf24fc75ecaa6a7a7544
- https://git.kernel.org/stable/c/decf312cdffb13c2c3b5d5217ae7d85e45150f88
- https://git.kernel.org/stable/c/e4c6ebf03802ee9e6de2be36d231462d30d49fb0
- https://git.kernel.org/stable/c/f2143b4ecaf6afb81a785b6bf976274e16e58997
- https://git.kernel.org/stable/c/ff9f9a86b5b3e0942a96b6a1f91ed074090203c7
Provider assertions
1Linux · cna
apparmor: fix query_data() output overlapping the lookup key
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 7812792417b763689948242b0a7c5fc33034c68a73d43c00517d4f856949bc93
- Ingested
- 30 Nov 2026, 13:30:07 UTC
- Source record
- Official CVE record