<?xml version='1.0' encoding='UTF-8'?>
<?xml-stylesheet href="/static/style.xsl" type="text/xsl"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
  <id>https://db.gcve.eu/rss/recent/all/10</id>
  <title>Most recent entries from all</title>
  <updated>2026-12-04T19:40:34.027512+00:00</updated>
  <author>
    <name>Vulnerability-Lookup</name>
    <email>info@gcve.eu</email>
  </author>
  <link href="https://db.gcve.eu" rel="alternate"/>
  <generator uri="https://lkiesow.github.io/python-feedgen" version="1.0.0">python-feedgen</generator>
  <subtitle>Contains only the most 10 recent entries.</subtitle>
  <entry>
    <id>https://db.gcve.eu/vuln/cve-2026-99848</id>
    <title>CVE-2026-99848 — apparmor: fix NULL ctx-&gt;peer derefs in unix socket ctx updates</title>
    <updated>2026-12-04T19:40:34.028725+00:00</updated>
    <content type="xhtml">
      <div xmlns="http://www.w3.org/1999/xhtml"><p><strong>Affected:</strong> Linux</p>
<p>In the Linux kernel, the following vulnerability has been resolved:</p>
<p>apparmor: fix NULL ctx-&gt;peer derefs in unix socket ctx updates</p>
<p>aa_unix_file_perm lazily refreshes the AppArmor context cached on a unix
socket. Two of the helpers it uses assume ctx-&gt;peer has already been set:</p>
<p>update_peer_ctx -&gt;  l = aa_label_merge(old, label, GFP_ATOMIC);
	update_sk_ctx   -&gt;  } else if (aa_label_is_subset(plabel, old)) {</p>
<p>where @old is ctx-&gt;peer. Neither aa_label_merge nor aa_label_is_subset
allows NULL. So both fault on the aa_label-&gt;size load.</p>
<p>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</p>
<p>ctx-&gt;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-&gt;peer is still NULL, and the first write that needs revalidation
reaches the helpers above.</p>
<p>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.</p>
<p>A NULL @old ju…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-99848"/>
  </entry>
</feed>
