# CVE-2026-98983: unshare: don't drop active namespace references that were never taken

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.20% (percentile 5, 2026-11-26)
- **Published:** 2026-10-23T12:20:00.918Z
- **Modified:** 2026-10-23T13:17:20.160Z

## Who should check

- Anyone running Linux \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 56fe03a0c05dba4c5f6a23c391f96de1614a098c; \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 0b6f31a3c0b16066f812e94b52a704174a6f23cd; 27ae6b17c9ba7ff353ab0906297f08aa845782b4; 297261b343371c4f0b31055d53d285138ec21565; 813a47b0309097da71781ee4ac11922e39b67d55; 6e608e3e5ce12ce7fd21e46212eccca37f917d0e; a261fccdb4ac58ec5ba6aa1d92a6cc418fff301f; 665dc1ed16357988d439fc5bbc860ee36f540d81; \>= 5.15.209, \< 5.16; \>= 6.1.175, \< 6.2; …
- Anyone running Linux 7.1

## Description

In the Linux kernel, the following vulnerability has been resolved:

unshare: don't drop active namespace references that were never taken

Active references on the namespaces of an nsproxy are taken when the
nsproxy is installed into a task in switch\_task\_namespaces() and
copy\_namespaces() and dropped again by put\_nsproxy() through
deactivate\_nsproxy().

But ksys\_unshare() calls put\_nsproxy() on an nsproxy that was never
installed when set\_cred\_ucounts() fails. The new namespaces of that
nsproxy go from zero to minus one and the namespaces shared with the
caller lose a reference that belongs to the nsproxy the caller keeps
using:

  WARNING: kernel/nscommon.c:171 at \_\_ns\_ref\_active\_put+0x1cd/0x230
   nsproxy\_ns\_active\_put
   deactivate\_nsproxy
   ksys\_unshare

Afterwards the namespaces the caller lives in aren't listed by listns()
anymore. set\_cred\_ucounts() only fails when alloc\_ucounts() can't
allocate and it only allocates when the real uid of the caller differs
from its effective uid.

Commit cefd55bd2159 ("nsproxy: fix free\_nsproxy() and simplify
create\_new\_namespaces()") separated the two cases on purpose.
nsproxy\_free() frees an nsproxy that was prepared but never installed
and that's what a failed setns() uses in put\_nsset(). Export it and use
it for a failed unshare() as well.

## Affected and fixed versions

- Linux: \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 56fe03a0c05dba4c5f6a23c391f96de1614a098c; \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 0b6f31a3c0b16066f812e94b52a704174a6f23cd; 27ae6b17c9ba7ff353ab0906297f08aa845782b4; 297261b343371c4f0b31055d53d285138ec21565; 813a47b0309097da71781ee4ac11922e39b67d55; 6e608e3e5ce12ce7fd21e46212eccca37f917d0e; a261fccdb4ac58ec5ba6aa1d92a6cc418fff301f; 665dc1ed16357988d439fc5bbc860ee36f540d81; \>= 5.15.209, \< 5.16; \>= 6.1.175, \< 6.2; … (cvelist)
- Linux: 7.1 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2026-98983. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-98983.md
Affected: Linux >= a98621a0f187a934c115dcfe79a49520ae892111, < 56fe03a0c05dba4c5f6a23c391f96de1614a098c; >= a98621a0f187a934c115dcfe79a49520ae892111, < 0b6f31a3c0b16066f812e94b52a704174a6f23cd; 27ae6b17c9ba7ff353ab0906297f08aa845782b4; 297261b343371c4f0b31055d53d285138ec21565; 813a47b0309097da71781ee4ac11922…
Fixed in: Linux 56fe03a0c05dba4c5f6a23c391f96de1614a098c, Linux 0b6f31a3c0b16066f812e94b52a704174a6f23cd, Linux 5.16, Linux 6.2

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2026-98983 being exploited?

There is no confirmed exploitation: CVE-2026-98983 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.20% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2026-98983?

It has no CVSS score yet. Unknown.

### Which versions are affected by CVE-2026-98983?

Linux \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 56fe03a0c05dba4c5f6a23c391f96de1614a098c; \>= a98621a0f187a934c115dcfe79a49520ae892111, \< 0b6f31a3c0b16066f812e94b52a704174a6f23cd; 27ae6b17c9ba7ff353ab0906297f08aa845782b4; 297261b343371c4f0b31055d53d285138ec21565; 813a47b0309097da71781ee4ac11922e39b67d55; 6e608e3e5ce12ce7fd21e46212eccca37f917d0e; a261fccdb4ac58ec5ba6aa1d92a6cc418fff301f; 665dc1ed16357988d439fc5bbc860ee36f540d81; \>= 5.15.209, \< 5.16; \>= 6.1.175, \< 6.2; …; Linux 7.1.

### Is there a fix for CVE-2026-98983?

Yes. Fixed in Linux 56fe03a0c05dba4c5f6a23c391f96de1614a098c, Linux 0b6f31a3c0b16066f812e94b52a704174a6f23cd, Linux 5.16, Linux 6.2. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-98983?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- other: <https://git.kernel.org/stable/c/56fe03a0c05dba4c5f6a23c391f96de1614a098c>
- other: <https://git.kernel.org/stable/c/0b6f31a3c0b16066f812e94b52a704174a6f23cd>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2026-98983>

HTML: <https://flawdb.com/CVE-2026-98983> · JSON: <https://flawdb.com/api/v1/entries/CVE-2026-98983>
