{"id":"CVE-2026-129919","kind":"vulnerability","aliases":["CVE-2026-129919"],"related":[],"title":"Kunai: race in namespace cache lets local attackers misattribute container events","description":"Kunai, a security monitoring tool, contains a time-of-check to time-of-use (TOCTOU) race condition in its mount namespace (mnt ns) caching logic. When resolving a security event that references a specific process PID and an expected mount namespace, the Switcher::new function read /proc/<pid>/ns/mnt to determine the target namespace and cached the result under the expected namespace key without verifying that the resolved namespace actually matched the expected one.\n\nAn attacker with local access could exploit this by either (1) arranging for the referenced PID to be reused by a process in a different namespace (e.g., the host namespace) before Kunai resolves it, or (2) calling unshare or setns on the target process after the event is generated but before the namespace is resolved. In either case, the wrong namespace (potentially the host's own namespace) would be cached under the container's namespace key.\n\nThe security impact is that subsequent container security events would be resolved against host filesystem paths rather than container paths. This undermines the integrity of the security monitoring data: container activity could be misattributed to the host, host activity could be misattributed to a container, and file-path-based detections or alerts would reference incorrect paths. An attacker could potentially use this to obscure malicious activity within a container by making it appear as benign host activity, or to generate misleading security alerts.\n\nThe vulnerability requires local access to the system and a specific timing window between event generation and namespace resolution. No remote attack vector or user interaction is required.","summary":"Kunai, a security monitoring tool, caches the wrong mount namespace for a process when a PID is reused or namespaces change during a race window. A local attacker can make container security events resolve against host paths, hiding or misreporting activity.","severity":"low","cvss":2.0,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["containers","kunai","linux","other","self-hosted"],"not_affected_if":["no-local-access"],"how_to_check":null,"fix":null,"status":"open","published_at":"2026-11-16T14:17:07+00:00","first_seen_at":"2026-11-16T14:37:00+00:00","triaged_at":"2026-11-16T14:37:29+00:00","updated_at":"2026-11-16T14:37:29+00:00","category":"other","confidence":0.6,"triage":{"at":"2026-11-16T14:37:29Z","model":"claude-haiku-5-5","output":{"fix":"unknown","reach":"local","title":"Kunai: race in namespace cache lets local attackers misattribute container events","impact":"low","summary":"Kunai, a security monitoring tool, caches the wrong mount namespace for a process when a PID is reused or namespaces change during a race window. A local attacker can make container security events resolve against host paths, hiding or misreporting activity.","audience":"businesses","category":"other","nicknames":[],"who_cares":["kunai","linux","containers","self-hosted"],"confidence":0.6,"fix_status":"unknown","needs_auth":"unknown","worst_case":"Container activity is misattributed to the host, hiding malicious actions","analyst_note":"Check the Kunai GitHub patch linked from the advisory for the fixed version and affected version range.","how_to_check":"unknown","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["no-local-access"],"who_is_affected":"Teams that run Kunai for container security monitoring on Linux hosts are exposed, since the flaw affects how it maps events to container namespaces. Exposure needs local access and a timing window, so hosts without local untrusted users are lower risk. unknown whether a patched version exists in the sources.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"unknown","severity_if_unknown":"low"},"cost_usd":0.000722,"input_tokens":4942,"output_tokens":456,"severity_before":"low"},"analyst_status":null,"analyst_note":null,"search":"'-129919':14A,17A '-2026':13A,16A '/ns/mnt':115C '/proc':114C '1':151C '2':176C 'access':145C,305C 'activ':65B,247C,255C,283C,294C 'actual':136C 'alert':269C,300C 'appear':290C 'arrang':152C 'attack':8A,52B,142C,275C,322C 'base':266C 'benign':292C 'cach':5A,30B,91C,122C,210C 'call':177C 'case':198C 'chang':45B 'check':76C 'condit':84C 'contain':10A,18B,55B,71C,213C,223C,235C,246C,261C,286C 'could':146C,248C,256C,276C 'cve':12A,15A 'data':245C 'detect':267C 'determin':117C 'differ':165C 'e.g':167C 'either':150C,197C 'event':11A,57B,97C,187C,225C,315C 'expect':106C,127C,139C 'exploit':147C 'file':264C 'file-path-bas':263C 'filesystem':231C 'function':112C 'generat':189C,297C,316C 'hide':62B 'host':24B,60B,169C,204C,230C,253C,254C,293C 'impact':219C 'incorrect':272C 'integr':240C 'interact':326C 'key':129C,216C 'kunai':1A,19B,25B,66C,172C 'let':6A 'linux':20B 'local':7A,51B,144C,304C 'logic':92C 'make':54B,288C 'malici':282C 'match':137C 'misattribut':9A,250C,258C 'mislead':298C 'misreport':64B 'mnt':89C 'monitor':28B,69C,244C 'mount':33B,87C,107C 'namespac':4A,34B,44B,88C,108C,120C,128C,135C,166C,170C,193C,201C,207C,215C,318C 'new':111C 'ns':90C 'obscur':281C 'one':140C 'path':61B,232C,236C,265C,273C 'pid':40B,103C,156C 'potenti':202C,277C 'process':37B,102C,162C,184C 'race':2A,48B,83C 'rather':233C 'read':113C 'refer':99C,271C 'referenc':155C 'remot':321C 'requir':303C,328C 'resolut':319C 'resolv':58B,94C,134C,173C,195C,228C 'result':124C 'reus':42B,159C 'secur':27B,56B,68C,96C,218C,224C,243C,299C 'self':23B 'self-host':22B 'setn':180C 'specif':101C,311C 'subsequ':222C 'switcher':110C 'system':308C 'target':119C,183C 'time':74C,79C,312C 'time-of-check':73C 'time-of-us':78C 'toctou':82C 'tool':29B,70C 'undermin':238C 'unshar':178C 'use':81C,278C 'user':325C 'vector':323C 'verifi':131C 'vulner':302C 'window':49B,313C 'within':284C 'without':130C 'would':208C,226C,270C 'wrong':32B,200C","nicknames":[],"mitigations":[],"who_affected":"Teams that run Kunai for container security monitoring on Linux hosts are exposed, since the flaw affects how it maps events to container namespaces. Exposure needs local access and a timing window, so hosts without local untrusted users are lower risk. unknown whether a patched version exists in the sources.","tier":"C","verified":{},"analyst_revisit_at":null,"fix_status":"none","audience":"businesses","plain_action":null,"pkeys":[],"ptokens":[],"labels":["containers","kunai","linux","low","other","selfhosted"],"campaign_type":null,"search_a":"'-129919':14A,17A '-2026':13A,16A 'attack':8A 'cach':5A 'contain':10A 'cve':12A,15A 'event':11A 'kunai':1A 'let':6A 'local':7A 'misattribut':9A 'namespac':4A 'race':2A","search_b":"'activ':65B 'attack':52B 'cach':30B 'chang':45B 'contain':18B,55B 'event':57B 'hide':62B 'host':24B,60B 'kunai':19B,25B 'linux':20B 'local':51B 'make':54B 'misreport':64B 'monitor':28B 'mount':33B 'namespac':34B,44B 'path':61B 'pid':40B 'process':37B 'race':48B 'resolv':58B 'reus':42B 'secur':27B,56B 'self':23B 'self-host':22B 'tool':29B 'window':49B 'wrong':32B","search_c":"'/ns/mnt':115C '/proc':114C '1':151C '2':176C 'access':145C,305C 'activ':247C,255C,283C,294C 'actual':136C 'alert':269C,300C 'appear':290C 'arrang':152C 'attack':142C,275C,322C 'base':266C 'benign':292C 'cach':91C,122C,210C 'call':177C 'case':198C 'check':76C 'condit':84C 'contain':71C,213C,223C,235C,246C,261C,286C 'could':146C,248C,256C,276C 'data':245C 'detect':267C 'determin':117C 'differ':165C 'e.g':167C 'either':150C,197C 'event':97C,187C,225C,315C 'expect':106C,127C,139C 'exploit':147C 'file':264C 'file-path-bas':263C 'filesystem':231C 'function':112C 'generat':189C,297C,316C 'host':169C,204C,230C,253C,254C,293C 'impact':219C 'incorrect':272C 'integr':240C 'interact':326C 'key':129C,216C 'kunai':66C,172C 'local':144C,304C 'logic':92C 'make':288C 'malici':282C 'match':137C 'misattribut':250C,258C 'mislead':298C 'mnt':89C 'monitor':69C,244C 'mount':87C,107C 'namespac':88C,108C,120C,128C,135C,166C,170C,193C,201C,207C,215C,318C 'new':111C 'ns':90C 'obscur':281C 'one':140C 'path':232C,236C,265C,273C 'pid':103C,156C 'potenti':202C,277C 'process':102C,162C,184C 'race':83C 'rather':233C 'read':113C 'refer':99C,271C 'referenc':155C 'remot':321C 'requir':303C,328C 'resolut':319C 'resolv':94C,134C,173C,195C,228C 'result':124C 'reus':159C 'secur':68C,96C,218C,224C,243C,299C 'setn':180C 'specif':101C,311C 'subsequ':222C 'switcher':110C 'system':308C 'target':119C,183C 'time':74C,79C,312C 'time-of-check':73C 'time-of-us':78C 'toctou':82C 'tool':70C 'undermin':238C 'unshar':178C 'use':81C,278C 'user':325C 'vector':323C 'verifi':131C 'vulner':302C 'window':313C 'within':284C 'without':130C 'would':208C,226C,270C 'wrong':200C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-16T14:17:07+00:00","kev":null,"cvss_vector":"CVSS:4.0/AV:L/AC:H/AT:P/PR:L/UI:N/VC:N/VI:L/VA:N/SC:N/SI:L/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X","cvss_by":"5a6e4751-2f3f-4070-9419-94fb35b644e8","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-129919","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-129919","severity":null,"published_at":"2026-11-16T14:17:07+00:00","modified_at":"2026-11-16T14:17:07+00:00","first_seen_at":"2026-11-16T14:37:00+00:00","fetched_at":"2026-11-16T14:37:00+00:00","note":null}],"documents":[{"id":169986,"url":"https://github.com/kunai-project/kunai/commit/0ad82911a6b72c81c55507fdabb9baad1ad1ad02","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}