<?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:34:02.073319+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-138996</id>
    <title>CVE-2026-138996 — seccomp: restore knotif-&gt;state when SECCOMP_ADDFD_FLAG_SEND is interrupted</title>
    <updated>2026-12-04T19:34:02.074769+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>seccomp: restore knotif-&gt;state when SECCOMP_ADDFD_FLAG_SEND is interrupted</p>
<p>In seccomp_notify_addfd(), when SECCOMP_ADDFD_FLAG_SEND is set in
addfd.flags, knotif-&gt;state is optimistically transitioned from
SECCOMP_NOTIFY_SENT to SECCOMP_NOTIFY_REPLIED before waking the tracee
and waiting on kaddfd.completion:</p>
<p>if (addfd.flags &amp; SECCOMP_ADDFD_FLAG_SEND) {
		knotif-&gt;state = SECCOMP_NOTIFY_REPLIED;
		...
	}</p>
<p>If wait_for_completion_interruptible(&amp;kaddfd.completion) is interrupted
by a signal before the tracee dequeues the kaddfd request
(!list_empty(&amp;kaddfd.list)), seccomp_notify_addfd() removes kaddfd from
knotif-&gt;addfd and returns -EINTR to the supervisor without having
installed the file descriptor.</p>
<p>However, knotif-&gt;state is left as SECCOMP_NOTIFY_REPLIED (with
knotif-&gt;error == 0 and knotif-&gt;val == 0). This causes two problems:</p>
<p>1. When the tracee runs in do_user_notif(), it checks
   if (knotif.state != SECCOMP_NOTIFY_REPLIED) after calling
   seccomp_handle_addfd(). Because knotif-&gt;state is already
   SECCOMP_NOTIFY_REPLIED, the tracee exits the notification wait loop
   prematurely and returns 0 from the trapped syscall without the file
   descriptor ever having been installed.</p>
<p>2. If the supervisor retries SECCOMP_IOCTL_NOTIF_ADDFD or
   SECCOMP_IOCTL_NOTIF_SEND before the tracee runs, it fails with
   -EINPROGRESS because knotif-&gt;state is no longer SECCOMP_NOTIFY_SENT.</p>
<p>Fix this by restoring knotif-&gt;st…</p></div>
    </content>
    <link href="https://db.gcve.eu/vuln/cve-2026-138996"/>
  </entry>
</feed>
