public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/openslp] rawhide: Fix integer overflow in DHCPGetOptionInfo() size calculation
@ 2026-09-29 8:25 Vitezslav Crhonek
0 siblings, 0 replies; only message in thread
From: Vitezslav Crhonek @ 2026-09-29 8:25 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/openslp
Branch : rawhide
Commit : 4e32000a2da8b59e91331b7abab036e33538ee95
Author : Vitezslav Crhonek <vcrhonek@redhat.com>
Date : 2026-09-29T10:24:54+02:00
Stats : +21/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/openslp/c/4e32000a2da8b59e91331b7abab036e33538ee95?branch=rawhide
Log:
Fix integer overflow in DHCPGetOptionInfo() size calculation
---
diff --git a/openslp-2.0.0-dhcp-integer-overflow.patch b/openslp-2.0.0-dhcp-integer-overflow.patch
new file mode 100644
index 0000000..3138610
--- /dev/null
+++ b/openslp-2.0.0-dhcp-integer-overflow.patch
@@ -0,0 +1,12 @@
+diff -up openslp-2.0.0/common/slp_dhcp.c.orig openslp-2.0.0/common/slp_dhcp.c
+--- openslp-2.0.0/common/slp_dhcp.c.orig 2012-12-07 01:52:08.000000000 +0100
++++ openslp-2.0.0/common/slp_dhcp.c 2026-09-23 13:42:53.313401159 +0200
+@@ -522,7 +522,7 @@ int DHCPGetOptionInfo(unsigned char * dh
+ tv.tv_usec %= USECS_PER_SEC;
+ }
+ closesocket(sockfd);
+- return rcvbufsz? dhcpProcessOptions(rcvbuf + 236, rcvbufsz - 236,
++ return (rcvbufsz >= 236)? dhcpProcessOptions(rcvbuf + 236, rcvbufsz - 236,
+ dhcpInfoCB, context): -1;
+ }
+
diff --git a/openslp.spec b/openslp.spec
index 5a54c8d..44f2152 100644
--- a/openslp.spec
+++ b/openslp.spec
@@ -2,7 +2,7 @@
Summary: Open implementation of Service Location Protocol V2
Name: openslp
Version: 2.0.0
-Release: 43%{?dist}
+Release: 44%{?dist}
License: BSD-3-Clause
URL: http://sourceforge.net/projects/openslp/
@@ -33,6 +33,10 @@ Patch6: openslp-2.0.0-cve-2017-17833.patch
# Patch7: fixes a heap overwrite vulnerability
# leading to remote code execution
Patch7: openslp-2.0.0-cve-2019-5544.patch
+# Patch8: validates the DHCP response size in DHCPGetOptionInfo() before
+# subtracting the 236 byte BOOTP header, which otherwise underflows the
+# size_t parameter of dhcpProcessOptions() and reads past rcvbuf
+Patch8: openslp-2.0.0-dhcp-integer-overflow.patch
BuildRequires: make
BuildRequires: automake libtool
@@ -74,6 +78,7 @@ OpenSLP server daemon to dynamically register services.
%patch -P5 -p1 -b .cve-2016-7567
%patch -P6 -p1 -b .cve-2017-17833
%patch -P7 -p1 -b .cve-2019-5544
+%patch -P8 -p1 -b .dhcp-integer-overflow
# tarball goof (?), it wants to re-automake anyway, so let's do it right.
#libtoolize --force
@@ -171,6 +176,9 @@ rm -f $RPM_BUILD_ROOT%{_libdir}/lib*.la
%changelog
+* Tue Sep 29 2026 Vitezslav Crhonek <vcrhonek@redhat.com> - 2.0.0-44
+- Fix integer overflow in DHCPGetOptionInfo() size calculation
+
* Thu Jul 16 2026 Fedora Release Engineering <releng@fedoraproject.org> - 2.0.0-43
- Rebuilt for https://fedoraproject.org/wiki/Fedora_45_Mass_Rebuild
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-09-29 8:25 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-09-29 8:25 [rpms/openslp] rawhide: Fix integer overflow in DHCPGetOptionInfo() size calculation Vitezslav Crhonek
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox