Skip to content
Heist/ feed
Back to feed
Medium

frr, quagga — security advisory

Type: advisorySources: OSVAdvisory ID: UBUNTU-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
frr, quagga
Affected 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, 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, 1.2.4-4build1, 1.2.4-4ubuntu0.1, 1.2.4-4ubuntu0.4, 1.2.4-4ubuntu0.5, 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.5.1-1.1, 8.1-1, 8.1-1ubuntu1, 8.1-1ubuntu1.1, 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.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
Fixed versions
Not specified
CVEs
CVE-2022-42917
Confirmed fixed CVEs
Not specified
Updated in this feed
31 Oct 2026, 01:38 UTC · Revision 1

Source evidence

UBUNTU-CVE-2022-42917

core-osv · Original source

Published 14 Sept 2026, 00:16 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:UBUNTU-CVE-2022-42917

quagga

Fixed versions: Not specified

quagga

Fixed versions: Not specified

quagga

Fixed versions: Not specified

frr

Fixed versions: Not specified

frr

Fixed versions: Not specified

Complete source record
{
  "id": "f0c1f84fd2bbfe9568f4c450edca4203070e6b2f6d49d6ef1121b8d5656d7294",
  "url": "https://osv.dev/vulnerability/UBUNTU-CVE-2022-42917",
  "method": "structured",
  "payload": {
    "kind": "advisory",
    "title": "UBUNTU-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:UBUNTU-CVE-2022-42917",
    "products": [
      {
        "name": {
          "value": "quagga",
          "evidence": "/affected/0/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "0.99.24.1-2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1.1",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1.2",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1.3",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1.4",
            "evidence": "/affected/0/versions"
          },
          {
            "value": "0.99.24.1-2ubuntu1.4+esm1",
            "evidence": "/affected/0/versions"
          }
        ]
      },
      {
        "name": {
          "value": "quagga",
          "evidence": "/affected/1/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.1.1-3",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.1.1-3ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.2-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.2-1ubuntu1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.4-1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.4-1ubuntu0.1~esm1",
            "evidence": "/affected/1/versions"
          },
          {
            "value": "1.2.4-1ubuntu0.1~esm2",
            "evidence": "/affected/1/versions"
          }
        ]
      },
      {
        "name": {
          "value": "quagga",
          "evidence": "/affected/2/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "1.2.4-4build1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2.4-4ubuntu0.1",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2.4-4ubuntu0.4",
            "evidence": "/affected/2/versions"
          },
          {
            "value": "1.2.4-4ubuntu0.5",
            "evidence": "/affected/2/versions"
          }
        ]
      },
      {
        "name": {
          "value": "frr",
          "evidence": "/affected/3/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "6.0.2-2build2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2-1ubuntu1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2-1ubuntu2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.2+esm1",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.2+esm2",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.2+esm3",
            "evidence": "/affected/3/versions"
          },
          {
            "value": "7.2.1-1ubuntu0.2+esm4",
            "evidence": "/affected/3/versions"
          }
        ]
      },
      {
        "name": {
          "value": "frr",
          "evidence": "/affected/4/package/name"
        },
        "prerequisites": [],
        "fixed_versions": [],
        "affected_versions": [
          {
            "value": "7.5.1-1.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.1",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.2",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.3",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.4",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.5",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.6",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.7",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.8",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.9",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.10",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.11",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.13",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.14",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.15",
            "evidence": "/affected/4/versions"
          },
          {
            "value": "8.1-1ubuntu1.16",
            "evidence": "/affected/4/versions"
          }
        ]
      }
    ],
    "severity": "medium",
    "structured": {
      "id": "UBUNTU-CVE-2022-42917",
      "aliases": [
        "UBUNTU-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"
        },
        {
          "type": "Ubuntu",
          "score": "medium"
        }
      ],
      "affected": [
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quagga",
            "purl": "pkg:deb/ubuntu/quagga?arch=source&distro=esm-infra%2Fxenial",
            "ecosystem": "Ubuntu:Pro:16.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42917.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "quagga",
                "binary_version": "0.99.24.1-2ubuntu1.4+esm1"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quagga",
            "purl": "pkg:deb/ubuntu/quagga?arch=source&distro=esm-infra%2Fbionic",
            "ecosystem": "Ubuntu:Pro:18.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42917.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "quagga",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-bgpd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-core",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-isisd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-ospf6d",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-ospfd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-pimd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-ripd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              },
              {
                "binary_name": "quagga-ripngd",
                "binary_version": "1.2.4-1ubuntu0.1~esm2"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "quagga",
            "purl": "pkg:deb/ubuntu/quagga?arch=source&distro=focal",
            "ecosystem": "Ubuntu:20.04:LTS"
          },
          "versions": [
            "1.2.4-4build1",
            "1.2.4-4ubuntu0.1",
            "1.2.4-4ubuntu0.4",
            "1.2.4-4ubuntu0.5"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42917.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "quagga",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-bgpd",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-core",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-isisd",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-ospf6d",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-ospfd",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-pimd",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-ripd",
                "binary_version": "1.2.4-4ubuntu0.5"
              },
              {
                "binary_name": "quagga-ripngd",
                "binary_version": "1.2.4-4ubuntu0.5"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "frr",
            "purl": "pkg:deb/ubuntu/frr?arch=source&distro=esm-apps%2Ffocal",
            "ecosystem": "Ubuntu:Pro:20.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42917.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "frr",
                "binary_version": "7.2.1-1ubuntu0.2+esm4"
              },
              {
                "binary_name": "frr-pythontools",
                "binary_version": "7.2.1-1ubuntu0.2+esm4"
              },
              {
                "binary_name": "frr-rpki-rtrlib",
                "binary_version": "7.2.1-1ubuntu0.2+esm4"
              },
              {
                "binary_name": "frr-snmp",
                "binary_version": "7.2.1-1ubuntu0.2+esm4"
              }
            ]
          }
        },
        {
          "ranges": [
            {
              "type": "ECOSYSTEM",
              "events": [
                {
                  "introduced": "0"
                }
              ]
            }
          ],
          "package": {
            "name": "frr",
            "purl": "pkg:deb/ubuntu/frr?arch=source&distro=jammy",
            "ecosystem": "Ubuntu:22.04:LTS"
          },
          "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"
          ],
          "database_specific": {
            "source": "https://github.com/canonical/ubuntu-security-notices/blob/main/osv/cve/2022/UBUNTU-CVE-2022-42917.json"
          },
          "ecosystem_specific": {
            "binaries": [
              {
                "binary_name": "frr",
                "binary_version": "8.1-1ubuntu1.16"
              },
              {
                "binary_name": "frr-pythontools",
                "binary_version": "8.1-1ubuntu1.16"
              },
              {
                "binary_name": "frr-rpki-rtrlib",
                "binary_version": "8.1-1ubuntu1.16"
              },
              {
                "binary_name": "frr-snmp",
                "binary_version": "8.1-1ubuntu1.16"
              }
            ]
          }
        }
      ],
      "modified": "2026-10-17T12:57:15.953492434Z",
      "provider": "osv",
      "upstream": [
        "CVE-2022-42917"
      ],
      "references": [
        "https://ubuntu.com/security/CVE-2022-42917",
        "https://www.cve.org/CVERecord?id=CVE-2022-42917",
        "https://frrouting.org/security/cve-2022-42917/"
      ]
    },
    "related_cves": [
      {
        "value": "CVE-2022-42917",
        "evidence": "/upstream"
      }
    ],
    "security_relevant": true,
    "severity_evidence": "/severity/0/score"
  },
  "source_id": "core-osv",
  "document_id": 357058,
  "published_at": "2026-09-14T00:16:00+00:00"
}