apparmor: fix query_data() output overlapping the lookup key
Severity and exploitation
KEV coverage does not rule out exploitation.
Severity
unknownCVSS measures technical severity, not the likelihood of an attack.
Known exploitation
Not listed in the checked CISA KEV catalog
Absence from CISA KEV does not rule out attacks.
Public exploit
Not established by this record
Missing evidence does not mean no public exploit exists.
Remediation
Fix status not established
No structured fix or guidance is available here. Check the latest publisher advisory.
What this means
In the Linux kernel, the following vulnerability has been resolved:
Source excerpt · LinuxAttack conditions
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.
Excerpt from the original source description below.
Review supporting sources →Affected versions
Check the exact model, release, and any platform requirements against your installation.
Linux · Linux
Linux
8 ranges
Linux · Linux
Linux
Compare with this publisher’s ranges. This does not inspect your installation.
affected
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before decf312cdffb13c2c3b5d5217ae7d85e45150f88
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before e4c6ebf03802ee9e6de2be36d231462d30d49fb0
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before cddbf0c270b7bb2b21deb7dbcffd9802be23da4f
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before 54f911b9c19582927c932b809e693db840b97e3e
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before f2143b4ecaf6afb81a785b6bf976274e16e58997
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before ff9f9a86b5b3e0942a96b6a1f91ed074090203c7
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before 64d601ac18874892cb96bf81dab1fedfe77f41df
git versions
317d9a054e1c6d5f18b02b99ce09911942f8e603 → before d30844001360a403a511cf24fc75ecaa6a7a7544
git versions
Other versions: unaffected
Linux · Linux
Linux
10 ranges
Linux · Linux
Linux
Compare with this publisher’s ranges. This does not inspect your installation.
affected
4.13
unaffected
0 → before 4.13
semver versions
5.10.275 → through 5.10.*
semver versions
5.15.226 → through 5.15.*
semver versions
6.1.193 → through 6.1.*
semver versions
6.6.163 → through 6.6.*
semver versions
6.12.119 → through 6.12.*
semver versions
6.18.65 → through 6.18.*
semver versions
7.3.4 → through 7.3.*
semver versions
7.4-rc1 → through *
original_commit_for_fix versions
Other versions: affected
What to do
Compare your installed product and version with the affected versions above. A matching product name alone does not confirm exposure.
No structured fix or remediation guidance is available here. Check the full source description and vendor’s latest advisory for a patch or workaround; do not assume another version is safe.
cve.new guidance unless attributed to a publisher. This page does not inspect your installation.
Public exploit evidence
No public exploit reference is identified in the imported evidence. This is not a claim that no exploit exists.
Original source description
Read the full publisher 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.
References
8 sourcesInside the record
Evidence available
Describes the evidence in this view, not whether the product is safe.
Original records
CVE-2026-99833View the latest unmodified CVE JSON from the official source. It may be newer than this imported page.
cve.new JSON →Environment requirements
These conditions apply together as specified by the publisher. A matching product name alone does not establish exposure.
Linux · platform conditions
Any condition may hold
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 5.10.275
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 5.15.226
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 6.1.193
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 6.6.163
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 6.12.119
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 6.18.65
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 7.3.4
Vulnerable product
cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*From (inclusive): 4.13
Before: 7.4-rc1
Applicability preview
[
{
"nodes": [
{
"operator": "OR",
"negate": false,
"cpeMatch": [
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "5.10.275"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "5.15.226"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "6.1.193"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "6.6.163"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "6.12.119"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "6.18.65"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "7.3.4"
},
{
"vulnerable": true,
"criteria": "cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:*",
"versionStartIncluding": "4.13",
"versionEndExcluding": "7.4-rc1"
}
]
}
]
}
]Contributing organizations · 1
Assigning organization
Timeline
All times UTCAdvisory published
Publication date supplied by the source.
Last imported by cve.new
Latest catalog import, not the date we first saw this advisory.
What changed
Follow changesLarge field values are marked as truncated previews. Original source snapshots remain retained.
Related advisories
Recent advisories affecting the same package or the same recorded vendor and product. These are separate vulnerabilities, not additional evidence for this advisory.
KVM: nSVM: Check validity of vmcs01 save area copied from SMRAM on RSM
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
9p/xen: drain response work after unbinding IRQ
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
mm/shmem: hold off eviction in shmem_writeout()
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
mm: do not unintentionally overwrite atomic VMA flags
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
ocfs2/cluster: hold a reference on the heartbeat thread
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established
ocfs2/heartbeat: serialize concurrent writes to a region's dev attribute
In the Linux kernel, the following vulnerability has been resolved:
No structured fix or guidance is available here. Check the latest publisher advisory.
Exploitation not established