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.
{
"cna_assigner": "mitre",
"cwe_ids": [
"CWE-367"
],
"osv_generated_from": "https://github.com/CVEProject/cvelistV5/tree/main/cves/2022/42xxx/CVE-2022-42917.json",
"unresolved_ranges": [
{
"extracted_events": [
{
"range": [
{
"fixed": "4.5"
}
],
"source": "AFFECTED_FIELD",
"strategy": "StandardRange"
}
]
},
{
"extracted_events": [
{
"range": [
{
"fixed": "4.5"
}
],
"source": "CPE_FIELD",
"strategy": "CPEApplicability"
}
]
}
]
}{
"extracted_events": [
{
"range": [
{
"introduced": "0"
},
{
"fixed": "8.5"
}
],
"source": "DESCRIPTION"
},
{
"range": [
{
"fixed": "972cdc560e339d70c0ee5fb70ec636ab78f00bca"
}
],
"source": "REFERENCES_COMMIT"
}
]
}