{"id":"CVE-2022-42917","aliases":["DEBIAN-CVE-2022-42917","EUVD-2022-56059","GHSA-x36x-qpcf-qwfj","SUSE-SU-2022:4130-1","UBUNTU-CVE-2022-42917","openSUSE-SU-2024:12516-1"],"status":"published","title":"In FRRouting FRR before 8.5, the service user (usually frr) can escalate its privileges to root...","description":"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.","severity":{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium","assessor":"cna","from":"cve"},"epss":{"day":"2026-11-10","score":0.00116,"percentile":0.01591,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":true},"cwes":["CWE-367"],"published":"2022-11-18T20:06:06Z","modified":"2026-11-05T19:01:03Z","fixes":[{"ecosystem":"Debian:12","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:13","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]},{"ecosystem":"Debian:14","package":"frr","fixed_in":["8.4.1-1"],"sources":["osv"]}],"affected":[{"source":"osv","ecosystem":"Debian:12","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:13","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"Debian:14","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4.1-1"}]}]},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP3","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4-150300.4.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"SUSE:Linux Enterprise Module for Server Applications 15 SP4","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4-150300.4.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.3","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4-150300.4.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"openSUSE:Leap 15.4","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"7.4-150300.4.10.1"}]}],"bundled":2},{"source":"osv","ecosystem":"Ubuntu:Pro:16.04:LTS","package":"quagga","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["0.99.24.1-2","0.99.24.1-2ubuntu1","0.99.24.1-2ubuntu1.1","0.99.24.1-2ubuntu1.2","0.99.24.1-2ubuntu1.3","0.99.24.1-2ubuntu1.4","0.99.24.1-2ubuntu1.4+esm1"]},{"source":"osv","ecosystem":"Ubuntu:Pro:18.04:LTS","package":"quagga","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.1.1-3","1.1.1-3ubuntu1","1.2.2-1","1.2.2-1ubuntu1","1.2.4-1","1.2.4-1ubuntu0.1~esm1","1.2.4-1ubuntu0.1~esm2"]},{"source":"osv","ecosystem":"Ubuntu:20.04:LTS","package":"quagga","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["1.2.4-4build1","1.2.4-4ubuntu0.1","1.2.4-4ubuntu0.4","1.2.4-4ubuntu0.5"]},{"source":"osv","ecosystem":"Ubuntu:Pro:20.04:LTS","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["6.0.2-2build2","7.2-1ubuntu1","7.2-1ubuntu2","7.2.1-1","7.2.1-1ubuntu0.1","7.2.1-1ubuntu0.2","7.2.1-1ubuntu0.2+esm1","7.2.1-1ubuntu0.2+esm2","7.2.1-1ubuntu0.2+esm3","7.2.1-1ubuntu0.2+esm4","7.2.1-1ubuntu0.2+esm5"]},{"source":"osv","ecosystem":"Ubuntu:22.04:LTS","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"}]}],"versions":["7.5.1-1.1","8.1-1","8.1-1ubuntu1","8.1-1ubuntu1.1","8.1-1ubuntu1.2","8.1-1ubuntu1.3","8.1-1ubuntu1.4","8.1-1ubuntu1.5","8.1-1ubuntu1.6","8.1-1ubuntu1.7","8.1-1ubuntu1.8","8.1-1ubuntu1.9","8.1-1ubuntu1.10","8.1-1ubuntu1.11","8.1-1ubuntu1.13","8.1-1ubuntu1.14","8.1-1ubuntu1.15","8.1-1ubuntu1.16","8.1-1ubuntu1.17"]},{"source":"osv","ecosystem":"openSUSE:Tumbleweed","package":"frr","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0"},{"fixed":"8.4-1.1"}]}],"bundled":2}],"products":[{"vendor":"frrouting","product":"frrouting"}],"references":[{"url":"https://bugzilla.suse.com/show_bug.cgi?id=1204124","tags":["report"]},{"url":"https://frrouting.org/security/cve-2022-42917/","tags":["web","report"]},{"url":"https://github.com/FRRouting/frr/commit/972cdc560e339d70c0ee5fb70ec636ab78f00bca","tags":["fix"]},{"url":"https://github.com/FRRouting/frr/compare/frr-8.4...frr-8.5","tags":["web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2022-42917","tags":["advisory"]},{"url":"https://frrouting.org/security/cve-2022-42917"},{"url":"https://github.com/advisories/GHSA-x36x-qpcf-qwfj"},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json","tags":["advisory"]},{"url":"https://security-tracker.debian.org/tracker/CVE-2022-42917","tags":["advisory"]},{"url":"https://www.suse.com/support/update/announcement/2022/suse-su-20224130-1/","tags":["advisory"]},{"url":"https://bugzilla.suse.com/1202085","tags":["report"]},{"url":"https://bugzilla.suse.com/1204124","tags":["report"]},{"url":"https://www.suse.com/security/cve/CVE-2022-37035","tags":["web"]},{"url":"https://www.suse.com/security/cve/CVE-2022-42917","tags":["web"]},{"url":"https://ubuntu.com/security/CVE-2022-42917","tags":["report"]},{"url":"https://www.cve.org/CVERecord?id=CVE-2022-42917","tags":["report"]},{"url":"","tags":["advisory"]}],"sources":{"cve":[{"id":"CVE-2022-42917","description":"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.","status":"published","published":"2026-09-13T00:00:00Z","modified":"2026-09-14T18:15:19.986Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium","assessor":"cna"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T14:34:27.327929Z"}],"euvd":[{"id":"EUVD-2022-56059","description":"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.","status":"published","published":"2026-09-13T00:00:00Z","modified":"2026-09-14T18:15:19Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-02T17:28:19.730872Z"}],"ghsa":[{"id":"GHSA-x36x-qpcf-qwfj","title":"In FRRouting FRR before 8.5, the service user (usually frr) can escalate its privileges to root...","description":"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.","status":"published","published":"2026-09-14T00:31:28Z","modified":"2026-09-14T00:31:35Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:11:47.913221Z"}],"nvd":[{"id":"CVE-2022-42917","description":"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.","status":"published","published":"2026-09-14T00:16:55.7Z","modified":"2026-11-10T12:10:00.177Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium","assessor":"secondary"}],"cwes":["CWE-367"],"updated_at":"2026-11-10T14:19:26.790498Z"}],"osv":[{"id":"CVE-2022-42917","description":"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.","status":"published","published":"2026-09-13T00:00:00Z","modified":"2026-10-28T02:30:43.005221391Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"cwes":["CWE-367"],"updated_at":"2026-11-02T15:44:27.186787Z"},{"id":"DEBIAN-CVE-2022-42917","description":"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.","status":"published","published":"2026-09-14T00:16:55.7Z","modified":"2026-11-11T09:47:35.569671976Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-11T10:35:40.696585Z"},{"id":"UBUNTU-CVE-2022-42917","description":"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.","status":"published","published":"2026-09-14T00:16:00Z","modified":"2026-11-05T19:01:03.344051115Z","cvss":[{"version":"3.1","score":6.7,"vector":"CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H","level":"medium"}],"updated_at":"2026-11-05T19:27:36.688147Z"},{"id":"openSUSE-SU-2024:12516-1","title":"frr-8.4-1.1 on GA media","description":"These are all security issues fixed in the frr-8.4-1.1 package on the GA media of openSUSE Tumbleweed.","status":"published","published":"2024-06-15T00:00:00Z","modified":"2025-05-07T18:14:14.8972Z","updated_at":"2026-11-02T16:58:35.751245Z"},{"id":"SUSE-SU-2022:4130-1","title":"Security update for frr","description":"This update for frr fixes the following issues:\n\n- CVE-2022-37035: Fixed a possible use-after-free due to a race condition related to bgp_notify_send_with_data() and bgp_process_packet() (bsc#1202085).\n- CVE-2022-42917: Fixed a privilege escalation from frr to root in frr config creation (bsc#1204124).\n","status":"published","published":"2022-11-18T20:06:06Z","modified":"2026-02-04T04:24:16.861294Z","updated_at":"2026-11-02T15:53:51.440565Z"}]}}
