Red Hat Enterprise Linux 10
Mrtg: mrtg daemon symlink-following chown allows local privilege escalation via pid file path manipulation
A flaw was found in MRTG. When the MRTG daemon is started as a root user and subsequently drops privileges, a local, low-privileged attacker can exploit a symbolic link (symlink) following vulnerability. By influencing or pre-placing a symlink in the process ID (PID) file path, the attacker can trick the root process into changing the ownership of an arbitrary existing file to the daemon user. This can lead to local privilege escalation, allowing unauthorized access to or modification of sensitive files.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:2.17.10-12.el10_2.1
Fixed in 0:2.17.10-11.el10_0.1
Fixed in 0:2.17.7-1.el8_10.1
Fixed in 0:2.17.7-1.el8_4.1
Fixed in 0:2.17.7-1.el8_4.1
Fixed in 0:2.17.7-1.el8_6.1
Fixed in 0:2.17.7-1.el8_6.1
Fixed in 0:2.17.7-1.el8_8.1
Fixed in 0:2.17.7-1.el8_8.1
Fixed in 0:2.17.7-12.el9_8.1
Fixed in 0:2.17.7-10.el9_2.1
Fixed in 0:2.17.7-11.el9_4.1
Fixed in 0:2.17.7-11.el9_6.1
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:2.17.10-12.el10_2.1 or later.
Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:2.17.10-11.el10_0.1 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:2.17.7-1.el8_10.1 or later.
Upgrade Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Support to 0:2.17.7-1.el8_4.1 or later.
Upgrade Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-On to 0:2.17.7-1.el8_4.1 or later.
Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:2.17.7-1.el8_6.1 or later.
Upgrade Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-On to 0:2.17.7-1.el8_6.1 or later.
Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:2.17.7-1.el8_8.1 or later.
Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:2.17.7-1.el8_8.1 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:2.17.7-12.el9_8.1 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:2.17.7-10.el9_2.1 or later.
Upgrade Red Hat Enterprise Linux 9.4 Update Services for SAP Solutions to 0:2.17.7-11.el9_4.1 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:2.17.7-11.el9_6.1 or later.
Workaround
To mitigate this issue, avoid starting the MRTG daemon as root with the `--daemon` option. Instead, configure MRTG to run directly as an unprivileged user. If root startup is strictly necessary, ensure that the PID file and its directory are owned by root and are not writable by unprivileged users, and prevent untrusted users from influencing the `--pid-file` path. Changes to service configuration may require a service restart to take effect.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:57596
- Vendor advisory access.redhat.com/errata/RHSA-2026:57600
- Vendor advisory access.redhat.com/errata/RHSA-2026:65832
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:87255
- Vendor advisory access.redhat.com/errata/RHSA-2026:91644
- Vendor advisory access.redhat.com/errata/RHSA-2026:91843
- Vendor advisory access.redhat.com/errata/RHSA-2026:91844
- Vendor advisory access.redhat.com/errata/RHSA-2026:91845
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.