{"id":"CVE-2026-35376","aliases":["CVE-2026-35376","GHSA-9rv8-9hvg-92mq"],"related":[],"kind":"vulnerability","state":"published","title":"uutils coreutils chcon Security Bypass and Mandatory Access Control (MAC) Inconsistency via TOCTOU Race Condition","summary":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the chcon utility of uutils coreutils during recursive operations. The implementation resolves recursive targets using a fresh path lookup (via fts_accpath) rather than binding the traversal and label application to the specific directory state encountered during traversal. Because these operations are not anchored to file descriptors, a local attacker with write access to a directory tree can exploit timing-sensitive rename or symbolic link races to redirect a privileged recursive relabeling operation to unintended files or directories. This vulnerability breaks the hardening expectations for SELinux administration workflows and can lead to the unauthorized modification of security labels on sensitive system objects.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"A Time-of-Check to Time-of-Use (TOCTOU) vulnerability exists in the chcon utility of uutils coreutils during recursive operations. The implementation resolves recursive targets using a fresh path lookup (via fts_accpath) rather than binding the traversal and label application to the specific directory state encountered during traversal. Because these operations are not anchored to file descriptors, a local attacker with write access to a directory tree can exploit timing-sensitive rename or symbolic link races to redirect a privileged recursive relabeling operation to unintended files or directories. This vulnerability breaks the hardening expectations for SELinux administration workflows and can lead to the unauthorized modification of security labels on sensitive system objects.","source":"cvelist"},{"lang":"en","text":"`chcon` resolved recursive targets from `fts_accpath` with a fresh path lookup, so traversal and the SELinux get/set were not bound to traversal directory state. A privileged recursive relabel can be redirected to unintended objects under rename/symlink races. Fix opens targets with `openat` against the traversal cwd fd before the SELinux operation.\n\n**Fixed in 0.10.0** (PR #12566, commit 7cfc74e47ffab452663be6842d788a5164d9688b): recursive relabel resolution is anchored to the traversal dirfd.\n\n---\n_Zellic private finding (zellic-ext/coreutils-private PR #120). Reported in the Zellic *uutils coreutils Program Security Assessment* (for Canonical, Jan 2026), audited commit `3a07ffc5a9bd4c283e75afa548ba1f1957bad242`._","format":"markdown","source":"ghsa"},{"lang":"es","text":"Una vulnerabilidad de tipo Time-of-Check to Time-of-Use (TOCTOU) existe en la utilidad chcon de uutils coreutils durante operaciones recursivas. La implementación resuelve objetivos recursivos utilizando una búsqueda de ruta nueva (a través de fts_accpath) en lugar de vincular el recorrido y la aplicación de etiquetas al estado específico del directorio encontrado durante el recorrido. Debido a que estas operaciones no están ancladas a descriptores de archivo, un atacante local con acceso de escritura a un árbol de directorios puede explotar condiciones de carrera sensibles al tiempo de renombrado o de enlaces simbólicos para redirigir una operación privilegiada de reetiquetado recursivo a archivos o directorios no deseados. Esta vulnerabilidad rompe las expectativas de endurecimiento para los flujos de trabajo de administración de SELinux y puede conducir a la modificación no autorizada de etiquetas de seguridad en objetos sensibles del sistema.","source":"nvd"}],"published":"2026-04-22T16:09:09.676Z","modified":"2026-11-20T16:45:08.002Z","severity":{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},"severities":[{"scorer":"canonical","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"GitHub","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:L/A:L","score":4.5,"rating":"MEDIUM"},{"scorer":"NVD","scheme":"CVSS:3.1","vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:N/S:U/C:L/I:H/A:L","score":5.8,"rating":"MEDIUM"}],"cwes":["CWE-59","CWE-367"],"affected":[{"ranges":[{"type":"semver","introduced":"0","fixed":"0.8.0","status":"affected"}],"vendor":"Uutils","product":"coreutils","package":"coreutils","repo":"https://github.com/uutils/coreutils","platforms":["Linux","Unix","macOS"],"source":"cvelist"},{"ranges":[{"type":"semver","introduced":"0","status":"affected","fixed":"0.10.0"}],"ecosystem":"crates.io","package":"uu_chcon","purl":"pkg:cargo/uu_chcon","source":"ghsa"},{"ranges":[{"status":"affected","fixed":"0.8.0"}],"vendor":"uutils","product":"coreutils","cpe":"cpe:2.3:a:uutils:coreutils:*:*:*:*:*:rust:*:*","source":"nvd"}],"references":[{"url":"https://github.com/uutils/coreutils/pull/11402","tags":["issue-tracking","patch","web"],"sources":["cvelist","ghsa","nvd"]},{"url":"https://github.com/uutils/coreutils/releases/tag/0.8.0","tags":["release-notes","vendor-advisory"],"sources":["cvelist","nvd"]},{"url":"https://github.com/uutils/coreutils/security/advisories/GHSA-9rv8-9hvg-92mq","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils/commit/7cfc74e47ffab452663be6842d788a5164d9688b","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/uutils/coreutils","tags":["package"],"sources":["ghsa"]}],"credits":["Zellic"],"assigner":"canonical","ssvc":{"scorer":"CISA-ADP","exploitation":"none","automatable":"no","technicalImpact":"partial","date":"2026-04-22T17:01:40.636Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-35376","url":"https://www.cve.org/CVERecord?id=CVE-2026-35376","licence":"CVE Terms of Use","modified":"2026-04-22T17:14:38.066Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-9rv8-9hvg-92mq","url":"https://github.com/advisories/GHSA-9rv8-9hvg-92mq","licence":"CC-BY-4.0","modified":"2026-11-20T16:45:08.002Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-35376","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-35376","licence":"Public domain","modified":"2026-10-26T22:10:00.163Z"}],"updatedAt":"2026-11-25T22:59:19.338Z","epss":{"score":0.00167,"percentile":0.06248,"date":"2026-12-01T12:00:22.000Z"}}