Script 'mail_helper' called by obssrc Hello community, here is the log from the commit of package dhcp for openSUSE:Factory checked in at 2026-11-19 16:53:21 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/dhcp (Old) and /work/SRC/openSUSE:Factory/.dhcp.new.1251 (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "dhcp" Thu Nov 19 16:53:21 2026 rev:146 rq:1398167 version:4.4.3.P1 Changes: -------- --- /work/SRC/openSUSE:Factory/dhcp/dhcp.changes 2026-07-06 12:28:07.674636940 +0200 +++ /work/SRC/openSUSE:Factory/.dhcp.new.1251/dhcp.changes 2026-11-19 16:53:27.779581440 +0100 @@ -1,0 +2,6 @@ +Tue Nov 17 12:49:15 UTC 2026 - Jorik Cronenberg <[email protected]> + +- Fix buffer overflow in print_hw_addr(), CVE-2026-18103 + [bsc#1274246, dhcp-CVE-2026-18103.patch] + +------------------------------------------------------------------- New: ---- dhcp-CVE-2026-18103.patch ----------(New B)---------- New:- Fix buffer overflow in print_hw_addr(), CVE-2026-18103 [bsc#1274246, dhcp-CVE-2026-18103.patch] ----------(New E)---------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ dhcp.spec ++++++ --- /var/tmp/diff_new_pack.pobI9M/_old 2026-11-19 16:53:29.160639980 +0100 +++ /var/tmp/diff_new_pack.pobI9M/_new 2026-11-19 16:53:29.162640065 +0100 @@ -96,6 +96,7 @@ # PATCH-FIX-SLE dhcp-4.2.4-P1-interval bsc#947780 Patch20: 0020-dhcp-4.x.x-fixed-improper-lease-duration-checking.patch Patch21: 0021-dhcp-ip-family-symlinks.patch +Patch22: dhcp-CVE-2026-18103.patch BuildRequires: automake BuildRequires: dos2unix BuildRequires: libtool @@ -217,6 +218,7 @@ %patch -P 18 -p1 %patch -P 20 %patch -P 21 +%patch -P 22 -p1 ## find . -type f -name \*.cat\* -exec rm -f {} \; dos2unix contrib/ms2isc/* ++++++ _scmsync.obsinfo ++++++ --- /var/tmp/diff_new_pack.pobI9M/_old 2026-11-19 16:53:29.288645406 +0100 +++ /var/tmp/diff_new_pack.pobI9M/_new 2026-11-19 16:53:29.291645533 +0100 @@ -1,6 +1,6 @@ -mtime: 1782997184 -commit: 368351e22598fa3c66e040ca1358aebd315c53823e6a2a8f18324cf0454b4c96 +mtime: 1794921514 +commit: f2e452d7fc4d23e42a2dfb2939076fd66a1bf71abfa8abc6319484e5b93cf70a url: https://src.opensuse.org/dhcp/dhcp -revision: 368351e22598fa3c66e040ca1358aebd315c53823e6a2a8f18324cf0454b4c96 +revision: f2e452d7fc4d23e42a2dfb2939076fd66a1bf71abfa8abc6319484e5b93cf70a projectscmsync: https://src.opensuse.org/dhcp/_ObsPrj.git ++++++ build.specials.obscpio ++++++ ++++++ build.specials.obscpio ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/.gitignore new/.gitignore --- old/.gitignore 1970-01-01 01:00:00.000000000 +0100 +++ new/.gitignore 2026-11-17 14:18:34.000000000 +0100 @@ -0,0 +1 @@ +.osc ++++++ dhcp-CVE-2026-18103.patch ++++++ Fix buffer overflow in print_hw_addr() CVE-2026-18103 bsc#1274246 --- a/common/print.c +++ b/common/print.c @@ -174,14 +174,22 @@ char *print_hw_addr (htype, hlen, data) const unsigned char *data; { static char habuf [64]; + /* Each byte renders as "xx:", so the buffer holds at most + (sizeof habuf - 1) / 3 of them, not sizeof habuf. */ + const int max_bytes = (int)((sizeof habuf - 1) / 3); char *s; - int i; + int i, n; - if (hlen <= 0 || hlen >= sizeof(habuf)) + if (hlen <= 0) habuf [0] = 0; else { + /* hlen can arrive straight off the wire (e.g. packet->raw->hlen + is a u_int8_t) and exceed what any real hardware address + needs; clamp it so we print as much of it as fits instead + of overflowing habuf. */ + n = (hlen > max_bytes) ? max_bytes : hlen; s = habuf; - for (i = 0; i < hlen; i++) { + for (i = 0; i < n; i++) { sprintf (s, "%02x", data [i]); s += strlen (s); *s++ = ':';
