public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
From: Vitezslav Crhonek <vcrhonek@redhat.com>
To: git-commits@fedoraproject.org
Subject: [rpms/openslp] rawhide: Fix integer overflow in DHCPGetOptionInfo() size calculation
Date: Tue, 29 Sep 2026 08:25:06 GMT [thread overview]
Message-ID: <179067030640.1.8003095026268825566.rpms-openslp-4e32000a2da8@fedoraproject.org> (raw)
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
reply other threads:[~2026-09-29 8:25 UTC|newest]
Thread overview: [no followups] expand[flat|nested] mbox.gz Atom feed
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=179067030640.1.8003095026268825566.rpms-openslp-4e32000a2da8@fedoraproject.org \
--to=vcrhonek@redhat.com \
--cc=git-commits@fedoraproject.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox