PT-2026-162815

CVE-2026-99848

·

Published

2026-11-30

·

Updated

2026-11-30

Description by

Score
N/A
Not available

No severity ratings or metrics are available. When they are, we'll update the corresponding info on the page.

In the Linux kernel, the following vulnerability has been resolved:
apparmor: fix NULL ctx->peer derefs in unix socket ctx updates
aa unix file perm lazily refreshes the AppArmor context cached on a unix socket. Two of the helpers it uses assume ctx->peer has already been set:
update peer ctx -> l = aa label merge(old, label, GFP ATOMIC);
update sk ctx  -> } else if (aa label is subset(plabel, old)) {
where @old is ctx->peer. Neither aa label merge nor aa label is subset allows NULL. So both fault on the aa label->size load.
BUG: kernel NULL pointer dereference, address: 000000000000004c RIP: 0010: aa label next not in set+0xb/0xd0 Call Trace: aa label is subset+0x3f/0x70 aa unix file perm+0x5e8/0x9d0 aa file perm+0x45a/0x550 apparmor file permission+0x44/0xb0 security file permission+0x40/0x100 rw verify area+0x56/0x180 vfs write+0x7c/0x480 ksys write+0xbf/0xf0
ctx->peer is only recorded for stream connections and socket pairs. unix dgram connect sets unix peer(sk) without going through that path, so a connected AF UNIX datagram socket has unix peer(sk) set while ctx->peer is still NULL, and the first write that needs revalidation reaches the helpers above.
Both derefs date back to the Fixes: commit, but the update sk ctx() one was dormant until commit 4483efe4f215 ("apparmor: fix shadowing of plabel that prevents cache from being updated") stopped @plabel being shadowed, which is why bisecting the oops lands there.
A NULL @old just means no peer label has been recorded yet, so install the label directly instead of merging or comparing against it.
Vendors
Affected products
Related identifiers
Found an issue in the description? Have something to add? Feel free to write us 👾