Search CVEs and advisories

Search CVEs and Linux security advisories by vendor, product, package, or severity, and see which vulnerabilities each advisory addresses.

CVE

CVE-2026-138996

published

seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted

Published
30 Nov 2026, 13:26:54 UTC
Updated
30 Nov 2026, 13:26:54 UTC
Language
en

Package status and fixes

Distro / vendorReleasePackage / productPublisher statusFixed buildSource
Linux — Linux0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < fdab56398223c6084ca5a8dd1d5e5ed3262ce44f · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 386bab3924f755841d22a3004aa666015a28f9fc · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 86ad71967cca94b6972fc3ef099d494ebff6c290 · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 2849bbaafd4f485aee87109d4225eb222eee5418 · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 872bd917485f9332469a793a10c164a450813d6a · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 71a0eaa2ac84e20a9bf0fd40edd1eddd36181e6a · 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 832b9b176be06a20747a267db6bc0010a24b74f4 · 31a5fc473d74d943438a03f83f519aac8d65ebe3 · 5.13.2 to < 5.14 · Other versions: unaffected Affected Not stated Linux
Linux — Linux5.14 (affected) · 0 to < 5.14 (unaffected · semver) · 5.15.226 through 5.15.* (unaffected · semver) · 6.1.193 through 6.1.* (unaffected · semver) · 6.6.163 through 6.6.* (unaffected · semver) · 6.12.117 through 6.12.* (unaffected · semver) · 6.18.63 through 6.18.* (unaffected · semver) · 7.3.4 through 7.3.* (unaffected · semver) · 7.4-rc1 and later (unaffected · original_commit_for_fix) · Other versions: affected Version-specific Not stated Linux
Amazon Linux AL2 Release evaluation Pending Fix; Not Affected Not stated Amazon Linux assessment
Amazon Linux AL2023 Release evaluation Pending Fix Not stated Amazon Linux assessment

Description

In the Linux kernel, the following vulnerability has been resolved: seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted In seccomp_notify_addfd(), when SECCOMP_ADDFD_FLAG_SEND is set in addfd.flags, knotif->state is optimistically transitioned from SECCOMP_NOTIFY_SENT to SECCOMP_NOTIFY_REPLIED before waking the tracee and waiting on kaddfd.completion: if (addfd.flags & SECCOMP_ADDFD_FLAG_SEND) { knotif->state = SECCOMP_NOTIFY_REPLIED; ... } If wait_for_completion_interruptible(&kaddfd.completion) is interrupted by a signal before the tracee dequeues the kaddfd request (!list_empty(&kaddfd.list)), seccomp_notify_addfd() removes kaddfd from knotif->addfd and returns -EINTR to the supervisor without having installed the file descriptor. However, knotif->state is left as SECCOMP_NOTIFY_REPLIED (with knotif->error == 0 and knotif->val == 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->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. 2. If the supervisor retries SECCOMP_IOCTL_NOTIF_ADDFD or SECCOMP_IOCTL_NOTIF_SEND before the tracee runs, it fails with -EINPROGRESS because knotif->state is no longer SECCOMP_NOTIFY_SENT. Fix this by restoring knotif->state 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, &addfd) 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.

en · Linux · cna

Vendor advisories explicitly linked to this CVE.

0

No linked advisories were found for this CVE.

Assessment

CVSS risk assessment and additional context for this vulnerability.

No normalized assessments.

Publisher product statements

Version ranges and default statuses as reported by each provider.

Affected vendor and product assertions
VendorProductVersion statusSource
Linux Linux 0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < fdab56398223c6084ca5a8dd1d5e5ed3262ce44f (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 386bab3924f755841d22a3004aa666015a28f9fc (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 86ad71967cca94b6972fc3ef099d494ebff6c290 (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 2849bbaafd4f485aee87109d4225eb222eee5418 (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 872bd917485f9332469a793a10c164a450813d6a (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 71a0eaa2ac84e20a9bf0fd40edd1eddd36181e6a (affected · git)0ae71c7720e3ae3aabd2e8a072d27f7bd173d25c to < 832b9b176be06a20747a267db6bc0010a24b74f4 (affected · git)31a5fc473d74d943438a03f83f519aac8d65ebe3 (affected · git)5.13.2 to < 5.14 (affected · semver)Default: unaffected Linux · cna
Linux Linux 5.14 (affected)0 to < 5.14 (unaffected · semver)5.15.226 through 5.15.* (unaffected · semver)6.1.193 through 6.1.* (unaffected · semver)6.6.163 through 6.6.* (unaffected · semver)6.12.117 through 6.12.* (unaffected · semver)6.18.63 through 6.18.* (unaffected · semver)7.3.4 through 7.3.* (unaffected · semver)7.4-rc1 and later (unaffected · original_commit_for_fix)Default: affected Linux · cna

Weaknesses

0

No weakness assertions.

References

7

Provider assertions

1

Linux · cna

seccomp: restore knotif->state when SECCOMP_ADDFD_FLAG_SEND is interrupted

Provenance

Schema
5.2
Searchable
yes
Content hash
02c4b4e45f8a9e5701a6bd4baabb7eea116ee44c8532ec6797389ba37583ab79
Ingested
30 Nov 2026, 13:36:39 UTC
Source record
Official CVE record

Search filters

Match options apply to free text. CVE words match tokens; use contains:"…" for literal substrings.

Text

Words and phrases
buffer overflow "remote code execution"
Word prefix
auth*
Literal substring (title or description)
contains:"use-after-free"
Exclude a term or filter
-test -vendor:example

Affected product

Vendor
vendor:Example
Product
product:"Demo Widget"

Severity and score

Severity · none, low, medium, high, critical, unknown
severity:critical
CWE identifier
cwe:CWE-863
CVSS score (0–10)
cvss:>=7.0

Dates and status

Published date · comparisons, relative days
published:>=2026-01-01
Updated date · comparisons, relative days
updated:<30d
Status · published (default), rejected, unknown
status:rejected