public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/hamlib] epel8: Fixed stack out-of-bounds write and uninitialized memory disclosure
@ 2026-10-06 17:53
0 siblings, 0 replies; only message in thread
From: @ 2026-10-06 17:53 UTC (permalink / raw)
To: git-commits
A new commit has been pushed.
Repo : rpms/hamlib
Branch : epel8
Commit : 52f6401a6e4eb073d9b9e7be6bd72afbe7bee09f
Author : Jaroslav Škarvada <jskarvad@redhat.com>
Date : 2026-10-06T19:53:22+02:00
Stats : +57/-1 in 2 file(s)
URL : https://src.fedoraproject.org/rpms/hamlib/c/52f6401a6e4eb073d9b9e7be6bd72afbe7bee09f?branch=epel8
Log:
Fixed stack out-of-bounds write and uninitialized memory disclosure
Resolves: CVE-2026-54634
---
diff --git a/hamlib-4.5.5-CVE-2026-54634.patch b/hamlib-4.5.5-CVE-2026-54634.patch
new file mode 100644
index 0000000..222be01
--- /dev/null
+++ b/hamlib-4.5.5-CVE-2026-54634.patch
@@ -0,0 +1,50 @@
+diff --git a/src/rig.c b/src/rig.c
+index c535241..094bc8c 100644
+--- a/src/rig.c
++++ b/src/rig.c
+@@ -7732,7 +7732,7 @@ HAMLIB_EXPORT(int) rig_send_raw(RIG *rig, const unsigned char *send,
+ return -RIG_EINVAL;
+ }
+
+- memcpy(reply, buf, reply_len - 1);
++ memcpy(reply, buf, nbytes);
+ }
+ else
+ {
+diff --git a/tests/rigctl_parse.c b/tests/rigctl_parse.c
+index 91f407f..9f36c70 100644
+--- a/tests/rigctl_parse.c
++++ b/tests/rigctl_parse.c
+@@ -5405,7 +5405,22 @@ declare_proto_rig(send_raw)
+ else if (strcasecmp(arg1, "CR")) { term[0] = 0x0d; }
+ else if (strcasecmp(arg1, "LF")) { term[0] = 0x0a; }
+ else if (strcasecmp(arg1, "ICOM")) { term[0] = 0xfd; }
+- else if (sscanf(arg1, "%d", &val) == 1) { term[0] = 0; buf_len = val;}
++ else if (sscanf(arg1, "%d", &val) == 1)
++ {
++ term[0] = 0;
++ if (val < buf_len - 1 && val >= 0)
++ {
++ // Reserve one byte more to allow padding with null
++ buf_len = val + 1;
++ }
++ else
++ {
++ rig_debug(RIG_DEBUG_ERR,
++ "%s: response length %d is larger than maximum of %d bytes",
++ __func__, val, buf_len);
++ return -RIG_EINVAL;
++ }
++ }
+ else
+ {
+ rig_debug(RIG_DEBUG_ERR,
+@@ -5424,7 +5439,7 @@ declare_proto_rig(send_raw)
+ rig_debug(RIG_DEBUG_TRACE, "%s:\n", __func__);
+ reply_len = rig_send_raw(rig, (unsigned char *)sendp, arg2_len, buf,
+ buf_len, term);
+- buf[buf_len + 1] = 0; // null terminate in case it's a string
++ if (!hex_flag) { buf[buf_len - 1] = 0; } // null terminate in case it's a string
+
+ if ((interactive && prompt) || (interactive && !prompt && ext_resp))
+ {
diff --git a/hamlib.spec b/hamlib.spec
index fdba666..0e30895 100644
--- a/hamlib.spec
+++ b/hamlib.spec
@@ -13,7 +13,7 @@
Name: hamlib
Version: 4.5.5
-Release: 1%{?dist}
+Release: 2%{?dist}
Summary: Run-time library to control radio transceivers and receivers
License: GPL-2.0-or-later and LGPL-2.0-or-later
@@ -27,6 +27,8 @@ Source0: https://github.com/Hamlib/Hamlib/archive/%{githash}/%{name}-%{sh
Patch0: hamlib-4.0-perl_install.patch
# -lpython is not needed, https://github.com/Hamlib/Hamlib/issues/253
Patch1: hamlib-4.0-drop-libpython.patch
+# https://www.cve.org/CVERecord?id=CVE-2026-54634
+Patch2: hamlib-4.5.5-CVE-2026-54634.patch
BuildRequires: automake autoconf libtool
@@ -244,6 +246,10 @@ make V=1 check
%changelog
+* Tue Oct 06 2026 Jaroslav Škarvada <jskarvad@redhat.com> - 4.5.5-2
+- Fixed stack out-of-bounds write and uninitialized memory disclosure
+ Resolves: CVE-2026-54634
+
* Mon May 29 2023 Richard Shaw <hobbes1069@gmail.com> - 4.5.5-1
- Update to 4.5.5.
^ permalink raw reply related [flat|nested] only message in thread
only message in thread, other threads:[~2026-10-06 17:53 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-06 17:53 [rpms/hamlib] epel8: Fixed stack out-of-bounds write and uninitialized memory disclosure
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox