Skip to content
Heist/ feed
Back to feed
Medium

Security advisory

Type: advisorySources: OSVCVE: CVE-2022-42917

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.

Products
Not specified
Affected versions
Not specified
Fixed versions
Not specified
CVEs
CVE-2022-42917
Confirmed fixed CVEs
Not specified
Updated in this feed
5 Nov 2026, 05:47 UTC · Revision 1

Source evidence

CVE-2022-42917

core-osv · Original source

Published 13 Sept 2026, 00:00 UTC

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.

osv:CVE-2022-42917
Complete source record
{
  "id": "409fbd8f5b8e0a043d13c9956ffb91a01164891a3ac1e8042175d7c932739c5a",
  "url": "https://osv.dev/vulnerability/CVE-2022-42917",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "CVE-2022-42917",
    "summary": "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.",
    "evidence": "osv:CVE-2022-42917",
    "products": [],
    "severity": "medium",
    "structured": {
      "id": "CVE-2022-42917",
      "aliases": [
        "CVE-2022-42917"
      ],
      "metrics": [
        {
          "type": "CVSS_V3",
          "score": "CVSS:3.1/AV:L/AC:H/PR:L/UI:R/S:U/C:H/I:H/A:H"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "repo": "https://github.com/frrouting/frr",
              "type": "GIT",
              "events": [
                {
                  "introduced": "0"
                },
                {
                  "fixed": "b81570c690d79ebc1a03708dc17d33caa9639a5f"
                },
                {
                  "fixed": "972cdc560e339d70c0ee5fb70ec636ab78f00bca"
                }
              ],
              "database_specific": {
                "extracted_events": [
                  {
                    "range": [
                      {
                        "introduced": "0"
                      },
                      {
                        "fixed": "8.5"
                      }
                    ],
                    "source": "DESCRIPTION"
                  },
                  {
                    "range": [
                      {
                        "fixed": "972cdc560e339d70c0ee5fb70ec636ab78f00bca"
                      }
                    ],
                    "source": "REFERENCES_COMMIT"
                  }
                ]
              }
            }
          ],
          "versions": [
            "base_8.4",
            "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"
          }
        }
      ],
      "modified": "2026-10-28T02:30:43.005221391Z",
      "provider": "osv",
      "references": [
        "https://frrouting.org/security/cve-2022-42917/",
        "https://github.com/FRRouting/frr/compare/frr-8.4...frr-8.5",
        "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json",
        "https://nvd.nist.gov/vuln/detail/CVE-2022-42917",
        "https://bugzilla.suse.com/show_bug.cgi?id=1204124",
        "https://github.com/FRRouting/frr/commit/972cdc560e339d70c0ee5fb70ec636ab78f00bca"
      ],
      "provider_metadata": {
        "cwe_ids": [
          "CWE-367"
        ],
        "cna_assigner": "mitre",
        "unresolved_ranges": [
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "4.5"
                  }
                ],
                "source": "AFFECTED_FIELD",
                "strategy": "StandardRange"
              }
            ]
          },
          {
            "extracted_events": [
              {
                "range": [
                  {
                    "fixed": "4.5"
                  }
                ],
                "source": "CPE_FIELD",
                "strategy": "CPEApplicability"
              }
            ]
          }
        ],
        "osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json"
      }
    },
    "related_cves": [
      {
        "value": "CVE-2022-42917",
        "evidence": "/id"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 510822,
  "published_at": "2026-09-13T00:00:00+00:00"
}