Description
The pidfile_write function in core/pidfile.c in keepalived 1.2.2 and earlier uses 0666 permissions for the (1) keepalived.pid, (2) checkers.pid, and (3) vrrp.pid files in /var/run/, which allows local users to kill arbitrary processes by writing a PID to one of these files.
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.
Debian
Security tracker ↗| Release | Package | Fixed in | Advisory |
|---|---|---|---|
| Debian 14 | keepalived | 1:1.2.2-2 | — |
| Debian 13 | keepalived | 1:1.2.2-2 | — |
| Debian 12 | keepalived | 1:1.2.2-2 | — |
References
- keepalived-pid-dos(67477) vdb-entry
- [debian-security] 20110511 Re: World writable pid and lock files. mailing-list
- [debian-security] 20110510 World writable pid and lock files. mailing-list
- [oss-security] 20110510 CVE request: keepalived pid file permissions issue mailing-list
- 47859 vdb-entry
- 72380 vdb-entry
- http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626281
- 44460 third-party-advisory
- [oss-security] 20110516 Re: CVE request: keepalived pid file permissions issue mailing-list
- https://bugzilla.redhat.com/show_bug.cgi?id=704039
- [debian-security] 20110510 Re: World writable pid and lock files. mailing-list