← Back to CVE Index

CVE-2022-42917

Disclosed 2022-10-07

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 & CVSS Score

6.7 MEDIUM CVSS 3.1
Attack Vector Local
Attack Complexity High
Privileges Required Low
User Interaction Required
Scope Unchanged
Confidentiality High
Integrity High
Availability High

Vector: CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H

Weakness Enumeration

CWE-IDName
CWE-367 Time-of-check Time-of-use (TOCTOU) Race Condition

Affected FRR Versions

  • < 8.4

Versions prior to 8.4 are end-of-life and no longer receive security updates.

References

URLSource
https://github.com/FRRouting/frr/commit/972cdc560e339d70c0ee5fb70ec636ab78f00bca GitHub

Git Fixes

Raw Data