KernelScan.io

HIGH

nsfs FileHandle Leak

CVE-2026-43391

CVSS 8.8 / 10.0 NVD

CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:H/A:H

KernelScan AI3.2LOW

01

In the Linux kernel, the following vulnerability has been resolved: nsfs: tighten permission checks for handle opening Even privileged services should not necessarily be able to see other privileged service's namespaces so they can't leak information to each other. Use may_see_all_namespaces() helper that centralizes this policy until the nstree adapts.

02

Engine v0.2.0

Risk summary

Privileged services can access other privileged services' namespace file handles, potentially leaking sensitive namespace information. This breaks isolation between services that should be compartmentalized from each other.

Affectedfs/nsfs.c (namespace filesystem)

Vulnerability analysis

The vulnerability exists in nsfs_fh_to_dentry() where namespace file handle decoding used ns_capable(owning_ns, CAP_SYS_ADMIN) instead of the more restrictive may_see_all_namespaces() check. This allowed any process with CAP_SYS_ADMIN in a target namespace to decode file handles for that namespace, breaking the intended isolation between privileged services. The fix replaces the capability check with a centralized policy function that enforces stricter namespace visibility rules.

03

BranchFixed inPatch commit
6.196.19.91797ee11451f
mainline7.0d2324a9317f0