Compare commits
12 Commits
bfe9227d6f
...
f87166e73d
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
f87166e73d | ||
|
|
dd67d8dffd | ||
|
|
032ec31466 | ||
|
|
b5261efeda | ||
|
|
fc9e8ae150 | ||
|
|
7689b73dde | ||
|
|
6b36e6d39b | ||
|
|
5798c18150 | ||
|
|
2bb87dc150 | ||
|
|
5266ccc2ad | ||
|
|
6af6a8f01a | ||
|
|
3d6a1f0a63 |
39
CVE-2021-44225.patch
Normal file
39
CVE-2021-44225.patch
Normal file
@ -0,0 +1,39 @@
|
||||
From 7977fec0be89ae6fe87405b3f8da2f0b5e415e3d Mon Sep 17 00:00:00 2001
|
||||
From: Vincent Bernat <vincent@bernat.ch>
|
||||
Date: Tue, 23 Nov 2021 06:50:59 +0100
|
||||
Subject: [PATCH] dbus: fix policy to not be overly broad
|
||||
The DBus policy did not restrict the message destination, allowing any
|
||||
user to inspect and manipulate any property.
|
||||
CVE-2021-44225
|
||||
https://nvd.nist.gov/vuln/detail/CVE-2021-44225
|
||||
Reference:https://github.com/acassen/keepalived/commit/7977fec0be89ae6fe87405b3f8da2f0b5e415e3d.patch
|
||||
Conflict:NA
|
||||
Signed-off-by: Vincent Bernat <vincent@bernat.ch>
|
||||
---
|
||||
keepalived/dbus/org.keepalived.Vrrp1.conf | 13 ++++++++-----
|
||||
1 file changed, 8 insertions(+), 5 deletions(-)
|
||||
diff --git a/keepalived/dbus/org.keepalived.Vrrp1.conf b/keepalived/dbus/org.keepalived.Vrrp1.conf
|
||||
index 2b78a575c..b5ced6085 100644
|
||||
--- a/keepalived/dbus/org.keepalived.Vrrp1.conf
|
||||
+++ b/keepalived/dbus/org.keepalived.Vrrp1.conf
|
||||
@@ -3,12 +3,15 @@
|
||||
"http://www.freedesktop.org/standards/dbus/1.0/busconfig.dtd">
|
||||
<busconfig>
|
||||
<policy user="root">
|
||||
- <allow own="org.keepalived.Vrrp1"/>
|
||||
- <allow send_destination="org.keepalived.Vrrp1"/>
|
||||
+ <allow own="org.keepalived.Vrrp1" />
|
||||
+ <allow send_destination="org.keepalived.Vrrp1" />
|
||||
</policy>
|
||||
<policy context="default">
|
||||
- <allow send_interface="org.freedesktop.DBus.Introspectable" />
|
||||
- <allow send_interface="org.freedesktop.DBus.Peer" />
|
||||
- <allow send_interface="org.freedesktop.DBus.Properties" />
|
||||
+ <allow send_destination="org.keepalived.Vrrp1"
|
||||
+ send_interface="org.freedesktop.DBus.Introspectable" />
|
||||
+ <allow send_destination="org.keepalived.Vrrp1"
|
||||
+ send_interface="org.freedesktop.DBus.Peer" />
|
||||
+ <allow send_destination="org.keepalived.Vrrp1"
|
||||
+ send_interface="org.freedesktop.DBus.Properties" />
|
||||
</policy>
|
||||
</busconfig>
|
||||
Binary file not shown.
BIN
keepalived-2.2.4.tar.gz
Normal file
BIN
keepalived-2.2.4.tar.gz
Normal file
Binary file not shown.
@ -5,7 +5,7 @@ Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
Type=forking
|
||||
PIDFile=/var/run/keepalived.pid
|
||||
PIDFile=/run/keepalived.pid
|
||||
KillMode=process
|
||||
EnvironmentFile=-/etc/sysconfig/keepalived
|
||||
ExecStart=/usr/sbin/keepalived $KEEPALIVED_OPTIONS
|
||||
|
||||
@ -2,12 +2,13 @@
|
||||
%bcond_without vrrp
|
||||
%bcond_without sha1
|
||||
%bcond_with profile
|
||||
%bcond_without nftables
|
||||
%bcond_with debug
|
||||
|
||||
%global _hardened_build 1
|
||||
|
||||
Name: keepalived
|
||||
Version: 2.0.12
|
||||
Version: 2.2.4
|
||||
Release: 2
|
||||
Summary: High Availability monitor built upon LVS, VRRP and service pollers
|
||||
License: GPLv2+
|
||||
@ -15,8 +16,11 @@ URL: http://www.keepalived.org/
|
||||
Source0: http://www.keepalived.org/software/keepalived-%{version}.tar.gz
|
||||
Source1: keepalived.service
|
||||
|
||||
Patch0001: CVE-2021-44225.patch
|
||||
|
||||
BuildRequires: net-snmp-devel gcc systemd-units openssl-devel libnl3-devel
|
||||
BuildRequires: ipset-devel iptables-devel libnfnetlink-devel
|
||||
BuildRequires: ipset-devel iptables-devel libnfnetlink-devel libnftnl-devel
|
||||
BuildRequires: file-devel libmnl-devel
|
||||
%{?systemd requires}
|
||||
|
||||
%description
|
||||
@ -38,12 +42,13 @@ or all together to provide resilient infrastructures.
|
||||
%package_help
|
||||
|
||||
%prep
|
||||
%autosetup -n %{name}-%{version}
|
||||
%autosetup -n %{name}-%{version} -p1
|
||||
|
||||
%build
|
||||
%configure %{?with_debug:--enable-debug} %{?with_profile:--enable-profile} \
|
||||
%{!?with_vrrp:--disable-vrrp} %{?with_sha1:--enable-sha1} \
|
||||
--with-init=systemd %{!?with_vrrp:--disable-vrrp} \
|
||||
%{?with_nftables:--enable-nftables --disable-iptables --disable-ipset} \
|
||||
%{?with_snmp:--enable-snmp --enable-snmp-rfc} \
|
||||
|
||||
%make_build STRIP=/bin/true
|
||||
@ -87,5 +92,23 @@ install -Dd -m 0755 %{buildroot}%{_libexecdir}/keepalived
|
||||
%{_mandir}/man*
|
||||
|
||||
%changelog
|
||||
* Sat Dec 21 2019 openEuler Buildteam <buildteam@openeuler.org> - 2.0.12-2
|
||||
* Tue Mar 29 2022 kwb0523 <kwb0523@163.com> - 2.2.4-2
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:fix CVE-2021-44225
|
||||
|
||||
* Tue Dec 21 2021 kwb0523 <kwb0523@163.com> - 2.2.4-1
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:upgrade keepalived to 2.2.4
|
||||
|
||||
* Thu Jun 10 2021 wangxp006 <wangxp006@163.com> - 2.0.20-3
|
||||
- Type:bugfix
|
||||
- ID:NA
|
||||
- SUG:NA
|
||||
- DESC:backport upstream patches
|
||||
|
||||
* Tue May 12 2020 openEuler Buildteam <buildteam@openeuler.org> - 2.0.20-2
|
||||
- Package init
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user