🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: linux.debian.maint.hams
1 messages
1 total messages Started by Thomas Osterried Sun, 18 Oct 2026 07:50
Security fixes for libax25, ax25-apps and -tools
#32
Author: Thomas Osterried
Date: Sun, 18 Oct 2026 07:50
100 lines
6027 bytes
Dear package maintainers,

Bernard f6bvp found some security problems in libax25, ax25-apps and -tools.

Yesterday, I upgraded the old git repos with the needed fixes, together with others I found in the last weeks.

 git://linux-ax25.in-berlin.de/pub/scm/libax25
 git://linux-ax25.in-berlin.de/pub/scm/ax25-apps
 git://linux-ax25.in-berlin.de/pub/scm/ax25-tools


Side note:
I updated the old repo because linux distributions still look for that URL.
I'm in progress for an suite with more features. Many changes happened there, and it is -hopefully- full backward compatible.
Because linux distribution's package-manangement need a pointer to a stable release for their updates for their current and older distribution releases, I decided to commit the security fixes to the old repo mentionied above.

vy 73,
	- Thomas  dl9sau


Bernard's E-Mail for reference:

> Von: Bernard Pidoux <bernard.f6bvp@gmail.com>
> Betreff: Aw: ax25d - very severe bug!! - was: Re: [PATCH] ax25-tools user_call: data dropped on a slow link, connect timeout that never fires
> Datum: 16. Oktober 2026 um 11:11:11 MESZ
> An: thomas@osterried.de
> Kopie: linux-hams@vger.kernel.org
> Message-Id: <CAFAa3YCki2QC_JrJFB+SM7cN-iRi9sP3KyCd9Xa1fy49GGRgmA@mail.gmail.com>
> 
> Hello Thomas,
> 
> Thank you for taking this so seriously, and for porting pull requests
> #28 to #33 to the unix-ax25-stack tree so quickly.
> 
> I agree that distribution maintainers should be told now. Two
> precisions, so that the warning is accurate:
> 
> 1. ax25d, remote command execution as root (fixed in PR #30)
> 
> This one is in the AX25.IP mode VC check, i.e. only when ax25d.conf
> contains "parameters_extAX25 VC-wait-login" or "VC-reject-login".
> In that case the caller's callsign is put into a shell command line
> passed to system(). The kernel does not check the characters of a
> callsign, so a station sending a forged callsign can have a command
> run as root, without any login. Without these VC options the code
> path is not reached. The fix lets through only letters, digits and
> the SSID dash; any other callsign is not looked up.
> 
> 2. Compression overflow, in axspawn rather than ax25d (fixed in PR #32)
> 
> axspawn is started as root by ax25d. The "//COMP ON" switch is
> handled inside read_ax25(), so a peer can turn on compression
> already at the login or password prompt, that is before any
> authentication. The decoder (decstathuf) read the length byte as a
> plain char: where char is unsigned (ARM, so the Raspberry Pi), a
> first byte of 0xFF selects the "no compression" path, which copies
> the peer-controlled frame length into a 260-byte stack buffer
> (about 2 KiB overflow under AddressSanitizer). On x86, where char is
> signed, the path is not reachable. Exposed: any system where
> ax25d.conf starts axspawn, on ARM or another unsigned-char platform.
> 
> For the old repository at
> https://www.google.com/url?q=http://linux-ax25.in-berlin.de&source=gmail&ust=1792227413302000&sa=E:
> the two fixes are
> self-contained. If it helps, I can prepare them as plain patches
> against that tree.
> 
> For the distributions, my suggestion: since the fixes are already
> public on GitHub and on this list, there is nothing left to keep
> under embargo, so a direct report seems best. For Debian, a bug
> against ax25-tools tagged "security", addressed to the Debian
> Hamradio Maintainers, with a copy to the Debian security team, who
> can also assign CVE identifiers. I am happy to file the Debian
> reports myself, pointing to your tree and to Lee's pull requests,
> unless you prefer to do it. Please tell me which you prefer, so we
> do not send them twice.
> 
> For what it is worth, on our own network none of the eight nodes uses
> the VC options, and the only node that starts axspawn is an i686
> machine; all eight have run the fixed ax25d since 14 October and the
> fixed axspawn since 15 October.
> 
> Good luck with the timing of the user-space stack announcement; it
> does not have to wait for this.
> 
> 73,
> Bernard, F6BVP
> 
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads