Article View: linux.debian.maint.hams
Article #32Security fixes for libax25, ax25-apps and -tools
From: Thomas Osterried
Date: Sun, 18 Oct 2026 07:50
Date: Sun, 18 Oct 2026 07:50
100 lines
6027 bytes
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 >
Technical Details
Message-ID:
<NPtOx-6ioU-5@gated-at.bofh.it>Path:
mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomodShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!archive.usenet.blueworldhosting.com!usenet.blueworldhosting.com!diablo1.usenet.blueworldhosting.com!news.corradoroberto.it!bofh.it!news.nic.it!robomod From: Thomas Osterried <thomas@osterried.de> Newsgroups: linux.debian.maint.hams Subject: Security fixes for libax25, ax25-apps and -tools Date: Sun, 18 Oct 2026 09:50:01 +0200 Message-ID: <NPtOx-6ioU-5@gated-at.bofh.it> X-Original-To: Debian Hamradio Maintainers <debian-hams@lists.debian.org> X-Mailbox-Line: From debian-hams-request@lists.debian.org Sun Oct 18 07:42:09 2026 Old-Return-Path: <thomas@osterried.de> X-Amavis-Spam-Status: No, score=-0.645 tagged_above=-10000 required=5.3 tests=[BAYES_00=-1.9, GOOG_REDIR_NOTRDNS=0.853, KHOP_HELO_FCRDNS=0.4, RCVD_IN_MSPIKE_H3=0.001, RCVD_IN_MSPIKE_WL=0.001] autolearn=no autolearn_force=no X-Policyd-Weight: using cached result; rate: -4.7 X-Greylist: delayed 705 seconds by postgrey-1.37 at bendel; Sun, 18 Oct 2026 07:24:58 UTC Old-X-Envelope-From: thomas@osterried.de Old-X-Envelope-To: <debian-hams@lists.debian.org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: quoted-printable MIME-Version: 1.0 (Mac OS X Mail 16.0 \(3826.700.81.1.8\)) X-Mailer: Apple Mail (2.3826.700.81.1.8) X-Mailing-List: <debian-hams@lists.debian.org> archive/latest/16975 List-ID: <debian-hams.lists.debian.org> List-URL: <https://lists.debian.org/debian-hams/> List-Archive: https://lists.debian.org/msgid-search/35B6E715-73E1-4967-8B71-F10D90C38FF7@osterried.de Approved: robomod@news.nic.it Lines: 100 Organization: linux.* mail to news gateway Sender: robomod@news.nic.it X-Original-Date: Sun, 18 Oct 2026 09:12:59 +0200 X-Original-Message-ID: <35B6E715-73E1-4967-8B71-F10D90C38FF7@osterried.de>