Description
Monitoring Plugins is a suite of plugins for monitoring applications. From 3.0.0-rc1 until 3.0.1, check_icmp stores the number of hosts supplied through -H or --Host on the command line, or through --extra-opts files containing Host= entries, in an unsigned short. More than 65,535 hosts wrap the counter, causing process_arguments() to allocate an undersized hosts array and then write subsequent entries out of bounds before main() calls setuid(getuid()). On installations where check_icmp is setuid root, a local low-privileged attacker can corrupt heap memory while the process still has root privileges; reliable privilege escalation has not been demonstrated. Installations that use cap_net_raw file capabilities instead of setuid are not exposed to the privilege-escalation consequence. This issue is fixed in version 3.0.1.
Affected products
| Vendor | Product | Affected | Fixed |
|---|---|---|---|
| monitoring-plugins | monitoring-plugins | >= 3.0.0-rc1, < 3.0.1 | — |
Fixed in Linux distributions
Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.
Ubuntu
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 26.10 | monitoring-plugins | No fix yet | — |
| Ubuntu 26.04 LTS | monitoring-plugins | No fix yet | — |
| Ubuntu 24.04 LTS | monitoring-plugins | No fix yet | — |
| Ubuntu 22.04 LTS | monitoring-plugins | No fix yet | — |
| Ubuntu 20.04 LTS | monitoring-plugins | No fix yet | — |
Show 2 more (older releases, extended support, other products)Fewer releases
| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Ubuntu 18.04 LTS | monitoring-plugins | No fix yet | — |
| Ubuntu 16.04 LTS | monitoring-plugins | No fix yet | — |