{"id":"CVE-2022-42917","details":"In FRRouting FRR before 8.5, the service user (usually frr) can escalate its privileges to root by monitoring the configuration directory (/etc/frr) and replacing config files upon creation with, for example, symlinks to change the ownership of arbitrary files. This is a TOCTOU Race Condition caused by a combination of touch and chown.","modified":"2026-09-16T03:31:01.875679319Z","published":"2026-09-13T00:00:00Z","related":["SUSE-SU-2022:4130-1","openSUSE-SU-2024:12516-1"],"database_specific":{"unresolved_ranges":[{"source":"AFFECTED_FIELD","extracted_events":[{"fixed":"4.5"}]},{"source":"CPE_FIELD","extracted_events":[{"fixed":"4.5"}]}],"cna_assigner":"mitre","cwe_ids":["CWE-367"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json"},"references":[{"type":"WEB","url":"https://frrouting.org/security/cve-2022-42917/"},{"type":"WEB","url":"https://github.com/FRRouting/frr/compare/frr-8.4...frr-8.5"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42917"},{"type":"REPORT","url":"https://bugzilla.suse.com/show_bug.cgi?id=1204124"},{"type":"FIX","url":"https://github.com/FRRouting/frr/commit/972cdc560e339d70c0ee5fb70ec636ab78f00bca"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/frrouting/frr","events":[{"introduced":"0"},{"fixed":"b81570c690d79ebc1a03708dc17d33caa9639a5f"},{"fixed":"972cdc560e339d70c0ee5fb70ec636ab78f00bca"}],"database_specific":{"source":["DESCRIPTION","REFERENCES"],"extracted_events":[{"introduced":"0"},{"fixed":"8.5"}]}}],"versions":["base_8.4","frr-8.5-dev","base_8.3","frr-8.4-dev","base_8.2","frr-8.3-dev","frr-8.1-rc1","base_8.1","frr-8.2-dev","8.1-dev","frr-8.1-dev","base_8.0","base_7.6","frr-8.0-dev","frr-7.6-dev","base_7.5","base_7.4","frr-7.5-dev","base_7.3","frr-7.4-dev","base_7.2","frr-7.3-dev","frr-7.2-dev","7.1_pulled","frr-7.1-dev","frr-6.1-dev","frr-5.1-dev","reindent-master-after","reindent-master-before","frr-3.1-dev","frr-3.0-branchpoint"],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2022-42917.json"}}],"schema_version":"1.9.0","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"}]}