Bug 2248493 - [abrt] tunneler: sprintf(): tunneler killed by SIGABRT
Summary: [abrt] tunneler: sprintf(): tunneler killed by SIGABRT
Keywords:
Status: CLOSED ERRATA
Alias: None
Product: Fedora
Classification: Fedora
Component: tunneler
Version: 39
Hardware: x86_64
OS: Linux
low
high
Target Milestone: ---
Assignee: Lubomir Rintel
QA Contact: Fedora Extras Quality Assurance
URL: https://retrace.fedoraproject.org/faf...
Whiteboard: abrt_hash:2088e0712fb91e8ea98ffe9c21c...
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2023-11-07 11:03 UTC by Thomas Huth
Modified: 2025-01-28 04:25 UTC (History)
2 users (show)

Fixed In Version: tunneler-1.1.1-37.fc42 tunneler-1.1.1-37.fc40 tunneler-1.1.1-37.fc39 tunneler-1.1.1-37.fc41
Clone Of:
Environment:
Last Closed: 2024-09-20 23:20:41 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
File: proc_pid_status (1.45 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: maps (3.55 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: limits (1.29 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: os_info (734 bytes, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: cpuinfo (3.22 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: core_backtrace (3.46 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: dso_list (494 bytes, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details
File: backtrace (28.21 KB, text/plain)
2023-11-07 11:03 UTC, Thomas Huth
no flags Details

Description Thomas Huth 2023-11-07 11:03:04 UTC
Description of problem:
I just install "tunneler" and tried to start it - it crashes immediately with this message:

*** buffer overflow detected ***: terminated
Aborted (core dumped)

Version-Release number of selected component:
tunneler-1.1.1-32.fc38

Additional info:
reporter:       libreport-2.17.11
type:           CCpp
reason:         tunneler killed by SIGABRT
executable:     /usr/bin/tunneler
cmdline:        tunneler
cgroup:         0::/user.slice/user-25666.slice/session-2.scope
rootdir:        /
uid:            25666
kernel:         6.5.9-200.fc38.x86_64
package:        tunneler-1.1.1-32.fc38
runlevel:       N 5
backtrace_rating: 4
crash_function: sprintf
environ:        

Truncated backtrace:
Thread no. 1 (2 frames)
 #9 sprintf at /usr/include/bits/stdio2.h:30
 #10 Read_Config at /usr/src/debug/tunneler-1.1.1-32.fc38.x86_64/src/main.c:100

Comment 1 Thomas Huth 2023-11-07 11:03:09 UTC
Created attachment 1997558 [details]
File: proc_pid_status

Comment 2 Thomas Huth 2023-11-07 11:03:10 UTC
Created attachment 1997559 [details]
File: maps

Comment 3 Thomas Huth 2023-11-07 11:03:13 UTC
Created attachment 1997560 [details]
File: limits

Comment 4 Thomas Huth 2023-11-07 11:03:15 UTC
Created attachment 1997561 [details]
File: os_info

Comment 5 Thomas Huth 2023-11-07 11:03:17 UTC
Created attachment 1997562 [details]
File: cpuinfo

Comment 6 Thomas Huth 2023-11-07 11:03:19 UTC
Created attachment 1997563 [details]
File: core_backtrace

Comment 7 Thomas Huth 2023-11-07 11:03:21 UTC
Created attachment 1997564 [details]
File: dso_list

Comment 8 Thomas Huth 2023-11-07 11:03:23 UTC
Created attachment 1997565 [details]
File: backtrace

Comment 9 Thomas Huth 2023-11-15 10:36:45 UTC
The problem persists in Fedora 39

Comment 10 Thomas Huth 2024-01-06 14:24:16 UTC
The following patch fixes the issue - it's an off-by-one allocation error (the allocation did not take the final NUL byte into consideration):

diff -u src/main.c.orig src/main.c
--- src/main.c.orig	2024-01-06 12:27:35.858799575 +0100
+++ src/main.c	2024-01-06 12:27:39.702826782 +0100
@@ -96,7 +96,7 @@
 	return;
     }
 
-    conffile = malloc( strlen(home) + strlen(CONF_FILE) + 1 );
+    conffile = malloc( strlen(home) + strlen(CONF_FILE) + 2 );
     sprintf( conffile, "%s/%s", home, CONF_FILE );
 #else
     char *end;

Comment 11 Thomas Huth 2024-04-24 09:05:09 UTC
Hi Lubomir, are you still maintaining this package in Fedora? ... if not, it might be better to remove than to keep a non-working program around?

Comment 12 Fedora Update System 2024-09-20 23:16:55 UTC
FEDORA-2024-0a6a3a0239 (tunneler-1.1.1-37.fc42) has been submitted as an update to Fedora 42.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0a6a3a0239

Comment 13 Fedora Update System 2024-09-20 23:20:41 UTC
FEDORA-2024-0a6a3a0239 (tunneler-1.1.1-37.fc42) has been pushed to the Fedora 42 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 14 Fedora Update System 2024-09-20 23:48:26 UTC
FEDORA-2024-0d1f5d1433 (tunneler-1.1.1-37.fc41) has been submitted as an update to Fedora 41.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-0d1f5d1433

Comment 15 Fedora Update System 2024-09-20 23:48:51 UTC
FEDORA-2024-da61fba8d8 (tunneler-1.1.1-37.fc40) has been submitted as an update to Fedora 40.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-da61fba8d8

Comment 16 Fedora Update System 2024-09-20 23:49:11 UTC
FEDORA-2024-8f472da38c (tunneler-1.1.1-37.fc39) has been submitted as an update to Fedora 39.
https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f472da38c

Comment 17 Fedora Update System 2024-09-21 01:50:37 UTC
FEDORA-2024-8f472da38c has been pushed to the Fedora 39 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-8f472da38c`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-8f472da38c

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 18 Fedora Update System 2024-09-21 02:41:55 UTC
FEDORA-2024-da61fba8d8 has been pushed to the Fedora 40 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-da61fba8d8`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-da61fba8d8

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 19 Fedora Update System 2024-09-21 03:02:55 UTC
FEDORA-2024-0d1f5d1433 has been pushed to the Fedora 41 testing repository.
Soon you'll be able to install the update with the following command:
`sudo dnf upgrade --enablerepo=updates-testing --refresh --advisory=FEDORA-2024-0d1f5d1433`
You can provide feedback for this update here: https://bodhi.fedoraproject.org/updates/FEDORA-2024-0d1f5d1433

See also https://fedoraproject.org/wiki/QA:Updates_Testing for more information on how to test updates.

Comment 20 Fedora Update System 2024-09-29 01:37:33 UTC
FEDORA-2024-da61fba8d8 (tunneler-1.1.1-37.fc40) has been pushed to the Fedora 40 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 21 Fedora Update System 2024-09-29 01:37:39 UTC
FEDORA-2024-8f472da38c (tunneler-1.1.1-37.fc39) has been pushed to the Fedora 39 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 22 Fedora Update System 2024-09-29 01:41:23 UTC
FEDORA-2024-0d1f5d1433 (tunneler-1.1.1-37.fc41) has been pushed to the Fedora 41 stable repository.
If problem still persists, please make note of it in this bug report.

Comment 23 Red Hat Bugzilla 2025-01-28 04:25:04 UTC
The needinfo request[s] on this closed bug have been removed as they have been unresolved for 120 days


Note You need to log in before you can comment on or make changes to this bug.