bitVakt

Kernel Kit / Infix / v26.10.0latest

CVE-2026-98983

—unknown

linux6.18.60 · 6.18.54in 2 of 4 releases

Not yet analysed by NVD. Matched on the vendor's record; this may change when NVD has analysed it.

Reach linux · 4 builds in 2 of 4 releases

full reviewcross-check✓ a member decided

v25.03.1not in NVD's range
v26.01.0not in NVD's range
v26.09.06.18.54
v26.10.0latest6.18.60
aarch64_minimal
x86_64
aarch64_minimal–
x86_64–
aarch64_minimal–
x86_64–
aarch64_minimalAAwaiting reviewx86_64AAwaiting reviewaarch64_minimalAAwaiting reviewx86_64AAwaiting review

Description · NVD

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.

Published 2026-10-23NVD

References 2
Review Av26.10.0x86_64False positiveThe match to linux 6.18.60 does not fit: the CVE is an imbalance in the *active* namespace reference counting (deactivate_nsproxy(), nsproxy_ns_active_put(), __ns_ref_active_put(), nsproxy_free()), and none of that machinery exists in this kernel tree.This build follows it · open the review →

Members of Kernel Kit decide. Sign in if you are one.