package/systemd: Add upstream patch to fix CVE-2018-15688
PATCH 1/1 package/systemd: Add upstream patch to fix CVE-2018-15688
--- ...we-have-enough-space-for-the-DHCP6-o.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch
package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch new file +30 -0
@@ -0,0 +1,30 @@ +From 49653743f69658aeeebdb14faf1ab158f1f2cb20 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering <[email protected]> +Date: Fri, 19 Oct 2018 12:12:33 +0200 +Subject: [PATCH] dhcp6: make sure we have enough space for the DHCP6 option + header + +Fixes CVE-2018-15688: +https://security-tracker.debian.org/tracker/CVE-2018-15688 + +Patch downloaded from upstream commit: +https://github.com/systemd/systemd/commit/49653743f69658aeeebdb14faf1ab158f1f2cb20 + +Signed-off-by: Bernd Kuhls <[email protected]> +--- + src/libsystemd-network/dhcp6-option.c | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +diff --git a/src/libsystemd-network/dhcp6-option.c b/src/libsystemd-network/dhcp6-option.c +index cbd4bc7a2a3..2806415100c 100644 +--- a/src/libsystemd-network/dhcp6-option.c ++++ b/src/libsystemd-network/dhcp6-option.c +@@ -106,7 +106,7 @@ int dhcp6_option_append_ia(uint8_t **buf, size_t *buflen, const DHCP6IA *ia) { + return -EINVAL; + } + +- if (*buflen < len) ++ if (*buflen < offsetof(DHCP6Option, data) + len) + return -ENOBUFS; + + ia_hdr = *buf;
Signature · 1 line
2.19.1
PATCH 1/1 package/systemd: Add upstream patch to fix CVE-2018-15688
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
Quoted 1 line
"Bernd" == Bernd Kuhls <[email protected]> writes:
Please always add a short description what the CVE is about. I have added:
Systemd-networkd is vulnerable to an out out-of-bounds heap write in the DHCPv6 client when handling options sent by network adjacent DHCP servers. A attacker could exploit this via malicious DHCP server to corrupt heap memory on client machines, resulting in a denial of service or potential code execution.
Quoted 14 lines
Signed-off-by Bernd Kuhls <[email protected]>--- ...we-have-enough-space-for-the-DHCP6-o.patch | 30 +++++++++++++++++++ 1 file changed, 30 insertions(+) create mode 100644 package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patchdiff --git
a/package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patchb/package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patchnew file mode 100644
index 0000000000..6a72a38988
package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch line 8
Quoted 8 lines
package/systemd/0005-dhcp6-make-sure-we-have-enough-space-for-the-DHCP6-o.patch new file +8
-0@@ -0,0 +1,30 @@ +From 49653743f69658aeeebdb14faf1ab158f1f2cb20 Mon Sep 17 00:00:00 2001 +From: Lennart Poettering <[email protected]> +Date: Fri, 19 Oct 2018 12:12:33 +0200 +Subject: [PATCH] dhcp6: make sure we have enough space for the DHCP6 option + header + +Fixes CVE-2018-15688: +https://security-tracker.debian.org/tracker/CVE-2018-15688
That page mentions that a similar fix is needed for networkmanager. Will you also send a patch for that?
Committed, thanks.
Signature · 1 line
Bye, Peter Korsgaard
PATCH 1/1 package/systemd: Add upstream patch to fix CVE-2018-15688
Quoted 11 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
Quoted 3 lines
"Peter" == Peter Korsgaard <[email protected]> writes:
"Bernd" == Bernd Kuhls <[email protected]> writes:
Please always add a short description what the CVE is about. I have added:
Systemd-networkd is vulnerable to an out out-of-bounds heap write in the DHCPv6 client when handling options sent by network adjacent DHCP servers. A attacker could exploit this via malicious DHCP server to corrupt heap memory on client machines, resulting in a denial of service or potential code execution.
Committed to 2018.02.x and 2018.08.x with the above addition, thanks.
Signature · 1 line
Bye, Peter Korsgaard