## Updated at UTC 2026-11-27T08:39:27.654537

Access data as JSON

CVE CVSS EPSS Posts Repos Nuclei Updated Description
CVE-2026-137715 None 0.00% 2 0 2026-11-27T06:31:12 Webmin through 2.670 before 07d1949 does not escape a save_log.cgi log file path
CVE-2026-137738 9.8 0.00% 4 0 2026-11-27T06:17:09.867000 In RealVNC Server before 7.19.1, UDP-based connections could potentially be expl
CVE-2026-137724 10.0 0.00% 4 0 2026-11-27T06:17:09.727000 A vulnerability in the Platform component of Mitel OpenScape 4000, and OpenScape
CVE-2026-137723 9.6 0.00% 2 0 2026-11-27T06:17:09.587000 A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape
CVE-2026-137721 10.0 0.00% 2 0 2026-11-27T06:17:09.443000 A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape
CVE-2026-115288 8.4 0.00% 2 0 2026-11-27T06:17:08.240000 Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This iss
CVE-2026-115285 7.6 0.00% 2 0 2026-11-27T06:17:07.900000 DoS vulnerability in BS2500/BS500 Virtage Firmware. This issue affects BladeSym
CVE-2026-115284 8.4 0.00% 2 0 2026-11-27T06:17:07.773000 Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This iss
CVE-2026-115283 8.8 0.00% 2 0 2026-11-27T06:17:07.647000 Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This is
CVE-2026-119071 8.1 0.00% 2 0 2026-11-27T05:19:00.663000 The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Delet
CVE-2026-137704 8.8 0.00% 2 0 2026-11-27T03:30:36 D-Link DWM-222W developed by D-Link Corporation has a Use of Hard-coded Credenti
CVE-2026-137706 9.9 0.00% 2 0 2026-11-27T03:30:28 Smart Portal developed by Direk Tech has a Missing Authorization vulnerability.
CVE-2026-137705 7.5 0.00% 2 0 2026-11-27T03:30:28 Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Un
CVE-2026-135384 0 0.00% 4 0 2026-11-27T00:16:43.560000 Improper authentication in OIDC bearer token verification in Canonical LXD befor
CVE-2026-127163 0 0.00% 4 0 2026-11-27T00:16:41.440000 Improper certificate validation in websocket connections in Canonical pylxd befo
CVE-2026-137657 7.5 0.00% 4 0 2026-11-26T21:31:19 InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation
CVE-2026-135038 7.5 0.00% 2 0 2026-11-26T21:31:19 Missing Authorization vulnerability in weDevs WP ERP erp allows Exploiting Incor
CVE-2026-137518 7.8 0.00% 2 0 2026-11-26T21:31:18 pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_f
CVE-2026-137506 7.8 0.00% 2 0 2026-11-26T21:31:18 ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-
CVE-2026-137529 7.8 0.00% 2 0 2026-11-26T21:31:18 JAL (Just Another Ledger) through 2026.11.3 contains an arbitrary file overwrite
CVE-2026-137539 8.8 0.00% 2 0 2026-11-26T20:17:24.283000 lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar
CVE-2026-134705 8.8 0.00% 2 0 2026-11-26T20:17:22.783000 Incorrect Privilege Assignment vulnerability in miniOrange miniorange otp verifi
CVE-2026-134714 7.5 0.00% 2 0 2026-11-26T19:17:09.850000 Missing Authorization vulnerability in Webful Creations RepairBuddy computer-rep
CVE-2026-134488 7.5 0.00% 2 0 2026-11-26T19:17:09.430000 Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking C
CVE-2026-137556 8.8 0.00% 2 0 2026-11-26T18:30:46 Dockhand before 1.0.57 contains a path traversal vulnerability in validateStackP
CVE-2026-92251 7.5 0.00% 2 0 2026-11-26T18:30:46 The ZarinPal Payment Gateway for WooCommerce plugin for WordPress is vulnerable
CVE-2026-137552 7.5 0.00% 2 0 2026-11-26T18:30:45 Frappe Framework before 15.121.1 and 16.x before 16.35.0 accepts an undocumented
CVE-2026-97345 7.5 0.00% 2 0 2026-11-26T18:30:45 The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to
CVE-2026-76075 8.8 0.00% 2 0 2026-11-26T16:18:11.973000 The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload i
CVE-2026-136716 None 1.01% 2 2 2026-11-26T03:30:27 Improper Check for Unusual or Exceptional Conditions vulnerability in Drupal Dru
CVE-2026-67210 5.8 0.74% 2 0 2026-11-26T00:31:27 diaspora* through 0.10.1, using the diaspora_federation gem through 1.2.0, conta
CVE-2026-0989 3.7 0.60% 1 0 2026-11-25T16:17:32.657000 A flaw was identified in the RelaxNG parser of libxml2 related to how external s
CVE-2026-129713 0 1.90% 2 1 2026-11-24T17:50:07.100000 A stack-based buffer overflow in an unauthenticated CGI handler of the Danfoss A
CVE-2026-111497 9.8 32.98% 2 100 2026-11-24T15:17:09.400000 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google
CVE-2026-99362 9.8 0.76% 3 2 2026-11-23T08:17:41.020000 In the Linux kernel, the following vulnerability has been resolved: nfsd: prefl
CVE-2026-123890 9.8 5.01% 2 8 2026-11-20T21:32:46 VMware vCenter contains an authentication bypass vulnerability in the VMware Dir
CVE-2026-99515 None 0.21% 1 0 2026-11-19T15:31:28 In the Linux kernel, the following vulnerability has been resolved: iommufd: Fi
CVE-2026-59159 0 0.18% 1 0 2026-11-18T17:17:49.060000 Linux Mint Update Manager manages software updates on Linux Mint systems. From 5
CVE-2026-111793 4.3 0.98% 2 1 2026-11-10T21:32:45 Openwave Webtop Media Transcoder does not enforce administrator-defined file typ
CVE-2026-105481 6.5 0.22% 1 1 2026-11-02T16:17:23.327000 A flaw in Node.js HTTP Agent connection reuse can cause a client to accept as va
CVE-2026-92027 8.8 0.48% 3 0 2026-10-06T15:13:28.183000 Use-after-free in the DOM: Streams component. This vulnerability was fixed in Fi
CVE-2026-93657 7.5 0.40% 1 0 2026-09-22T20:53:07.383000 hickory-resolver versions before 0.26.2 fail to propagate bogus DNSSEC proof sta
CVE-2026-88622 8.8 1.40% 1 0 2026-09-22T20:00:03.713000 NUUO Network Video Recorder 2.0.0 is vulnerable to Command Injection in handle_i
CVE-2026-54586 0 0.15% 1 0 2026-09-21T21:17:04.840000 mport is the MidnightBSD Package Manager. Prior to 2.7.8, the mport_fetch_index(
CVE-2026-54575 0 0.12% 1 0 2026-09-21T21:17:04.700000 mport is the MidnightBSD Package Manager. Prior to 2.7.8, privileged package fet
CVE-2026-93599 7.5 0.49% 1 0 2026-09-18T15:32:20 rustls-webpki through 0.103.12 (and 0.104.0-alpha releases before 0.104.0-alpha.
CVE-2026-93595 6.5 0.38% 1 0 2026-09-18T15:32:19 ArcadeDB before 26.9.1 contains an access control bypass vulnerability in the qu
CVE-2026-54578 0 0.11% 1 0 2026-09-18T15:17:09.320000 mport is the MidnightBSD Package Manager. Prior to 2.7.8, mport_verify_package()
CVE-2025-15366 None 0.74% 1 0 2026-07-09T18:31:22 The imaplib module, when passed a user-controlled command, can have additional c
CVE-2025-8732 3.3 0.29% 1 0 2026-07-01T15:25:19.593000 A vulnerability was found in libxml2 up to 2.14.5. It has been declared as probl
CVE-2026-3479 0 0.28% 1 0 2026-06-17T10:43:39.067000 DISPUTED: The project has clarified that the documentation was incorrect, and th
CVE-2025-12781 5.3 0.85% 1 0 2026-06-17T08:32:56.797000 When passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decod
CVE-2018-16742 7.8 0.45% 1 0 2026-06-17T01:44:45.240000 An issue was discovered in mgetty before 1.2.1. In contrib/scrts.c, a stack-base
CVE-2018-16741 7.8 1.32% 1 0 2026-06-17T01:44:45.110000 An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the functi
CVE-2018-10195 7.1 0.39% 1 0 2026-06-17T01:33:39.563000 lrzsz before version 0.12.21~rc can leak information to the receiving side due t
CVE-2011-4116 3.3 0.52% 1 0 2026-06-16T23:34:27.380000 _is_safe in the File::Temp module for Perl does not properly handle symlinks.
CVE-2025-66382 2.9 0.22% 1 0 2026-06-02T15:31:50 In libexpat through 2.7.3, a crafted file with an approximate size of 2 MiB can
CVE-2026-0990 5.9 0.84% 1 0 2026-04-22T12:30:29 A flaw was found in libxml2, an XML parsing library. This uncontrolled recursion
CVE-2025-15367 None 0.64% 1 0 2026-01-21T00:31:49 The poplib module, when passed a user-controlled command, can have additional co
CVE-2021-31879 6.1 1.10% 1 0 2024-04-04T03:06:50 GNU Wget through 1.21.1 does not omit the Authorization header upon a redirect t
CVE-2019-1010189 5.5 0.83% 1 0 2024-04-04T01:21:48 mgetty prior to version 1.2.1 is affected by: Infinite Loop. The impact is: DoS,
CVE-2018-16745 7.8 0.45% 1 0 2023-02-02T05:04:59 An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c
CVE-2018-16744 7.8 1.03% 1 0 2023-02-02T05:01:51 An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c
CVE-2018-16743 7.8 0.45% 1 0 2023-02-01T05:05:48 An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, t
CVE-2019-1010190 None 0.84% 1 0 2023-01-28T05:06:12 mgetty prior to 1.2.1 is affected by: out-of-bounds read. The impact is: DoS, th
CVE-2026-54582 0 0.55% 1 0 N/A
CVE-2026-1353 0 0.00% 2 2 N/A
CVE-2026-124286 0 0.29% 2 0 N/A
CVE-2026-135279 0 0.00% 2 0 N/A
CVE-2026-54583 0 0.54% 1 0 N/A
CVE-2026-46529 0 0.41% 1 1 N/A

CVE-2026-137715(CVSS UNKNOWN)

EPSS: 0.00%

updated 2026-11-27T06:31:12

2 posts

Webmin through 2.670 before 07d1949 does not escape a save_log.cgi log file path. This is relevant for code execution if a shared-hosting provider offers Webalizer module access.

offseq at 2026-11-27T04:30:36.932Z ##

CVE-2026-137715 (HIGH): Webmin ≤2.670 exposes OS command injection via save_log.cgi log path. Shared hosting with Webalizer enabled is at greater risk – patch promptly. radar.offseq.com/threat/cve-20

##

offseq@infosec.exchange at 2026-11-27T04:30:36.000Z ##

CVE-2026-137715 (HIGH): Webmin ≤2.670 exposes OS command injection via save_log.cgi log path. Shared hosting with Webalizer enabled is at greater risk – patch promptly. radar.offseq.com/threat/cve-20 #OffSeq #Webmin #Vuln #Infosec

##

CVE-2026-137738
(9.8 CRITICAL)

EPSS: 0.00%

updated 2026-11-27T06:17:09.867000

4 posts

In RealVNC Server before 7.19.1, UDP-based connections could potentially be exploited without authentication to execute code remotely or cause the software to crash. This could allow an attacker to remotely execute code as root on certain platforms or perform a denial of service attack. This issue affects RealVNC Viewer: from 8.4.0 through 8.6.1; RealVNC Classic Viewer: from 6.4.0 through 7.18.2;

thehackerwire@mastodon.social at 2026-11-27T08:02:54.000Z ##

🔴 CVE-2026-137738 - Critical (9.8)

In RealVNC Server before 7.19.1, UDP-based connections could potentially be exploited without authentication to execute code remotely or cause the software to crash. This could allow an attacker to remotely execute code as root on certain platform...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

offseq at 2026-11-27T07:30:37.175Z ##

CVE-2026-137738 (CRITICAL, CVSS 9.8): RealVNC Server <7.19.1 vulnerable to unauthenticated UDP exploit, allowing remote code execution or DoS. Upgrade all affected components promptly. radar.offseq.com/threat/in-rea

##

thehackerwire@mastodon.social at 2026-11-27T08:02:54.000Z ##

🔴 CVE-2026-137738 - Critical (9.8)

In RealVNC Server before 7.19.1, UDP-based connections could potentially be exploited without authentication to execute code remotely or cause the software to crash. This could allow an attacker to remotely execute code as root on certain platform...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

offseq@infosec.exchange at 2026-11-27T07:30:37.000Z ##

CVE-2026-137738 (CRITICAL, CVSS 9.8): RealVNC Server <7.19.1 vulnerable to unauthenticated UDP exploit, allowing remote code execution or DoS. Upgrade all affected components promptly. radar.offseq.com/threat/in-rea #OffSeq #infosec #CVE2026137738 #RealVNC

##

CVE-2026-137724
(10.0 CRITICAL)

EPSS: 0.00%

updated 2026-11-27T06:17:09.727000

4 posts

A vulnerability in the Platform component of Mitel OpenScape 4000, and OpenScape 4000 Manager could allow an unauthenticated attacker to conduct an unauthorized access attack due to improper authentication mechanisms. A successful exploit could allow an attacker to obtain sensitive information and gain unauthorized access to system. This vulnerability affects OpenScape 4000, versions V11 R0.22 thr

thehackerwire@mastodon.social at 2026-11-27T06:31:27.000Z ##

🔴 CVE-2026-137724 - Critical (10)

A vulnerability in the Platform component of Mitel OpenScape 4000, and OpenScape 4000 Manager could allow an unauthenticated attacker to conduct an unauthorized access attack due to improper authentication mechanisms. A successful exploit could al...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

offseq at 2026-11-27T06:00:36.957Z ##

CVE-2026-137724 (CVSS 10) in Mitel OpenScape 4000/Manager enables auth bypass & full system compromise. Patch to V11 R2.14 now. Critical for orgs running affected versions. More info: radar.offseq.com/threat/cve-20

##

thehackerwire@mastodon.social at 2026-11-27T06:31:27.000Z ##

🔴 CVE-2026-137724 - Critical (10)

A vulnerability in the Platform component of Mitel OpenScape 4000, and OpenScape 4000 Manager could allow an unauthenticated attacker to conduct an unauthorized access attack due to improper authentication mechanisms. A successful exploit could al...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

offseq@infosec.exchange at 2026-11-27T06:00:36.000Z ##

CVE-2026-137724 (CVSS 10) in Mitel OpenScape 4000/Manager enables auth bypass & full system compromise. Patch to V11 R2.14 now. Critical for orgs running affected versions. More info: radar.offseq.com/threat/cve-20 #OffSeq #CVE2026137724 #infosec #patch

##

CVE-2026-137723
(9.6 CRITICAL)

EPSS: 0.00%

updated 2026-11-27T06:17:09.587000

2 posts

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to execute arbitrary commands within the context of the system. This vulnerability affects OpenScape 4000, versions V11 R0.22 through V11 R2.11 and V10 R1.6

thehackerwire@mastodon.social at 2026-11-27T06:31:17.000Z ##

🔴 CVE-2026-137723 - Critical (9.6)

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T06:31:17.000Z ##

🔴 CVE-2026-137723 - Critical (9.6)

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137721
(10.0 CRITICAL)

EPSS: 0.00%

updated 2026-11-27T06:17:09.443000

2 posts

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to execute arbitrary commands within the context of the system. This vulnerability affects OpenScape 4000, versions V11 R0.22 through V11 R2.11 and V10 R1.6

thehackerwire@mastodon.social at 2026-11-27T06:31:08.000Z ##

🔴 CVE-2026-137721 - Critical (10)

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T06:31:08.000Z ##

🔴 CVE-2026-137721 - Critical (10)

A vulnerability in the Platform component of Mitel OpenScape 4000 and OpenScape 4000 Manager could allow an attacker to conduct a command injection attack due to insufficient parameter sanitization. A successful exploit could allow an attacker to ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-115288
(8.4 HIGH)

EPSS: 0.00%

updated 2026-11-27T06:17:08.240000

2 posts

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This issue affects BladeSymphony BS2500: from 02-02 through 02-76*; BladeSymphony BS500: from 01-01 through 02-76*.

thehackerwire@mastodon.social at 2026-11-27T05:45:57.000Z ##

🟠 CVE-2026-115288 - High (8.4)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76*; BladeSymphony BS500: from 01-01 through 02-76*.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T05:45:57.000Z ##

🟠 CVE-2026-115288 - High (8.4)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76*; BladeSymphony BS500: from 01-01 through 02-76*.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-115285
(7.6 HIGH)

EPSS: 0.00%

updated 2026-11-27T06:17:07.900000

2 posts

DoS vulnerability in BS2500/BS500 Virtage Firmware. This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

thehackerwire@mastodon.social at 2026-11-27T08:03:13.000Z ##

🟠 CVE-2026-115285 - High (7.6)

DoS vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T08:03:13.000Z ##

🟠 CVE-2026-115285 - High (7.6)

DoS vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-115284
(8.4 HIGH)

EPSS: 0.00%

updated 2026-11-27T06:17:07.773000

2 posts

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

thehackerwire@mastodon.social at 2026-11-27T08:03:04.000Z ##

🟠 CVE-2026-115284 - High (8.4)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T08:03:04.000Z ##

🟠 CVE-2026-115284 - High (8.4)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-115283
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-27T06:17:07.647000

2 posts

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware. This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

thehackerwire@mastodon.social at 2026-11-27T05:46:18.000Z ##

🟠 CVE-2026-115283 - High (8.8)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T05:46:18.000Z ##

🟠 CVE-2026-115283 - High (8.8)

Missing authentication vulnerability in BS2500/BS500 Virtage Firmware.

This issue affects BladeSymphony BS2500: from 02-02 through 02-76; BladeSymphony BS500: from 01-01 through 02-76.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-119071
(8.1 HIGH)

EPSS: 0.00%

updated 2026-11-27T05:19:00.663000

2 posts

The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Deletion in all versions up to, and including, 2.11.0 via the `ajax_revert()` AJAX handler. The vulnerability exists because the `remove_optimizations()` function reads attacker-controlled values from the unprotected `w3tc_imageservice` post meta key — which carries no underscore prefix and no registered authorization callb

thehackerwire@mastodon.social at 2026-11-27T05:46:07.000Z ##

🟠 CVE-2026-119071 - High (8.1)

The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Deletion in all versions up to, and including, 2.11.0 via the `ajax_revert()` AJAX handler. The vulnerability exists because the `remove_optimizations()` function reads att...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T05:46:07.000Z ##

🟠 CVE-2026-119071 - High (8.1)

The W3 Total Cache plugin for WordPress is vulnerable to unauthorized File Deletion in all versions up to, and including, 2.11.0 via the `ajax_revert()` AJAX handler. The vulnerability exists because the `remove_optimizations()` function reads att...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137704
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-27T03:30:36

2 posts

D-Link DWM-222W developed by D-Link Corporation has a Use of Hard-coded Credentials vulnerability. Unauthenticated adjacent network attackers can use the administrator account embedded in the firmware to access the configuration backup endpoint and obtain plaintext passwords for all user accounts.

thehackerwire@mastodon.social at 2026-11-27T04:16:07.000Z ##

🟠 CVE-2026-137704 - High (8.8)

D-Link DWM-222W developed by D-Link Corporation has a Use of Hard-coded Credentials vulnerability. Unauthenticated adjacent network attackers can use the administrator account embedded in the firmware to access the configuration backup endpoint an...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T04:16:07.000Z ##

🟠 CVE-2026-137704 - High (8.8)

D-Link DWM-222W developed by D-Link Corporation has a Use of Hard-coded Credentials vulnerability. Unauthenticated adjacent network attackers can use the administrator account embedded in the firmware to access the configuration backup endpoint an...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137706
(9.9 CRITICAL)

EPSS: 0.00%

updated 2026-11-27T03:30:28

2 posts

Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.

thehackerwire@mastodon.social at 2026-11-27T04:15:56.000Z ##

🔴 CVE-2026-137706 - Critical (9.9)

Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T04:15:56.000Z ##

🔴 CVE-2026-137706 - Critical (9.9)

Smart Portal developed by Direk Tech has a Missing Authorization vulnerability. Authenticated remote attackers can add a specified account to the Active Directory Domain Admins group, thereby obtaining domain administrator privileges.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137705
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-27T03:30:28

2 posts

Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Unauthenticated remote attackers can exploit Relative Path Traversal to download arbitrary system files.

thehackerwire@mastodon.social at 2026-11-27T04:15:37.000Z ##

🟠 CVE-2026-137705 - High (7.5)

Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Unauthenticated remote attackers can exploit Relative Path Traversal to download arbitrary system files.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T04:15:37.000Z ##

🟠 CVE-2026-137705 - High (7.5)

Smart Portal developed by Direk Tech has an Arbitrary File Read vulnerability.Unauthenticated remote attackers can exploit Relative Path Traversal to download arbitrary system files.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-135384
(0 None)

EPSS: 0.00%

updated 2026-11-27T00:16:43.560000

4 posts

Improper authentication in OIDC bearer token verification in Canonical LXD before 5.0.12, 5.21.10, 6.10.2 allows a remote attacker holding a token signed by the configured identity provider to authenticate to the LXD API and gain unauthorized control or impersonate users via presenting tokens issued for other applications, ID tokens, or unverified email claims.

DailyCyberSecurity at 2026-11-27T02:47:46.237Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

cvenewsdaily.com/cve-2026-1353

##

offseq at 2026-11-27T01:30:36.812Z ##

CVE-2026-135384 – CRITICAL improper auth in Canonical LXD (5.0 – 6.10.1). OIDC tokens for other apps may grant API access, risking user impersonation. Upgrade to 5.0.12, 5.21.10, or 6.10.2+. Details: radar.offseq.com/threat/cve-20

##

DailyCyberSecurity@infosec.exchange at 2026-11-27T02:47:46.000Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

#LXD #pylxd #Canonical #OIDC #CVE

cvenewsdaily.com/cve-2026-1353

##

offseq@infosec.exchange at 2026-11-27T01:30:36.000Z ##

CVE-2026-135384 – CRITICAL improper auth in Canonical LXD (5.0 – 6.10.1). OIDC tokens for other apps may grant API access, risking user impersonation. Upgrade to 5.0.12, 5.21.10, or 6.10.2+. Details: radar.offseq.com/threat/cve-20 #OffSeq #LXD #CVE2026_135384 #Infosec

##

CVE-2026-127163
(0 None)

EPSS: 0.00%

updated 2026-11-27T00:16:41.440000

4 posts

Improper certificate validation in websocket connections in Canonical pylxd before 2.4.3 allows a network attacker to read command stdin and spoof command output via impersonating a remote LXD endpoint.

DailyCyberSecurity at 2026-11-27T02:47:46.237Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

cvenewsdaily.com/cve-2026-1353

##

offseq at 2026-11-27T00:00:38.084Z ##

CRITICAL vuln in Canonical pylxd (2.4.2 – <2.4.3): CVE-2026-127163 allows network attackers to impersonate LXD endpoints via improper cert validation — leads to command input/output compromise. Patch to 2.4.3+ now! radar.offseq.com/threat/cve-20

##

DailyCyberSecurity@infosec.exchange at 2026-11-27T02:47:46.000Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

#LXD #pylxd #Canonical #OIDC #CVE

cvenewsdaily.com/cve-2026-1353

##

offseq@infosec.exchange at 2026-11-27T00:00:38.000Z ##

CRITICAL vuln in Canonical pylxd (2.4.2 – <2.4.3): CVE-2026-127163 allows network attackers to impersonate LXD endpoints via improper cert validation — leads to command input/output compromise. Patch to 2.4.3+ now! radar.offseq.com/threat/cve-20 #OffSeq #CVE2026127163 #Python #Infosec

##

CVE-2026-137657
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:19

4 posts

InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation vulnerability in the DistServe proxy /distserve/connection_warmup endpoint that allows unauthenticated attackers to exhaust memory. While a prefill/decode connection is pending, for example after registering a slow node via /nodes/add, repeated warmup requests spawn unbounded wait_for_conn() tasks and sockets until th

offseq at 2026-11-27T03:00:37.442Z ##

HIGH severity (CVSS 7.5): InternLM LMDeploy 0.9.0 – 0.18.0 has an unbounded resource allocation flaw in DistServe proxy (/distserve/connection_warmup). Unauthenticated attackers can exhaust memory — proxy may crash. CVE-2026-137657. radar.offseq.com/threat/intern

##

thehackerwire@mastodon.social at 2026-11-26T21:01:36.000Z ##

🟠 CVE-2026-137657 - High (7.5)

InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation vulnerability in the DistServe proxy /distserve/connection_warmup endpoint that allows unauthenticated attackers to exhaust memory. While a prefill/decode connection ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

offseq@infosec.exchange at 2026-11-27T03:00:37.000Z ##

HIGH severity (CVSS 7.5): InternLM LMDeploy 0.9.0 – 0.18.0 has an unbounded resource allocation flaw in DistServe proxy (/distserve/connection_warmup). Unauthenticated attackers can exhaust memory — proxy may crash. CVE-2026-137657. radar.offseq.com/threat/intern #OffSeq #Vulnerability #Infosec

##

thehackerwire@mastodon.social at 2026-11-26T21:01:36.000Z ##

🟠 CVE-2026-137657 - High (7.5)

InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation vulnerability in the DistServe proxy /distserve/connection_warmup endpoint that allows unauthenticated attackers to exhaust memory. While a prefill/decode connection ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-135038
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:19

2 posts

Missing Authorization vulnerability in weDevs WP ERP erp allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects WP ERP: from n/a through 2.0.0.

thehackerwire@mastodon.social at 2026-11-26T20:15:47.000Z ##

🟠 CVE-2026-135038 - High (7.5)

Missing Authorization vulnerability in weDevs WP ERP erp allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects WP ERP: from n/a through 2.0.0.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T20:15:47.000Z ##

🟠 CVE-2026-135038 - High (7.5)

Missing Authorization vulnerability in weDevs WP ERP erp allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects WP ERP: from n/a through 2.0.0.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137518
(7.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:18

2 posts

pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_filter() that allows attackers to execute code by supplying crafted .npz or .pkl filter files. Attackers can embed a __reduce__ gadget that runs via np.load with allow_pickle=True or pickle.load before validation, executing code with the user's privileges.

thehackerwire@mastodon.social at 2026-11-26T22:31:26.000Z ##

🟠 CVE-2026-137518 - High (7.8)

pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_filter() that allows attackers to execute code by supplying crafted .npz or .pkl filter files. Attackers can embed a __reduce__ gadget that runs via np.load with allow_...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T22:31:26.000Z ##

🟠 CVE-2026-137518 - High (7.8)

pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_filter() that allows attackers to execute code by supplying crafted .npz or .pkl filter files. Attackers can embed a __reduce__ gadget that runs via np.load with allow_...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137506
(7.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:18

2 posts

ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or appid names break out of quoted strings in generated scripts, executing code with the privileges of the user running them.

thehackerwire@mastodon.social at 2026-11-26T22:31:16.000Z ##

🟠 CVE-2026-137506 - High (7.8)

ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or ap...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T22:31:16.000Z ##

🟠 CVE-2026-137506 - High (7.8)

ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-on that allows attackers to inject Python code via unescaped single quotes in DXF table entry names. Attackers can craft a DXF file whose layer, linetype, style, or ap...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137529
(7.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:18

2 posts

JAL (Just Another Ledger) through 2026.11.3 contains an arbitrary file overwrite vulnerability in backup restore that allows attackers to write files by supplying a crafted .tgz backup with a symlink member. Attackers can include a jal.sqlite symlink to an absolute path followed by a regular jal.sqlite member, overwriting files such as shell startup scripts for code execution.

thehackerwire@mastodon.social at 2026-11-26T21:01:17.000Z ##

🟠 CVE-2026-137529 - High (7.8)

JAL (Just Another Ledger) through 2026.11.3 contains an arbitrary file overwrite vulnerability in backup restore that allows attackers to write files by supplying a crafted .tgz backup with a symlink member. Attackers can include a jal.sqlite syml...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T21:01:17.000Z ##

🟠 CVE-2026-137529 - High (7.8)

JAL (Just Another Ledger) through 2026.11.3 contains an arbitrary file overwrite vulnerability in backup restore that allows attackers to write files by supplying a crafted .tgz backup with a symlink member. Attackers can include a jal.sqlite syml...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137539
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T20:17:24.283000

2 posts

lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via tar symlink members. Attackers controlling a project's release assets can craft a tarball with a symlink followed by a file beneath it, writing files like usercustomize.py to achieve code execution.

thehackerwire@mastodon.social at 2026-11-26T21:01:26.000Z ##

🟠 CVE-2026-137539 - High (8.8)

lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via tar symlink members. Attackers controlling a project's release assets can craft a tarball ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T21:01:26.000Z ##

🟠 CVE-2026-137539 - High (8.8)

lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar() that allows attackers to write files outside the extraction directory via tar symlink members. Attackers controlling a project's release assets can craft a tarball ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-134705
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T20:17:22.783000

2 posts

Incorrect Privilege Assignment vulnerability in miniOrange miniorange otp verification miniorange-otp-verification allows Privilege Escalation.This issue affects miniorange otp verification: from n/a through 5.6.2.

thehackerwire@mastodon.social at 2026-11-26T22:31:35.000Z ##

🟠 CVE-2026-134705 - High (8.8)

Incorrect Privilege Assignment vulnerability in miniOrange miniorange otp verification miniorange-otp-verification allows Privilege Escalation.This issue affects miniorange otp verification: from n/a through 5.6.2.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T22:31:35.000Z ##

🟠 CVE-2026-134705 - High (8.8)

Incorrect Privilege Assignment vulnerability in miniOrange miniorange otp verification miniorange-otp-verification allows Privilege Escalation.This issue affects miniorange otp verification: from n/a through 5.6.2.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-134714
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T19:17:09.850000

2 posts

Missing Authorization vulnerability in Webful Creations RepairBuddy computer-repair-shop allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects RepairBuddy: from n/a through 4.1237.

thehackerwire@mastodon.social at 2026-11-26T20:16:08.000Z ##

🟠 CVE-2026-134714 - High (7.5)

Missing Authorization vulnerability in Webful Creations RepairBuddy computer-repair-shop allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects RepairBuddy: from n/a through 4.1237.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T20:16:08.000Z ##

🟠 CVE-2026-134714 - High (7.5)

Missing Authorization vulnerability in Webful Creations RepairBuddy computer-repair-shop allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects RepairBuddy: from n/a through 4.1237.

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-134488
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T19:17:09.430000

2 posts

Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking Calendar for Appointments &amp; Services radius-booking allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Radius Booking — Booking Calendar for Appointments &amp; Services: from n/a through 1.0.22.

thehackerwire@mastodon.social at 2026-11-26T20:15:57.000Z ##

🟠 CVE-2026-134488 - High (7.5)

Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking Calendar for Appointments &amp; Services radius-booking allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Radius Booking — ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T20:15:57.000Z ##

🟠 CVE-2026-134488 - High (7.5)

Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking Calendar for Appointments &amp; Services radius-booking allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Radius Booking — ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137556
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T18:30:46

2 posts

Dockhand before 1.0.57 contains a path traversal vulnerability in validateStackPath, which omits the isProtectedPath() check and permits writes to protected system directories. Authenticated users with stacks:edit permission can send a crafted composePath to PUT /api/stacks/[name]/compose to write arbitrary files, such as cron payloads, achieving remote code execution as root.

thehackerwire@mastodon.social at 2026-11-27T02:15:42.000Z ##

🟠 CVE-2026-137556 - High (8.8)

Dockhand before 1.0.57 contains a path traversal vulnerability in validateStackPath, which omits the isProtectedPath() check and permits writes to protected system directories. Authenticated users with stacks:edit permission can send a crafted com...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T02:15:42.000Z ##

🟠 CVE-2026-137556 - High (8.8)

Dockhand before 1.0.57 contains a path traversal vulnerability in validateStackPath, which omits the isProtectedPath() check and permits writes to protected system directories. Authenticated users with stacks:edit permission can send a crafted com...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-92251
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T18:30:46

2 posts

The ZarinPal Payment Gateway for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.1.1 via the `Return_from_ZarinPal_Gateway()` handler registered on the `woocommerce_api_wc_zpal` (`?wc-api=wc_zpal`) endpoint. The handler accepts a `wc_order` parameter from the query string, loads the corresponding WooCommerce order without any a

thehackerwire@mastodon.social at 2026-11-26T23:16:35.000Z ##

🟠 CVE-2026-92251 - High (7.5)

The ZarinPal Payment Gateway for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.1.1 via the `Return_from_ZarinPal_Gateway()` handler registered on the `woocommerce_api_wc_zpal...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T23:16:35.000Z ##

🟠 CVE-2026-92251 - High (7.5)

The ZarinPal Payment Gateway for WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 5.1.1 via the `Return_from_ZarinPal_Gateway()` handler registered on the `woocommerce_api_wc_zpal...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-137552
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T18:30:45

2 posts

Frappe Framework before 15.121.1 and 16.x before 16.35.0 accepts an undocumented OAuth2 Resource Owner Password Credentials (password) grant at its token endpoint, which does not enforce two-factor authentication or forced password resets. An attacker with a user's valid credentials can use this grant to obtain a full-access OAuth token, bypassing 2FA.

thehackerwire@mastodon.social at 2026-11-27T02:15:30.000Z ##

🟠 CVE-2026-137552 - High (7.5)

Frappe Framework before 15.121.1 and 16.x before 16.35.0 accepts an undocumented OAuth2 Resource Owner Password Credentials (password) grant at its token endpoint, which does not enforce two-factor authentication or forced password resets. An atta...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T02:15:30.000Z ##

🟠 CVE-2026-137552 - High (7.5)

Frappe Framework before 15.121.1 and 16.x before 16.35.0 accepts an undocumented OAuth2 Resource Owner Password Credentials (password) grant at its token endpoint, which does not enforce two-factor authentication or forced password resets. An atta...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-97345
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T18:30:45

2 posts

The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 2.17.1 via the 'sumup-validate-order' query parameter handled by the check_redirect_flow() / resolve_payment_redirect_validation() functions. The template_redirect handler accepts an arbitrary numeric order ID from an unauthenticated GET request and, wi

thehackerwire@mastodon.social at 2026-11-26T23:16:46.000Z ##

🟠 CVE-2026-97345 - High (7.5)

The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 2.17.1 via the 'sumup-validate-order' query parameter handled by the check_redirect_flow() / resolve...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T23:16:46.000Z ##

🟠 CVE-2026-97345 - High (7.5)

The SumUp Payment Gateway For WooCommerce plugin for WordPress is vulnerable to Insecure Direct Object Reference in versions up to, and including, 2.17.1 via the 'sumup-validate-order' query parameter handled by the check_redirect_flow() / resolve...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-76075
(8.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T16:18:11.973000

2 posts

The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 2.7.4 via the warehouse_cargo_install_and_activate_plugin() AJAX handler. The handler is registered on wp_ajax_ but performs no nonce verification and no capability check, allowing any authenticated user to supply an attacker-controlled URL that the server fetches, writes into wp-conten

thehackerwire@mastodon.social at 2026-11-27T02:15:19.000Z ##

🟠 CVE-2026-76075 - High (8.8)

The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 2.7.4 via the warehouse_cargo_install_and_activate_plugin() AJAX handler. The handler is registered on wp_ajax_ but performs no nonce ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-27T02:15:19.000Z ##

🟠 CVE-2026-76075 - High (8.8)

The Warehouse Cargo theme for WordPress is vulnerable to Arbitrary File Upload in versions up to, and including, 2.7.4 via the warehouse_cargo_install_and_activate_plugin() AJAX handler. The handler is registered on wp_ajax_ but performs no nonce ...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-136716(CVSS UNKNOWN)

EPSS: 1.01%

updated 2026-11-26T03:30:27

2 posts

Improper Check for Unusual or Exceptional Conditions vulnerability in Drupal Drupal core allows Forceful Browsing. This issue affects Drupal core versions: from 0.0.0 to 10.6.23, from 11.0.0 to 11.3.23, from 11.4.0 to 11.4.14.

2 repos

https://github.com/foxcornlab/drupal-installer-scanner

https://github.com/googlesky/CVE-2026-136716

bsi@social.bund.de at 2026-11-26T19:00:09.000Z ##

⚠️ 📢 Gestern wurde ein Advisory zu einer kritischen Schwachstelle im Content-Management-System (CMS) Drupal Core veröffentlicht. Die Schwachstelle mit der Kennung CVE-2026-136716 erlaubt Angreifern bei ungewöhnlichen oder unvollständigen Installationszuständen auf Bereiche einer Drupal-Webseite zuzugreifen, die eigentlich nicht zugänglich sein sollten („Forceful Browsing“).

Mehr dazu findet ihr hier: bsi.bund.de/dok/1212672

##

bsi@social.bund.de at 2026-11-26T19:00:09.000Z ##

⚠️ 📢 Gestern wurde ein Advisory zu einer kritischen Schwachstelle im Content-Management-System (CMS) Drupal Core veröffentlicht. Die Schwachstelle mit der Kennung CVE-2026-136716 erlaubt Angreifern bei ungewöhnlichen oder unvollständigen Installationszuständen auf Bereiche einer Drupal-Webseite zuzugreifen, die eigentlich nicht zugänglich sein sollten („Forceful Browsing“).

Mehr dazu findet ihr hier: bsi.bund.de/dok/1212672

##

CVE-2026-67210
(5.8 MEDIUM)

EPSS: 0.74%

updated 2026-11-26T00:31:27

2 posts

diaspora* through 0.10.1, using the diaspora_federation gem through 1.2.0, contains a server-side request forgery vulnerability that allows unauthenticated attackers to make the pod send requests to arbitrary internal hosts by supplying a crafted diaspora handle to the GET /link endpoint, which triggers WebFinger discovery without private-address filtering. Attackers can specify a handle containin

sky@schub.social at 2026-11-26T23:00:09.000Z ##

they actually published it! cve.org/CVERecord?id=CVE-2026-

not sure I should be impressed, or embarrassed for them?

##

sky@schub.social at 2026-11-26T23:00:09.000Z ##

they actually published it! cve.org/CVERecord?id=CVE-2026-

not sure I should be impressed, or embarrassed for them?

##

CVE-2026-0989
(3.7 LOW)

EPSS: 0.60%

updated 2026-11-25T16:17:32.657000

1 posts

A flaw was identified in the RelaxNG parser of libxml2 related to how external schema inclusions are handled. The parser does not enforce a limit on inclusion depth when resolving nested <include> directives. Specially crafted or overly complex schemas can cause excessive recursion during parsing. This may lead to stack exhaustion and application crashes, creating a denial-of-service risk.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2026-129713
(0 None)

EPSS: 1.90%

updated 2026-11-24T17:50:07.100000

2 posts

A stack-based buffer overflow in an unauthenticated CGI handler of the Danfoss AK-SM 8xxA Series controller allows remote attackers to send specially crafted HTTP/S POST requests, leading to memory corruption, webserver restart and hypothetically potential arbitrary code execution with webserver privileges. Authentication is not required to exploit this vulnerability.

1 repos

https://github.com/cveForge/CVE-2026-129713

beyondmachines1 at 2026-11-27T08:01:38.132Z ##

CISA Alerts Food Retailers to Critical Danfoss Fridge Controller Flaw

CISA issued an advisory for CVE-2026-129713, a critical buffer overflow vulnerability in Danfoss AK-SM 8xxA refrigeration controllers and reported active exploitation of two other flaws. The flaw allows unauthenticated attackers to execute arbitrary code or disrupt cooling systems, which have recently been targeted in state-sponsored attacks.

**If you run Danfoss AK-SM 8xxA Series controllers, isolate them from the internet using a VPN right away because no patch is currently available. Configure your devices to operate in Strict Mode and use strong, unique passwords for all accounts. Monitor for version 5.5.x and apply it as soon as Danfoss releases the update.**

beyondmachines.net/event_detai

##

beyondmachines1@infosec.exchange at 2026-11-27T08:01:38.000Z ##

CISA Alerts Food Retailers to Critical Danfoss Fridge Controller Flaw

CISA issued an advisory for CVE-2026-129713, a critical buffer overflow vulnerability in Danfoss AK-SM 8xxA refrigeration controllers and reported active exploitation of two other flaws. The flaw allows unauthenticated attackers to execute arbitrary code or disrupt cooling systems, which have recently been targeted in state-sponsored attacks.

**If you run Danfoss AK-SM 8xxA Series controllers, isolate them from the internet using a VPN right away because no patch is currently available. Configure your devices to operate in Strict Mode and use strong, unique passwords for all accounts. Monitor for version 5.5.x and apply it as soon as Danfoss releases the update.**
#cybersecurity #infosec #advisory #vulnerability
beyondmachines.net/event_detai

##

CVE-2026-111497
(9.8 CRITICAL)

EPSS: 32.98%

updated 2026-11-24T15:17:09.400000

2 posts

A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google Brotli versions 1.0.3 through 1.2.0 on all platforms allows a remote unauthenticated attacker to corrupt adjacent decoder state memory, disclose sensitive memory contents, cause a denial of service, or potentially execute arbitrary code using a crafted Brotli-compressed stream. Users need to update any Brotli lib

100 repos

https://github.com/apaonum/brotli-cve-check

https://github.com/fbuff-tools/http2shell-checker

https://github.com/foxcornlab/node2shell-inventory-scanner

https://github.com/mehmet-emir-eroglu/NODE2SHELL

https://github.com/ashrafzaryouh/CVE-2026-111497

https://github.com/AdapptOnAzure/cve-2026-111497-mitigation

https://github.com/ikow/brotli2crash

https://github.com/incu-tech/october-cyber-family

https://github.com/mnk-works/cve-2026-111497-rce-checker

https://github.com/queso/formbricks-patched

https://github.com/gik2927/CVE-2026-111497-DOS-

https://github.com/MelissaSkywalkz/broccoli2shell-gis

https://github.com/aymenkmar/node2shell-check

https://github.com/syrex1013/CVE-2026-111497-node2shell

https://github.com/avatarnewyork/brotli-check

https://github.com/FranklinF25/http2shell

https://github.com/Arkango/CVE-2026-111497

https://github.com/dimasma0305/CVE-2026-111497-POC

https://github.com/AdapptOnAzure/CVE-2026-111497-DotNetBrotliScan

https://github.com/fuzheado/n2s-buildpack-probe

https://github.com/Sumit0x00/node2shell

https://github.com/s1ko/poc-cve-2026-111497

https://github.com/cveForge/CVE-2026-111497

https://github.com/mahumadad/CVE-2026-111497-assessment

https://github.com/timosar/woff2shell

https://github.com/GlobularOne/HTTP2Shell-PoC

https://github.com/trailofbits/brotli-checker

https://github.com/Sami-AlEsh/nodejs-security-check

https://github.com/shivrajem/node2shell-detect

https://github.com/TahuCryptsi/node-brotli-check

https://github.com/lushinshang/cve-2026-111497-http2shell-guide

https://github.com/akaihigurashi/brotli2scan

https://github.com/caveeroo/cve-2026-111497-wordpress-poc

https://github.com/depuschm/brotli-k8s-scan

https://github.com/datmt/vulcheck

https://github.com/Certbn/Brotli-Node.js-CVE-2026-111497-Broccoli2Shell-Node2Shell-HTTP2Shell-

https://github.com/jianghang8421/fix-cve-2026-111497

https://github.com/duytien241/nodejs-CVE-2026-111497

https://github.com/alequinterok/CVE-2026-111497

https://github.com/OhMyDitzzy/CVE-2026-111497

https://github.com/malikad778/php2shell-guard

https://github.com/bastet-ai/brotli-firing-range

https://github.com/axisops/CVE-2026-111497

https://github.com/amier-ge/Node2Shell

https://github.com/Hika-sec/http2shell-CVE-2026-111497

https://github.com/Blackman99/lotstamp

https://github.com/jeffschafer/Bigfix-NodeJS-Vulnerability-Scanner-Content-CVE-2026-111497

https://github.com/pt-act/node2shell-cve-2026-111497

https://github.com/RedSideSecurity/node2shell

https://github.com/Nyamort/brotli-pingback-lab

https://github.com/Sable-Research/brotli-decoder-overflow

https://github.com/thebarel/CVE-2026-111497

https://github.com/ks-labs/brotli-patch

https://github.com/tal7aouy/node2shell-scanner

https://github.com/ChriSec7/CVE-2026-111497-POC

https://github.com/tani2shell/node2shell-lab

https://github.com/atiilla/CVE-2026-111497-Node2Shell

https://github.com/sam00/Node2Shell-CVE-2026-111497-POC

https://github.com/SYM01/cve-2026-111497

https://github.com/dansaurabh/brotli2shell_Hunter

https://github.com/hkoeck/node2shell-status

https://github.com/CompleteTech-Security/node2shell-check

https://github.com/paulmann/CVE-2026-111497

https://github.com/googlesky/CVE-2026-111497

https://github.com/Quaerendir/node2shell-audit

https://github.com/Ghost-Bx1/DotNet-HTTP2Shell-CVE-2026-111497

https://github.com/lesterlam/node2shell

https://github.com/OrnisLab/2shell-advisories

https://github.com/TheFool-TAROT/CVE-2026-111497-brotli-pwn

https://github.com/esskslifetech/PROTECTION2Shell

https://github.com/Nucklear/CVE-2026-111497-working

https://github.com/tc4dy/CVE-2026-111497-Toolkit

https://github.com/eduxcode/node2shell-lab

https://github.com/fieldse/http2shell-checker

https://github.com/hayupisama/quarkus-brotli-audit

https://github.com/miracle438/node2shell-two-stage

https://github.com/ionsec/node2shell-detector

https://github.com/CompleteTech-Security/http2shell-check

https://github.com/suominen/CVE-2026-111497

https://github.com/Saturate/CVE-2026-111497

https://github.com/assetnote/node2shell-scanner

https://github.com/Ghost-Bx1/Node2Shell-CVE-2026-111497

https://github.com/tikarammardi/CVE-2026-111497

https://github.com/fortbridge/cve-2026-111497-wordpress-pingback-brotli

https://github.com/AmanSin001/node-brotli-check

https://github.com/upeul/vulnpocalypse-2026-10-response

https://github.com/EQSTLab/CVE-2026-111497

https://github.com/csakala-art/cbci-libbrotli-patch-25551

https://github.com/amier-ge/node2shell-checker

https://github.com/KarpelesLab/broccoli2shell

https://github.com/Secragon/node2shell-radar

https://github.com/w116tjb/CVE-2026-111497_nodejs_hash_lookup

https://github.com/adachis/pillow-patched-brotli

https://github.com/yavuzsemih/brotli-secfix

https://github.com/Charlie-Netdevops/node-hostcheck

https://github.com/MchinaMd57764/CVE-2026-111497-PoC

https://github.com/proxy0x/CVE-2026-111497

https://github.com/hypnguyen1209/CVE-2026-111497

https://github.com/TahuCryptsi/brotli-distro-check

https://github.com/CaterMaoZi/CVE-2026-111497-POC

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

baum@social.fade-to-black.eu at 2026-11-27T08:19:23.000Z ##

@FediSuite Hallo.

Koenntest du das Base Image von 2.4.3 auf

node:26-alpine@sha256:6bd9ab43c0ec0190ca7b2d193906cb8b7edf6e7f4afa43ddeccd6452710bffb5

oder auf

node:26.12.1-alpine@sha256:40cd011b55415bc894e45b02fdd5a5dfde056921b7d23a64c74f80497af48797

umstellen, damit CVE-2026-111497 damit gefixt wird?

##

CVE-2026-99362
(9.8 CRITICAL)

EPSS: 0.76%

updated 2026-11-23T08:17:41.020000

3 posts

In the Linux kernel, the following vulnerability has been resolved: nfsd: preflight SEQUENCE replies before accepting a slot nfsd4_sequence() narrows the reply buffer to the session's cached reply limit before it accepts the slot seqid. A client may negotiate ca_maxresponsesize_cached down to NFSD_MIN_HDR_SEQ_SZ, and nfsd4_alloc_slot() then gives every slot a zero-length sl_data[]. A COMPOUND ta

2 repos

https://github.com/suominen/CVE-2026-99362

https://github.com/ashrafzaryouh/CVE-2026-99362

oversecurity@mastodon.social at 2026-11-27T08:20:04.000Z ##

New NFS2ROOT Linux flaw can let attackers gain root privileges

​A 12-year-old critical vulnerability in the Linux kernel's Network File System (NFS) server, tracked as CVE-2026-99362, allows remote attackers to...

🔗️ [Bleepingcomputer] link.is.it/DY8BFb

##

oversecurity@mastodon.social at 2026-11-27T08:20:04.000Z ##

New NFS2ROOT Linux flaw can let attackers gain root privileges

​A 12-year-old critical vulnerability in the Linux kernel's Network File System (NFS) server, tracked as CVE-2026-99362, allows remote attackers to...

🔗️ [Bleepingcomputer] link.is.it/DY8BFb

##

poundquerydotinfo@virctuary.com at 2026-11-26T17:44:53.000Z ##

Linux NFS implementation compromised:

nvd.nist.gov/vuln/detail/cve-2

NFS is such a mess anyway that I doubt anyone's running it in an environment where it'll matter (but watch out for piggyback attacks.)

##

CVE-2026-123890
(9.8 CRITICAL)

EPSS: 5.01%

updated 2026-11-20T21:32:46

2 posts

VMware vCenter contains an authentication bypass vulnerability in the VMware Directory Service. Affected versions: 9.1.x (fixed in 9.1.1.0200); 9.0.x (fixed in 9.0.2.0200); 8.0 (fixed in 8.0 U3m); 5.x (fixed in 5.2.5). Telco Cloud Platform 3.0, 4.x, 5.0.x, 5.1.x, 5.2 and Telco Cloud Infrastructure 3.0 are also affected (see KB463116).

8 repos

https://github.com/dinosn/CVE-2026-123890

https://github.com/foxcornlab/vmware-vcenter-scanner

https://github.com/3tternp/vcenter-cve-2026-123890-check

https://github.com/Quaerendir/cve-2026-123890-audit

https://github.com/Cyber-BansalAI/vmware-vcenter-2026

https://github.com/PARTSI14/armory-castle-vcenter-detections

https://github.com/cveForge/CVE-2026-123890

https://github.com/Sable-Research/CVE-2026-123890-Research

CVE-2026-99515(CVSS UNKNOWN)

EPSS: 0.21%

updated 2026-11-19T15:31:28

1 posts

In the Linux kernel, the following vulnerability has been resolved: iommufd: Fix event queue release use-after-free iommufd_eventq_fops_release() drops the file's users reference before reading eventq->ictx. Once that reference is dropped, IOMMU_DESTROY in another thread can remove and free the event queue, so the later load accesses freed memory. Read ictx while the users reference still pins

sigint@fosstodon.org at 2026-11-26T23:45:10.000Z ##

🐧 SIGINT // Ubuntu Watch — 2026-11-27

A use-after-free in Linux iommufd event queue teardown is a bad day if you run VFIO or PCIe passthrough in your homelab. Check your kernel build and patch before a rogue guest or misbehaving device turns your hypervisor into a smoking crater.

🔗 ubuntu.com/security/CVE-2026-9

#Ubuntu #Linux #infosec

##

CVE-2026-59159
(0 None)

EPSS: 0.18%

updated 2026-11-18T17:17:49.060000

1 posts

Linux Mint Update Manager manages software updates on Linux Mint systems. From 5.4.8 until 5.5.4.3, 5.5.9.1, 5.8.8.1, 5.9.8.1, 6.0.9.1, and 6.1.5.1, mint-refresh-cache passes a user-controlled --parent-window-id value directly to the privileged Synaptic process without validating it as an integer. A local user permitted to execute mint-refresh-cache through sudo can inject additional Synaptic comm

linuxmint_hun@mastodon.social at 2026-11-27T06:18:12.000Z ##

CW: rövid összefoglaló — Linux Mint 27 „Adrien”: éves kiadási ciklus, Wayland éretté válik, új natív Cinnamon képernyőzár, mintsysadm (disztribúciós admin eszköz), Superlight/Velocitty/Unfold, hibernálás GUI, Fcitx5 paritás, Nemo előnézeti panel. Javítva: Xreader (CVE-2026-46529), Frissítéskezelő (CVE-2026-59159). Részletek: linuxmint.hu/hir/2026/11/linux
#LinuxMint #Linux #Wayland #OpenSource #Cinnamon

##

CVE-2026-111793
(4.3 MEDIUM)

EPSS: 0.98%

updated 2026-11-10T21:32:45

2 posts

Openwave Webtop Media Transcoder does not enforce administrator-defined file type restrictions to restrict the file-types to be converted. This may allow an authenticated user to process and convert unintended document types if bypassing the Webmail experience.

1 repos

https://github.com/cveForge/CVE-2026-111793

errorbudget at 2026-11-26T19:37:17.584Z ##

Openwave Webtop Media Transcoder (CVE-2026-111793) ignores admin file-type limits. Exploited in the wild, in CISA KEV. Fixed in 1.1.22.0. How to check, fix and hunt.

errorbudget.io/fixes/cve-2026-

##

errorbudget@infosec.exchange at 2026-11-26T19:37:17.000Z ##

Openwave Webtop Media Transcoder (CVE-2026-111793) ignores admin file-type limits. Exploited in the wild, in CISA KEV. Fixed in 1.1.22.0. How to check, fix and hunt.

errorbudget.io/fixes/cve-2026-

#infosec #blueteam #email

##

CVE-2026-105481
(6.5 MEDIUM)

EPSS: 0.22%

updated 2026-11-02T16:17:23.327000

1 posts

A flaw in Node.js HTTP Agent connection reuse can cause a client to accept as valid a response that was sent before the client has sent the request. This is an incomplete fix of CVE-2026-48931. The guard that destroys idle keep-alive sockets when unexpected data arrives only runs when the event loop polls for I/O. If an unsolicited response has already reached the socket but has not been read yet

1 repos

https://github.com/CompleteTech-Security/node-cve-2026-105481-check

hacksgr@mastodon.social at 2026-11-27T02:12:03.000Z ##

Node.js 27.0.0-alpha.0.2.0, released on 26 November 2026, includes a fix for CVE-2026-105481. The issue could cause a Node.js client to accept data that arrived before a request was sent as the response to that request. The fix had already shipped in the 22.x, 24.x and 26.x release lines.

The alpha also adds controls for TLS 1.2 renegotiation, but does not disable renegotiation by default. Developers can disable it with allowRenego…

en.hacks.gr/to-node-js-kyklofo

#NodeJS #CVE2026105481 #TLS12 #HTTP2

##

CVE-2026-92027
(8.8 HIGH)

EPSS: 0.48%

updated 2026-10-06T15:13:28.183000

3 posts

Use-after-free in the DOM: Streams component. This vulnerability was fixed in Firefox 156, Firefox ESR 115.41, Firefox ESR 140.16, Firefox ESR 153.3, Thunderbird 156, Thunderbird 140.16, and Thunderbird 153.3.

allaboutsecurity@mastodon.social at 2026-11-27T07:48:51.000Z ##

Tor-Browser: Öffentlicher PoC-Exploit legt echte IP-Adresse offen

Der IT-Sicherheitsforscher Carlos Roque hat am 26. November 2026 einen Proof-of-Concept-Exploit für den Tor-Browser veröffentlicht. Die Schwachstelle CVE-2026-92027 kann in Version 15.0.22 mit Standardeinstellungen die echte IP-Adresse eines Nutzers preisgeben. Der Fehler ist seit September behoben, Nutzer älterer Versionen sollten jedoch aktualisieren.

all-about-security.de/tor-brow

#tor #torbrowser #PoC #exploit #itsicherheit

##

DailyCyberSecurity at 2026-11-27T00:53:02.767Z ##

Calif researchers published a PoC for a Tor Browser IP leak (CVE-2026-92027) enabling Tor Browser de-anonymization on version 15.0.22. Patch now.

securityonline.info/cve-2026-9

##

DailyCyberSecurity@infosec.exchange at 2026-11-27T00:53:02.000Z ##

Calif researchers published a PoC for a Tor Browser IP leak (CVE-2026-92027) enabling Tor Browser de-anonymization on version 15.0.22. Patch now.

#TorBrowser #Cybersecurity #CVE202692027 #Firefox #Privacy #PoC #InfoSec

securityonline.info/cve-2026-9

##

CVE-2026-93657
(7.5 HIGH)

EPSS: 0.40%

updated 2026-09-22T20:53:07.383000

1 posts

hickory-resolver versions before 0.26.2 fail to propagate bogus DNSSEC proof states through the Resolver::lookup() and Resolver::lookup_ip() APIs, allowing invalid records to be returned as successful results. Attackers controlling the answering zone or positioned on the network path can have forged DNS records accepted as validated, bypassing DNSSEC authentication checks.

hugovalters@mastodon.social at 2026-11-26T22:30:02.000Z ##

CVE-2026-93657: hickory-resolver before 0.26.2 fails to propagate bogus DNSSEC proof states, so forged DNS records pass as validated, bypassing DNSSEC auth checks. CVSS 7.5. Patch is still under review, so track it and update the moment 0.26.2 lands. valtersit.com/cve/CVE-2026-936

##

CVE-2026-88622
(8.8 HIGH)

EPSS: 1.40%

updated 2026-09-22T20:00:03.713000

1 posts

NUUO Network Video Recorder 2.0.0 is vulnerable to Command Injection in handle_import_privilege.php.

hugovalters@mastodon.social at 2026-11-27T02:30:18.000Z ##

CVE-2026-88622: command injection in NUUO NVR 2.0.0 (handle_import_privilege.php), CVSS 8.8, no patch confirmed. Restrict exposure and monitor until fixed. #CVE #infosec #cybersecurity valtersit.com/cve/CVE-2026-886

##

CVE-2026-54586
(0 None)

EPSS: 0.15%

updated 2026-09-21T21:17:04.840000

1 posts

mport is the MidnightBSD Package Manager. Prior to 2.7.8, the mport_fetch_index(), mport_fetch_bootstrap_index(), and mport_fetch_bundle() paths in libmport/fetch.c accepted non-HTTPS repository and package mirror URLs without a url_is_https() enforcement check. When a cleartext URL was configured or returned by mirror data, a network-positioned attacker could tamper with package index or package

hugovalters@mastodon.social at 2026-11-26T19:20:09.000Z ##

CVE-2026-54586 MidnightBSD mport accepted non-HTTPS repo URLs before 2.7.8, letting network attackers tamper with package downloads. CVSS 6.8. Update to 2.7.8 now. #CVE #infosec #cybersecurity valtersit.com/cve/CVE-2026-545

##

CVE-2026-54575
(0 None)

EPSS: 0.12%

updated 2026-09-21T21:17:04.700000

1 posts

mport is the MidnightBSD Package Manager. Prior to 2.7.8, privileged package fetch and cache-cleaning operations used race-prone path handling across libmport/fetch.c, libmport/clean.c, libmport/util.c, libmport/bundle_read_install_pkg.c, libmport/delete_primative.c, and libexec/mport.create/mport.create.c. A local attacker with write access to a participating package cache or staging path could r

hugovalters@mastodon.social at 2026-11-27T07:50:16.000Z ##

CVE-2026-54575 MidnightBSD mport race-condition path handling lets a local attacker redirect package fetch, cleanup, and install operations. CVSS 7. Patch still under review - track it and limit cache write access now. #CVE #infosec #MidnightBSD valtersit.com/cve/CVE-2026-545

##

CVE-2026-93599
(7.5 HIGH)

EPSS: 0.49%

updated 2026-09-18T15:32:20

1 posts

rustls-webpki through 0.103.12 (and 0.104.0-alpha releases before 0.104.0-alpha.7) contains a reachable panic in bit_string_flags() in src/der.rs. The input guard fails to reject a named-bit BIT STRING whose content is exactly [0x00] (zero padding bits and no data bytes), so raw_bits.len() - 1 underflows on the empty slice and the subsequent index operation panics (subtract-with-overflow in debug,

hugovalters@mastodon.social at 2026-11-27T02:30:16.000Z ##

CVE-2026-93599 rustls-webpki reachable panic via BIT STRING underflow in bit_string_flags(), CVSS 7.5. Patch to 0.103.13 or later now. #CVE #infosec #rustls valtersit.com/cve/CVE-2026-935

##

CVE-2026-93595
(6.5 MEDIUM)

EPSS: 0.38%

updated 2026-09-18T15:32:19

1 posts

ArcadeDB before 26.9.1 contains an access control bypass vulnerability in the query_database tool exposed through the AI chat endpoints. The tool executes queries without binding the authenticated principal to DatabaseContext, causing per-type and per-bucket ACL checks to silently no-op and allowing authenticated users to read data they are explicitly denied at the per-type level. Attackers can pr

hugovalters@mastodon.social at 2026-11-27T04:40:03.000Z ##

CVE-2026-93595 ArcadeDB: ACL checks silently no-op in the query_database AI tool, letting authenticated users read restricted types and buckets. CVSS 6.5. Patch under review, so verify your version. #CVE #infosec #cybersecurity valtersit.com/cve/CVE-2026-935

##

CVE-2026-54578
(0 None)

EPSS: 0.11%

updated 2026-09-18T15:17:09.320000

1 posts

mport is the MidnightBSD Package Manager. Prior to 2.7.8, mport_verify_package() in libmport/verify.c could continue after MD5File() or SHA256_File() failed and compare an expected checksum with stale data in the hash buffer rather than a newly computed digest. An attacker able to influence an installed file or the conditions that make hashing fail could receive a misleading integrity result or hi

hugovalters@mastodon.social at 2026-11-27T06:20:02.000Z ##

CVE-2026-54578 MidnightBSD mport (<2.7.8) may compare stale hash data after MD5File/SHA256_File fails, hiding integrity failures. CVSS 4.7. Patch still under review - apply 2.7.8 once released. #CVE #infosec #cybersecurity valtersit.com/cve/CVE-2026-545

##

CVE-2025-15366(CVSS UNKNOWN)

EPSS: 0.74%

updated 2026-07-09T18:31:22

1 posts

The imaplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2025-8732
(3.3 LOW)

EPSS: 0.29%

updated 2026-07-01T15:25:19.593000

1 posts

A vulnerability was found in libxml2 up to 2.14.5. It has been declared as problematic. This vulnerability affects the function xmlParseSGMLCatalog of the component xmlcatalog. The manipulation leads to uncontrolled recursion. Attacking locally is a requirement. The exploit has been disclosed to the public and may be used. The real existence of this vulnerability is still doubted at the moment. Th

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2026-3479
(0 None)

EPSS: 0.28%

updated 2026-06-17T10:43:39.067000

1 posts

DISPUTED: The project has clarified that the documentation was incorrect, and that pkgutil.get_data() has the same security model as open(). The documentation has been updated to clarify this point. There is no vulnerability in the function if following the intended security model. pkgutil.get_data() did not validate the resource argument as documented, allowing path traversals.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2025-12781
(5.3 MEDIUM)

EPSS: 0.85%

updated 2026-06-17T08:32:56.797000

1 posts

When passing data to the b64decode(), standard_b64decode(), and urlsafe_b64decode() functions in the "base64" module the characters "+/" will always be accepted, regardless of the value of "altchars" parameter, typically used to establish an "alternative base64 alphabet" such as the URL safe alphabet. This behavior matches what is recommended in earlier base64 RFCs, but newer RFCs now recommend ei

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-16742
(7.8 HIGH)

EPSS: 0.45%

updated 2026-06-17T01:44:45.240000

1 posts

An issue was discovered in mgetty before 1.2.1. In contrib/scrts.c, a stack-based buffer overflow can be triggered via a command-line parameter.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-16741
(7.8 HIGH)

EPSS: 1.32%

updated 2026-06-17T01:44:45.110000

1 posts

An issue was discovered in mgetty before 1.2.1. In fax/faxq-helper.c, the function do_activate() does not properly sanitize shell metacharacters to prevent command injection. It is possible to use the ||, &&, or > characters within a file created by the "faxq-helper activate <jobid>" command.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-10195
(7.1 HIGH)

EPSS: 0.39%

updated 2026-06-17T01:33:39.563000

1 posts

lrzsz before version 0.12.21~rc can leak information to the receiving side due to an incorrect length check in the function zsdata that causes a size_t to wrap around.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2011-4116
(3.3 LOW)

EPSS: 0.52%

updated 2026-06-16T23:34:27.380000

1 posts

_is_safe in the File::Temp module for Perl does not properly handle symlinks.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2025-66382
(2.9 LOW)

EPSS: 0.22%

updated 2026-06-02T15:31:50

1 posts

In libexpat through 2.7.3, a crafted file with an approximate size of 2 MiB can lead to dozens of seconds of processing time.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2026-0990
(5.9 MEDIUM)

EPSS: 0.84%

updated 2026-04-22T12:30:29

1 posts

A flaw was found in libxml2, an XML parsing library. This uncontrolled recursion vulnerability occurs in the xmlCatalogXMLResolveURI function when an XML catalog contains a delegate URI entry that references itself. A remote attacker could exploit this configuration-dependent issue by providing a specially crafted XML catalog, leading to infinite recursion and call stack exhaustion. This ultimatel

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2025-15367(CVSS UNKNOWN)

EPSS: 0.64%

updated 2026-01-21T00:31:49

1 posts

The poplib module, when passed a user-controlled command, can have additional commands injected using newlines. Mitigation rejects commands containing control characters.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2021-31879
(6.1 MEDIUM)

EPSS: 1.10%

updated 2024-04-04T03:06:50

1 posts

GNU Wget through 1.21.1 does not omit the Authorization header upon a redirect to a different origin, a related issue to CVE-2018-1000007.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2019-1010189
(5.5 MEDIUM)

EPSS: 0.83%

updated 2024-04-04T01:21:48

1 posts

mgetty prior to version 1.2.1 is affected by: Infinite Loop. The impact is: DoS, the program does never terminates. The component is: g3/g32pbm.c. The attack vector is: Local, the user should open a specially crafted file. The fixed version is: 1.2.1.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-16745
(7.8 HIGH)

EPSS: 0.45%

updated 2023-02-02T05:04:59

1 posts

An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow a buffer overflow if long untrusted input can reach it.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-16744
(7.8 HIGH)

EPSS: 1.03%

updated 2023-02-02T05:01:51

1 posts

An issue was discovered in mgetty before 1.2.1. In fax_notify_mail() in faxrec.c, the mail_to parameter is not sanitized. It could allow for command injection if untrusted input can reach it, because popen is used.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2018-16743
(7.8 HIGH)

EPSS: 0.45%

updated 2023-02-01T05:05:48

1 posts

An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, the command-line parameter username is passed unsanitized to strcpy(), which can cause a stack-based buffer overflow.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2019-1010190(CVSS UNKNOWN)

EPSS: 0.84%

updated 2023-01-28T05:06:12

1 posts

mgetty prior to 1.2.1 is affected by: out-of-bounds read. The impact is: DoS, the program may crash if the memory is not mapped. The component is: putwhitespan() in g3/pbm2g3.c. The attack vector is: Local, the victim must open a specially crafted file. The fixed version is: 1.2.1.

jgoerzen@changelog.complete.org at 2026-11-26T22:03:51.000Z ##

A Long-Time Debian Developer Tries Modern NetBSD on a 1998 Alpha

Nearly 30 years ago, I purchased the most expensive computer I’ve ever bought: a brand new, 600MHz Alpha. I was quite excited about that thing: it was faster than any PC on the market, ran Debian quite well, and was fun to work with. Well, mostly. Finding a good browser was a challenge back then (Netscape wasn’t yet open source and they didn’t build for Linux on Alpha). Then AGP slots became popular shortly after buying it, so as a workstation its time was limited. As a server, though, I used it for about 15 years. So I guess my goal of investing in something high-end so it wouldn’t get obsolete so fast was mostly met.

When it was time to pack it in, I took the guts out of it and reused the nice case for an x86 server. Now, as I’m setting up my vintage computer lab with the old equipment that had been in my attic, I thought it would be nice to reassemble the Alpha. I recently wrote about reassembling the hardware and restoring a tape backup from 2002 onto it, but I have another goal in mind: using it as a PPP server for my other machines to dial in to. Then I can use it to get onto Protoweb and BBSs with all the speed I tried for so many years to get past! Actually, this is a fun project.

Performance-wise, the Alpha has a speed that sits somwhere in the range of a Raspberry Pi 2 or 3. But I’ve already got plenty of these, and only one Alpha. Reviving something on a platform that’s been dead for 20 years is going to be more of a challenge, and more fun, than setting up yet another Pi.

So, out came the Alpha, the SYM53C875 SCSI card, the DEC Tulip card (with Linux drivers by Donald Becker), the Seagate Cheetah drive I added on shortly after I bought it. It all still worked, though the noise of the 10,000 RPM drive annoyed me even more now than it did then, so I used a newer IDE drive. (See my previous post for a recording of that Cheetah)

The question now was: what operating system should I use? I always ran Debian before, and had long ago re-flashed the AlphaBIOS with the SRM BIOS, opening me up to non-Linux options also. While the Linux kernel still supports my 21164a CPU, Debian has long since dropped Alpha as an official platform, and so has just about everyone else in Linux-land, though it’s still alive and kicking. Gentoo technically still has an Alpha port, but it is permanently marked “testing” and outwardly appears to be moribund; the last post to the mailing list was a single message two years ago, and there have only been 6 posts this decade.

I decided I would first try modern NetBSD, and later also opted to try modern Debian. The older Debian, which I restored in my earlier post, is still rock solid, but I wanted something with reasonable modern security since it will be exposed to the Internet. (And having something that speaks modern ssh will also be nice).

Although I’ve been a Debian developer for 30 years, I have never been far from BSDs. My first *nix system, even before Linux, was FreeBSD back in the 90s. I’ve often had a FreeBSD system since (pfsense or OPNsense most commonly), and have used NetBSD as a workstation off and on also, plus I’ve had NetBSD in various VMs for quite some time.

There’s a lot to like in NetBSD, and also some things that I found appalling.

It is important for Free Software to have more than one Free OS. I am glad we have Linux, and I’m glad we have other OSs like FreeBSD and NetBSD. A monoculture is unhealthy, and we need different projects that do things in different ways and bring forth different ideas.

So read both the praise, and the criticism, of NetBSD in that light. I am going to keep both NetBSD and Debian on this Alpha and likely use them both.

Installation

My Alpha initially shipped with 256MB RAM. At some point in the past, I upgraded it to 512MB, which was its documented maximum, but was unable to get two of those sticks to work now. So my work started with it at 256MB, and I later managed to upgrade it to 1GB, its true maximum.

I downloaded the ISO image and burned it to CD. I booted it on my Alpha’s IDE CD drive, and there was a lean, simple installation program. I partitioned the disk (SRM requires a BSD disklabel, so that worked out fine).

Then when it came time to install the system, tar crashed. Every single time, tar crashed.

It seemed to be related to the CD, though there were no errors in dmesg. I tried a network install, which worked, though the https option was unavailable and I was rather uncomfortable at the insecurity of doing the whole thing without TLS over the broad Internet. I rebooted and tried again from the CD; again no luck. I verified the burn of the CD matched the hash published on the site, and then served up the contents of the CD to the installer using a Linux machine on my LAN. That worked.

The CMD646 has long been known to have some data corruption bugs. I remember that SCSI was always preferred on this board, and mostly used SCSI back in the day, but my old drives confirm using IDE CD drives with it without incident on Linux. The Linux driver certainly contained various workarounds back in the day, and may have done things like switch from DMA to PIO mode for CD drives. It’s possible the NetBSD driver lacks those workaround, though a post to the NetBSD Alpha mailing list suggests the problem may run deeper on NetBSD. In any case, calculating sha256sums of the data on the CD from within NetBSD produced incorrect results. The IDE hard drive, though, appeared to work OK.

Initial impressions

NetBSD initially reminded me of an old Unix in all the right ways. Clean, simple, seemed to run fine in the 256MB RAM the Alpha had at the time. My initial experience with NetBSD getty was nicer than I’d experienced with Debian’s agetty, though by the end I had ran into so many getty bugs that I had to to switch to mgetty.

NetBSD vs. Debian on RAM usage

The top output is rather hard to parse; there’s nothing like the “available” column on Linux top/free, which basically shows how much RAM an application can use, considering both free RAM and caches that can be dropped. Before publishing this post, I did some comparisons to the modern Debian I installed on the Alpha. All of these tests were run at a time when 1GB of RAM was installed on the Alpha; some structures scale with physical RAM on both OSs. The test environment was NetBSD 11.1 and Debian sid (kernel 7.3).

On a fresh install with sshd running and one active incoming ssh session, I observed this memory consumption (rounded to the nearest MB):

  • Kernel RAM (static + dynamic): NetBSD 76 MB, Debian 88 MB
  • Userland: NetBSD 46MB, Debian 22MB
  • Total: NetBSD 123MB, Debian 110MB

In short, fairly comparable. The Linux kernel is heavier by a few MB, while the Debian userland is lighter. This even though my Debian install wasn’t quite the minimal one; I added the ssh server and standard tools to it. I should point out here: yes, the Debian system is running systemd. Whatever you fault systemd for, heavy RAM usage doesn’t seem to be a problem.

When looking at the installation process, Debian’s normal installer is less memory-efficient, as it loads more components into RAM, but there are ways to improve that (and alternative installation methods, which are routinely used on RAM-constrained systems such as Raspberry Pi). NetBSD’s installer becomes memory-efficient in part by ruthlessly excising every last thing it possibly can, including even TLS support.

In the end, a default minimal install is quite memory-efficient on both. Debian runs well on my 512MB Raspberry Pis (as well as anything will on a system with that kind of CPU and microSD for storage), and doesn’t dip into swap there.

Package management is hard to compare. On NetBSD, a lot of packages must be built from source, and that process is so resource-intensive that it completely blows past anything Debian does.

The most favorable picture for NetBSD is working with the packages that are available as binaries. A “pkgin update” on NetBSD consumed 21MB at most, while on Debian, “apt-get update” used 61MB. On Debian, “apt-get install dar” rocketed through in a few seconds, completing the download and installation in less time than NetBSD took to complete the download (installation was similarly much slower on NetBSD). However, “/usr/bin/time -f %M pkgin install dar” on NetBSD reported max usage of 26MB, while “/usr/bin/time apt-get install dar” on Debian reported max usage of 120MB.

This is not necessarily an entirely apples-to-apples comparison, however; Debian’s package system tracks all of the system (including what NetBSD calls the “base system”), has a larger pool to draw from, and generally has more features. pkgin on NetBSD is rather incomplete, especially on Alpha, and it therefore tracks far fewer packages. Bottom line: under extreme memory pressure, some basic package management functions are more memory-efficient, though slower, on NetBSD on Alpha, but I haven’t determined whether this is inherent or related to the size of the package database.

However, as we’ll get into, the broader question of maintaining a system leads to considerably more RAM usage on NetBSD due to a need to compile from source.

Filesystems and disk usage

Linux has a fantastic smorgasbord of choices. You have the modern take on the traditional filesystem in ext4, ZFS is available, btrfs is there too, plus all the others like XFS, etc. At least two filesystems with lightweight checkpointing (ZFS and btrfs) are available.

NetBSD supports ZFS, but with a lot of issues that you don’t see on FreeBSD or Linux with ZFS. Some of them are reminiscent of running ZFS on Linux maybe a decade ago. In any case, the Alpha doesn’t have enough RAM to run ZFS on any platform, so that’s out.

NetBSD installed onto a UFS1 partition. This is an old-school filesystem like ext2. Somewhat to my surprise, although time_t is 64-bit on NetBSD, time_t on UFS1 is 32-bit. I discovered this when some C-Kermit tests were failing on the Alpha. There is also UFS2, which is somewhat newer (and has 64-bit time_t). But fundamentally these are still old-school fsck-type filesystems (though you can apparently enable a WAPBL log, it’s not enabled by default and I don’t know why).

Disk usage-wise, a minimal NetBSD system used about 1.5GB compared to about 960MB for Debian (minimal system plus ssh server and system tools). Note that this involves installing some things like Python from pkgin for NetBSD, both because I needed it, and to make it more comparable to Debian.

However, once pkgsrc is added, the NetBSD disk usage more than doubles, to 3.5GB due to the 292,000 files and directories it unpacks. Besides the obvious inefficiency of pkgsrc, NetBSD doesn’t split out development files into their own packages like Debian does, so packages that are only needed for their .so files wind up installing a bunch of .h and .a files also. You’re more likely to need these development files on NetBSD anyhow, due to the frequent need to compile packages from source. On Debian, you can install the -dev package if you want those, or leave it off if you don’t (as many people won’t). Nonetheless, we’re still talking sizes that, while on the higher side, are manageable on 30-year-old hardware here; I initially received that Alpha with a 9GB drive.

To conclude, for resource efficiency: despite the general zeitgeist out there and the initial impressions, Debian has the lighter footprint. On a pure minimal system, this advantage isn’t all that significant. But it balloons once you start needing to install packages from source on NetBSD, which happens pretty quickly on Alpha at least.

I don’t want to imply that there’s no bloat in a modern OS. These are both installations without GUIs, and a lot of bloat has happened in the GUI space. But I do want it to be clear that both of these OSs could easily run with 512MB of RAM or less, and have, and Debian at least is comfortable in under 2GB of disk space.

Serial console

I have an ADDS serial console built in 1983, and once I set up SRM to use it as its console, NetBSD picked that up automatically. No further setup was necessary other than just setting the TERM value in /etc/ttys, and even that wouldn’t have been necessary for most terminals (the ADDS is a pre-vt100/ANSI terminal). Nice!

Debian fully supports serial terminals from SRM through its bootloader (aboot) and on into the system, but for the kernel boot process, console= must be passed on the kernel command line; it won’t auto-detect from SRM. Having said that, while the NetBSD kernel does support command-line parameters, its Alpha bootloader doesn’t support specifying them, so it’s fortunate it can inherit from SRM.

Mysterious hangs

I noticed that NetBSD would sometimes drop off the network. When I’d go turn on the serial console to see what had happened, of course there would be nothing there… and then everyhing was fine.

Pretty soon, I realized that turning off the terminal attached to the serial console port caused NetBSD to drop the network connection. Further experimentation revealed the problem was actually deeper: turning off the screen caused NetBSD to hang, and turning it back on caused it to resume.

After considerable head-scratching, I hypothesized that somehow NetBSD must be interpretying me turning off the serial terminal as a serial break. By default, this enters the kernel debugger, though I’d never know it, because the terminal is off. Nothing else happens when the kernel is in debug mode, and when I press Enter to show the login prompt, it exits the debugger.

After running sysctl ddb.fromconsole=0, I can now turn off my terminal without hanging the OS.

Serial port confusion

This AlphaPC 164LX motherboard has two integrated DB-9 serial ports, both 16550A UARTs, which makes that part of it quite similar to a regular PC. But, alas, the first challenge is figuring out exactly what the serial port is named.

That turns out to be a pretty big challenge. NetBSD continues to use a script named /dev/MAKEDEV like a traditional Unix. That means that your /dev probably has entries for a bunch of hardware you don’t have, and may lack entries for hardware you do have. dmesg lists com0 and com1, the com(4) manpage lists /dev/tty00 and /dev/dty00 as the devices to the first serial port, and there are also /dev/tty0 and /dev/dty0. Confusingly, all of those return an error when attempting to use them. Re-creating with MAKEDEV makes them a symlink, and that’s no better.

I couldn’t find any reference guide anywhere to what serial ports are named on NetBSD. I finally just tried opening all of them, and fount /dev/ttyC0 and /dev/dtyC0 are the serial ports on my system. I have no idea why.

Now, you’re noticing a dtyC0 and ttyC0. The dtyC0 is the “dialout”, and the tty is the “dial in”. Fine, but what’s the difference? This took me awhile to figure out. Apparently the tty devices block open() (unless passed O_NONBLOCK) until the remote end asserts CD (carrier detect) on the line. This is used by getty; put your modem into auto-answer mode, and rather than wait for CD to go high, getty just waits hours (or days) for open(2) to return. Different, but it works (in theory; as you’ll see, in practice, not so much.)

I later added a 2-port PCI serial card. My on-motherboard ports moved from ttyC0 and ttyC1 (and dtyC0/dtyC1) to ttyC2/ttyC3. I guess it initializes the PCI cards first. That was a surprise, but fortunately the serial console just kept working anyhow, so that was nice.

pty bugs

The pty subsystem on NetBSD has a condition in which it can silently drop data. I first noticed this while testing C-Kermit on NetBSD. A comment in /etc/sysctl.conf implies it is a long-standing issue for PPPoE as well. I can imagine it could also be a problem for things like ssh and telnet. I reported the kernel bug about a month ago, complete with reproduction code, but it’s had no activity at all. I verified it triggered on both x86_64 and Alpha, so it’s not Alpha-specific.

I found two more pty bugs, both apparently due to race conditions in the kernel. I also reported 60993 and 61010 more than 2 weeks ago, and neither has had any activity yet.

I confirmed on IRC that I was sending these reports to the right place, but they seem to not be getting any attention.

Serial issues and bugs

I ran into quite a few issues bugs with the serial subsystem on NetBSD as well.

The first was that getty doesn’t have a way to specify an init string for the modem. It turns out there’s an /etc/ttyaction file that can call a script, which if you use stty and chat carefully, can do this. This only works because ttyaction runs earlier than the manpage says (“The ttyaction file specifies site-specific commands to run when a login session begins and ends” isn’t correct; it’s run even before getty starts listening for a call on the modem.) It took a lot of experimentation to get right; whether or not to include clocal in the stty settings, for instance.

To my pleasant surprise, getty on NetBSD has PPP auto-detection, and /etc/gettytab even had examples. This is nice, since it lets me dial-in without any login script for PPP, and yet still dial in with a regular terminal program to log in to the prompt.

Unfortunately, it’s broken. More often than not, it failed to recognize PPP frames and tried to process them as a username, and sent back login prompts to the remote end. Needless to say, this didn’t work on either end. I had to disable it, and set up a user whose shell is /usr/sbin/pppd. That worked well enough.

But I ran into two more serious problems: getty not noticing CD went high, and serial port lockup after CTS was dropped and then raised.

By the time I was done with this on Alpha, I had tried three different serial ports for the modem: the built-in 16550A, a dual-port PCI expansion card with 16550As, and I even bought an old PCI USB card off eBay for the purpose of using with a FTDI USB-serial adapter. None worked reliably. I can’t be sure, but none of these issues seem to be Alpha-specific on NetBSD.

Recall that the CD line going high is the modem’s signal to the OS that there is a remote modem connected, and that getty relies on open() blocking until CD goes high. Well, it turns out that sometimes open() never returns even after CD has been raised. This means NetBSD does nothing with the incoming call. It never reads anything and never sends anything, since getty is still waiting for open() to return. For the 16550 ports, at least, NetBSD allows me to open the dty port while getty is still waiting on the tty port, and by doing so, I was able to see that NetBSD did see the CD line going high. It just never returned at open(). The USB serial port didn’t let me open the device while getty was waiting, so I couldn’t verify there, but it seems like the same symptom.

I was able to work around this problem by installing mgetty. I had used it on Linux back in the 90s when I ran a BBS, and I initially thought it wasn’t in NetBSD because pkgin didn’t find it. Turns out it was in pkgsrc, and this is what prompted me to install pkgsrc. All that for a simple C program.

The other problem, with the serial port lockup, even mgetty couldn’t work around.

With most “modern” modems, the modem maintains a constant speed on its serial interface to the computer (often 115200bps), while having a variable rate for its analog connection to the other end. This is because line conditions might cause handshaking at different speeds, and in-modem compression can cause transfer rates to exceed the raw bitrate. But you have to have a way to signal to a machine sending a lot of data to hold off for a bit, and then to continue. By far the best way to do this is RTS/CTS hardware handshaking. The modem signals to the computer to stop sending data by dropping the CTS line. When the modem’s small transmit buffer has been depleted, it raises CTS, allowing the computer to resume sending.

When doing something like sending a file with ZModem, it is common to see the SD (sending data) and CS (clear to send; linked to the CTS line) lights go on and off in tandem.

After initially getting dialin to work on NetBSD, I dialed in from a DOS box, then ran telnet -8 -E to connect to a BBS. However, whenever I tried to download a file using ZModem, the connection hung. Not just hung, but NetBSD was in a confused state and future logins were broken also.

It turns out that when the modem dropped CTS, NetBSD stopped transmitting. But when the modem raised CTS again, NetBSD never got the message. It remained blocked on transmitting. Until, that is, some other event occurred on the line, such as receiving a character from the remote end. This apparently prompted it to check CTS and it got un-stuck.

This explains why I didn’t see the problem with a PPP connection. With TCP, the download side sends ACK packets to confirm reception of TCP packets. Moreover, if no packets come in for awhile, it will timeout and send a packet. All of this combines to kickstart NetBSD’s CTS check and it seems to never have a problem there. The Kermit protocol, in its default configuration, also uses sliding windows with ACKs, so again, no problem there.

ZModem, by default, is streaming. The receiving side sends nothing while the transfer is going on, so long as it’s receiving everything correctly. There’s nothing to cause NetBSD to unblock its writes.

I also reported this bug, but like the others, it hasn’t been addressed.

The only workaround for this one was to use hardware with a different driver. The USB FTDI interface didn’t have this problem, though I get frequent ohci “scheduling overrun” messages on my console from it. USB was not period-appropriate for this Alpha, though, so I’d rather not use it, and it still has the same open() issue.

I’ve ordered a Prolific USB-serial adapter. I guess maybe that will work with both flow control and carrier detection, but at this point my NetBSD experiment has gotten rather expensive as I have to keep throwing different kinds of hardware at the software bugs.

Security

This is where things take a turn for the particularly disturbing.

NetBSD has effectively two (or maybe three, depending on how you count) package systems: the base system (which unpacks tarballs) and pkgin/pkgsrc (pkgin installs binary packages, while pkgsrc builds from source).

Updating these three sources are three different commands. (pkgsrc uses cvs update, which if any of you are old enough to remember CVS, should make you shudder.)

There is a way to audit your installed packages for security vulnerabilities installed on your system. Not so for the base system. Note that the base system includes such things as ssh, SSL/TLS, curl, zlib, etc.

The only way to find out when there are security bugs for the base system is to subscribe to both security-announce and netbsd-announce. security-announce seems to get a post once every 2 years, but when it does, it is important, though it doesn’t announce bugs fixed in the base system.

NetBSD 11.1 became available recently, and it does indeed fix a number of security vulnerabilities. Unfortunately, you can’t just install a targeted set of packages. You have to reinstall it all, which takes a long time. So when there’s a security bug in brotli, or ssh, or whatever, you can’t just install a targeted patch. You wait for a new OS release and upgrade the whole thing (or, I guess, you could manually patch and rebuild, but this is impractically slow on Alpha). This looks untenable given the rate of security findings in 2026.

As an example: NetBSD 11.1 came out on November 2. It was listed as fixing Brotli CVE-2026-111497 (published Oct. 22). Debian patched Brotli on Oct. 23, 10 days before NetBSD released 11.1. Debian’s patch would have been automatically installed by people running unattended-upgrades, and no reboot would be required (needsrestart would restart necessary daemons).

There is nothing like unattended-upgrades for any of the systems on NetBSD.

So, let’s say you want to get patches for security issues in the base system. To do that, you have to upgrade the base system.

Upgrading the base system

The standard manual tells you to boot the installation system again to install a NetBSD upgrade. Yes, that’s right. The standard instructions amount to burning a new ISO, booting from it, and installing the upgrade from there. Ouch. The NetBSD 11.1 announcement also suggests this method. (This is not an alpha-specific thing in the installation instructions; it’s also there for amd64).

A different document also mentions a tool called sysupgrade to do this from a running system. sysupgrade isn’t part of the base system; it’s a package. But “pkgin install sysupgrade” doesn’t find it, so I have to build it from source. Another reason I had to install pkgsrc.

Remember, to build even one package from source, you have to download a tarball containing the NetBSD packaging information for every package. That’s a tarball with 290,334 entries, which took 22 minutes to extract on the Alpha.

Then you “make” to build the packages you want. But oh, regular users don’t have permission, so yes, you’re running all the build tools as root. OK, you grit your teeth and run “make” and “make install” as root, and now you have sysupgrade!

Sidebar: NetBSD installs the pkgsrc files owned by uid 600, gid 125, neither of which exist on the system. I’m not sure what the point of that is, and it’s not documented anywhere.

So you can run “sysupgrade auto”, and it will download the base system tarballs and extract them. It will ask you about modifications to things in /etc. Most of them you have to tell it to keep your version; no, do not blow away changes to /etc/group, thankyouverymuch. I don’t know why it’s not smart enough to figure that out itself, since NetBSD 11.1 didn’t contain changes to the file anyway.

It also asks about local changes to a bunch of files I never touched, such /etc/namedb/bind.keys and /etc/motd.

Now at the very end of it, you see “sysupgrade: E: Some postinstall(8) checks have failed”. Oh joy. Hope you ran it in a terminal with scrollback.

I found “postinstall checks failed: opensslcertsrehash” so I ran the script it told me to run, “sh /usr/sbin/postinstall -s /var/cache/sysupgrade/etc.tgz -d / fix opensslcertsrehash” and it seemed to be happy. Why it didn’t do that itself, I don’t know. I hope I didn’t miss any other failures.

Upgrading packages

You can run “pkg_admin fetch-pkg-vulnerabilities” and then “pkg_admin audit”.

On my Alpha, it shows quite a bit. Here are some excerpts:


Package expat-2.8.2 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-66382
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15366
Package python313-3.13.14 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-15367
Package python313-3.13.14 has a input-validation vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-12781
Package python313-3.13.14 has a path-traversal vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-3479
Package lrzsz-0.12.20nb1 has a information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-10195
Package perl-5.42.2nb3 has a symlink-attack vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2011-4116
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2025-8732
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0989
Package libxml2-2.15.1 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2026-0990
Package wget-1.25.0nb5 has a sensitive-information-disclosure vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2021-31879
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16741
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16742
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16743
Package mgetty-1.1.37nb21 has a command-injection vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16744
Package mgetty-1.1.37nb21 has a stack-overflow vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2018-16745
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010189
Package mgetty-1.1.37nb21 has a denial-of-service vulnerability, see https://nvd.nist.gov/vuln/detail/CVE-2019-1010190

But, after a fresh “pkgin update”, “pkgin upgrade” shows nothing to do.

I checked a few of these. lzo and wget have nothing newer in NetBSD. libxml2 has a newer version available in pkgsrc, but it’s unclear if it fixes these issues.

Python is annoying. You can’t just install python. You have to install a specific version. So there is now a python314 package; maybe it’s better? But python313 won’t auto-upgrade to it.

I installed the python314 package, and now I have the same vulnerabilities in both. Sigh. They haven’t upgraded either the 3.13 or the 3.14 packages to the fixed versions.

But look at mgetty. These bugs came out 7 or 8 years ago. The Linux distros that still shipped mgetty, including Debian, patched years ago when the vulnerabilities came out. A new upstream version has the fix. It would be easy for NetBSD to fix this. Clearly NetBSD is aware of the issues, since NetBSD’s own tools highlight it. In fact, if you are watching very carefully as you build it from pkgsrc, it will even print a warning about it — but it doesn’t pause for you to acknowledge, and had I installed it on anything with more modern speed, it’d have scrolled by before I’d ever noticed.

You could make the case that NetBSD is an open source project, and it takes volunteers to fix things. You’d be right. But, back in July, I sent NetBSD a report about security bugs I’d found in C-Kermit, along with a patch to update their packages to a modern and fixed version (which, for the first time, runs NetBSD in CI), etc. I had understood the lack of progress on that one to possibly be impacted by extenuating circumstances; for instance, it’s a new major version from a new maintainer with a new Kermit project. A degree of caution is reasonable.

Maybe I’m the first person to install mgetty for NetBSD for years. So perhaps you could say, “well, if I notice a bug, I could submit a fix.” But that makes the question be for me: do I have time in my life to spend so much time fighting bugs and security issues with NetBSD, or should I try a different OS or platform where the community is already taking care of such things?

It certainly wasn’t the only reason, but it was this mgetty issue that pushed me over the edge to trying a modern Linux on this Alpha. Security needs to have less friction; when patching is easy, people will patch. NetBSD doesn’t make it easy in any respect, and keeping something in the system for 8 years despite knowing it has security issues looks really questionable to me.

Conclusions and next steps

I’m going to keep NetBSD on this system. Partly because it is fun to play with something different, and NetBSD on an Alpha is most definitely different than what I’m used to. Partly because running an ancient version of Debian would be a security problem (yes I am aware that running DOS and OS/2 is also a security problem, but I’m managing that separately). And partly because, despite the complaints above, I really do enjoy NetBSD and have a lot of respect for what people are doing there. Having said that, this NetBSD box is pretty inefficient in terms of both time and money. Buggy serial system leads to needing to buy different hardware, and setting it up has taken a lot of time due to all these bugs, while maintaining it promises to take a lot of time also. Some of this is fun, but running pkg_audit, manually fixing things (or more likely, ignoring them), manually checking the base system for updates… that’s going to wear thin, and I’d rather play with my daughter than do that. Realistically, I don’t think I’ll keep up with it. At which point, well, maybe the ancient version of Debian doesn’t look so bad.

But I’ve also tried modern Debian, and I’ll report on that in a separate post. Debian on Alpha isn’t without its quirks these days, either.

I don’t know how long Alpha will be a viable platform. The lack of Rust and Go support for it is already a challenge, though there are efforts being made on both. As Debian and other parts of the Linux ecosystem rightly embrace Rust, that could further erode Alpha’s viability with Linux unless the Rust work reaches viability soon. Already some of my favorite programs (NNCP, Yggdrasil, and my own filespooler) would be a great fit for NetBSD, but are unusable on Alpha because of lack of Go and Rust support there. Perhaps gccrs will help in the future though. Still, I’ll enjoy the Alpha running an actual workload while I can!

#alpha #vintageComputing ##

CVE-2026-54582
(0 None)

EPSS: 0.55%

1 posts

N/A

hugovalters@mastodon.social at 2026-11-27T03:30:39.000Z ##

CVE-2026-54582 MidnightBSD mport before 2.7.8: missing preflight check lets crafted packages overwrite existing files, CVSS 7.1. Fix under review - watch for 2.7.8 and update immediately. #CVE #infosec #MidnightBSD valtersit.com/cve/CVE-2026-545

##

DailyCyberSecurity at 2026-11-27T02:47:46.237Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

cvenewsdaily.com/cve-2026-1353

##

DailyCyberSecurity@infosec.exchange at 2026-11-27T02:47:46.000Z ##

LXD vulnerabilities CVE-2026-135384 (OIDC, CVSS 9.2) and CVE-2026-127163 (pylxd TLS) are fixed. Update to LXD 6.10.2, 5.21.10, 5.0.12 and pylxd 2.4.3.

#LXD #pylxd #Canonical #OIDC #CVE

cvenewsdaily.com/cve-2026-1353

##

CVE-2026-124286
(0 None)

EPSS: 0.29%

2 posts

N/A

CVE-2026-135279
(0 None)

EPSS: 0.00%

2 posts

N/A

thehackerwire@mastodon.social at 2026-11-26T23:16:26.000Z ##

🔴 CVE-2026-135279 - Critical (9.1)

@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions before 4.0.14, a request with an empty dynamic route parameter reaches a Fastify route handler wh...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

thehackerwire@mastodon.social at 2026-11-26T23:16:26.000Z ##

🔴 CVE-2026-135279 - Critical (9.1)

@fastify/express is the plugin that lets an application run Express middleware and Express applications inside the Fastify web framework. In versions before 4.0.14, a request with an empty dynamic route parameter reaches a Fastify route handler wh...

🔗 thehackerwire.com/vulnerabilit

#CVE #vulnerability #infosec #cybersecurity #security #Tenda #patchstack

##

CVE-2026-54583
(0 None)

EPSS: 0.54%

1 posts

N/A

hugovalters@mastodon.social at 2026-11-26T20:50:01.000Z ##

CVE-2026-54583 MidnightBSD mport before 2.7.8: missing filename validation lets malicious package index data write files outside the cache (path traversal). CVSS 9.8. No fix released yet, monitor and update when 2.7.8 lands. #CVE #infosec #cybersecurity valtersit.com/cve/CVE-2026-545

##

CVE-2026-46529
(0 None)

EPSS: 0.41%

1 posts

N/A

1 repos

https://github.com/N1et/CVE-2026-46529

linuxmint_hun@mastodon.social at 2026-11-27T06:18:12.000Z ##

CW: rövid összefoglaló — Linux Mint 27 „Adrien”: éves kiadási ciklus, Wayland éretté válik, új natív Cinnamon képernyőzár, mintsysadm (disztribúciós admin eszköz), Superlight/Velocitty/Unfold, hibernálás GUI, Fcitx5 paritás, Nemo előnézeti panel. Javítva: Xreader (CVE-2026-46529), Frissítéskezelő (CVE-2026-59159). Részletek: linuxmint.hu/hir/2026/11/linux
#LinuxMint #Linux #Wayland #OpenSource #Cinnamon

##

Visit counter For Websites