{
  "affected": [
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:12",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:13",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "6.12.117-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    },
    {
      "ecosystem_specific": {
        "urgency": "not yet assigned"
      },
      "package": {
        "ecosystem": "Debian:14",
        "name": "linux"
      },
      "ranges": [
        {
          "events": [
            {
              "introduced": "0"
            },
            {
              "fixed": "7.3.4-1"
            }
          ],
          "type": "ECOSYSTEM"
        }
      ]
    }
  ],
  "details": "In the Linux kernel, the following vulnerability has been resolved:  seccomp: restore knotif-\u003estate when SECCOMP_ADDFD_FLAG_SEND is interrupted  In seccomp_notify_addfd(), when SECCOMP_ADDFD_FLAG_SEND is set in addfd.flags, knotif-\u003estate is optimistically transitioned from SECCOMP_NOTIFY_SENT to SECCOMP_NOTIFY_REPLIED before waking the tracee and waiting on kaddfd.completion:  \tif (addfd.flags \u0026 SECCOMP_ADDFD_FLAG_SEND) { \t\tknotif-\u003estate = SECCOMP_NOTIFY_REPLIED; \t\t... \t}  If wait_for_completion_interruptible(\u0026kaddfd.completion) is interrupted by a signal before the tracee dequeues the kaddfd request (!list_empty(\u0026kaddfd.list)), seccomp_notify_addfd() removes kaddfd from knotif-\u003eaddfd and returns -EINTR to the supervisor without having installed the file descriptor.  However, knotif-\u003estate is left as SECCOMP_NOTIFY_REPLIED (with knotif-\u003eerror == 0 and knotif-\u003eval == 0). This causes two problems:  1. When the tracee runs in do_user_notif(), it checks    if (knotif.state != SECCOMP_NOTIFY_REPLIED) after calling    seccomp_handle_addfd(). Because knotif-\u003estate 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.  2. If the supervisor retries SECCOMP_IOCTL_NOTIF_ADDFD or    SECCOMP_IOCTL_NOTIF_SEND before the tracee runs, it fails with    -EINPROGRESS because knotif-\u003estate is no longer SECCOMP_NOTIFY_SENT.  Fix this by restoring knotif-\u003estate back to SECCOMP_NOTIFY_SENT if SECCOMP_ADDFD_FLAG_SEND was set and kaddfd was not consumed before the interrupted wait. Also add a seccomp_bpf selftest (user_notification_addfd_send_interrupted) covering this race.  Tested in QEMU against Linux 7.3.0-rc3 using the user_notification_addfd_send_interrupted selftest added in this patch (./seccomp_bpf -t user_notification_addfd_send_interrupted): on the unfixed kernel the test fails because the retry ioctl(listener, SECCOMP_IOCTL_NOTIF_ADDFD, \u0026addfd) returns -EINPROGRESS (-1) and the tracee prematurely exits do_user_notif() with return value 0 instead of FD 42, whereas with this patch applied the test passes.",
  "id": "DEBIAN-CVE-2026-138996",
  "modified": "2026-12-01T03:47:30.073722983Z",
  "published": "2026-11-30T14:18:02.413Z",
  "references": [
    {
      "type": "ADVISORY",
      "url": "https://security-tracker.debian.org/tracker/CVE-2026-138996"
    }
  ],
  "upstream": [
    "CVE-2026-138996"
  ]
}