## Updated at UTC 2026-11-26T23:03:51.482423

Access data as JSON

CVE CVSS EPSS Posts Repos Nuclei Updated Description
CVE-2026-137657 7.5 0.00% 2 0 2026-11-26T21:31:19 InternLM LMDeploy 0.9.0 through 0.18.0 contains an unbounded resource allocation
CVE-2026-134714 7.5 0.00% 2 0 2026-11-26T21:31:19 Missing Authorization vulnerability in Webful Creations RepairBuddy computer-rep
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-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-26T21:31:17 lastversion before 3.6.20 contains a path traversal vulnerability in extract_tar
CVE-2026-134488 7.5 0.00% 2 0 2026-11-26T21:31:17 Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking C
CVE-2026-137518 7.8 0.00% 2 0 2026-11-26T20:17:23.957000 pyfda through 0.9.5 contains an insecure deserialization vulnerability in load_f
CVE-2026-137506 7.8 0.00% 2 0 2026-11-26T20:17:23.643000 ezdxf through 1.4.5 contains a code injection vulnerability in the dxf2code add-
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-133951 9.1 0.00% 1 0 2026-11-26T15:31:44 The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation
CVE-2026-135641 9.1 0.00% 1 0 2026-11-26T15:31:44 The WP Job Portal – AI-Powered Recruitment System for Company or Job Board websi
CVE-2026-93087 8.2 0.00% 1 0 2026-11-26T15:17:42.827000 A maliciously modified field in the locally stored JSON description for an updat
CVE-2026-136488 7.5 0.00% 1 0 2026-11-26T15:17:27.283000 The GeoDirectory – WP Business Directory Plugin and Classified Listings Director
CVE-2026-136240 9.1 0.00% 1 0 2026-11-26T15:17:26.980000 The PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for Word
CVE-2026-123903 9.8 0.61% 1 2 2026-11-26T12:30:37 VMware vCenter contains an authentication bypass vulnerability in the VMware Dir
CVE-2026-136716 None 1.01% 3 1 2026-11-26T03:30:27 Improper Check for Unusual or Exceptional Conditions vulnerability in Drupal Dru
CVE-2026-132165 0 11.05% 1 6 2026-11-26T01:17:10.290000 Missing Authentication for Critical Function vulnerability in Drupal Drupal core
CVE-2026-77230 8.1 1.63% 1 1 2026-11-25T21:30:47 Camunda 8.8.0 before 8.8.47, 8.9.0 before 8.9.29, 8.10.0 before 8.10.10, and 8.1
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-111497 9.8 32.98% 1 100 2026-11-24T15:17:09.400000 A buffer overflow vulnerability in the Brotli decoder (c/dec/decode.c) in Google
CVE-2026-0990 5.9 0.84% 1 0 2026-11-24T10:17:36.157000 A flaw was found in libxml2, an XML parsing library. This uncontrolled recursion
CVE-2026-99362 9.8 0.76% 3 1 2026-11-23T09:30:41 In the Linux kernel, the following vulnerability has been resolved: nfsd: prefl
CVE-2026-129713 None 1.90% 1 1 2026-11-20T12:31:24 A stack-based buffer overflow in an unauthenticated CGI handler of the Danfoss A
CVE-2026-114516 9.8 4.14% 1 4 2026-11-20T00:23:46 ### Summary An unauthenticated path‑traversal / arbitrary file read vulnerabili
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-41709 2.7 0.47% 2 0 2026-10-28T21:31:54 VMware ESX contains an insufficient logging vulnerability. A malicious administr
CVE-2025-66382 2.9 0.22% 1 0 2026-10-19T13:10:00.110000 In libexpat through 2.7.3, a crafted file with an approximate size of 2 MiB can
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-90051 7.8 0.17% 1 0 2026-09-18T18:31:26 In the Linux kernel, the following vulnerability has been resolved: tcp: reject
CVE-2026-93659 8.7 0.52% 1 1 2026-09-18T15:32:33 Concrete CMS Community Store before 2.7.8 renders customer-supplied order fields
CVE-2025-15366 0 0.74% 1 0 2026-08-06T01:16:27.563000 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-15367 0 0.64% 1 0 2026-06-17T08:37:38.147000 The poplib module, when passed a user-controlled command, can have additional co
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-2019-1010190 5.5 0.84% 1 0 2026-06-17T02:09:51.083000 mgetty prior to 1.2.1 is affected by: out-of-bounds read. The impact is: DoS, th
CVE-2019-1010189 5.5 0.83% 1 0 2026-06-17T02:09:50.960000 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 2026-06-17T01:44:45.603000 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 2026-06-17T01:44:45.360000 An issue was discovered in mgetty before 1.2.1. In contrib/next-login/login.c, t
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-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-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-16742 7.8 0.45% 1 0 2023-02-01T05:05:47 An issue was discovered in mgetty before 1.2.1. In contrib/scrts.c, a stack-base
CVE-2026-54583 0 0.54% 1 0 N/A
CVE-2026-54586 0 0.15% 1 0 N/A

CVE-2026-137657
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:19

2 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

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

##

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-134714
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:19

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-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-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-26T21:31:17

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-134488
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T21:31:17

2 posts

Missing Authorization vulnerability in Mamunur Rashid Radius Booking — Booking Calendar for Appointments & Services radius-booking allows Exploiting Incorrectly Configured Access Control Security Levels.This issue affects Radius Booking — Booking Calendar for Appointments & 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 & 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 & 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-137518
(7.8 HIGH)

EPSS: 0.00%

updated 2026-11-26T20:17:23.957000

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-26T20:17:23.643000

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-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-133951
(9.1 CRITICAL)

EPSS: 0.00%

updated 2026-11-26T15:31:44

1 posts

The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 4.8.9 This is due to the site-wide signing secret `swpm_private_key_one` being generated at install time with PHP's non-cryptographic `uniqid('', true)` function in `SwpmInstallation::installer()`, whose timestamp-derived keyspace (~10^15 candidates / ~50 bits) can be constrained via

thehackerwire@mastodon.social at 2026-11-26T15:53:08.000Z ##

🔴 CVE-2026-133951 - Critical (9.1)

The Simple Membership plugin for WordPress is vulnerable to Privilege Escalation in versions up to, and including, 4.8.9 This is due to the site-wide signing secret `swpm_private_key_one` being generated at install time with PHP's non-cryptographi...

🔗 thehackerwire.com/vulnerabilit

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

##

CVE-2026-135641
(9.1 CRITICAL)

EPSS: 0.00%

updated 2026-11-26T15:31:44

1 posts

The WP Job Portal – AI-Powered Recruitment System for Company or Job Board website plugin for WordPress is vulnerable to Authentication Bypass leading to Account Takeover in all versions up to, and including, 2.7.2 This is due to a flaw in `WPJOBPORTALuser::__construct()` where the non-empty guard on the `wpjobportal-socialid` cookie is evaluated against the raw cookie value before `sanitize_key()

thehackerwire@mastodon.social at 2026-11-26T15:52:05.000Z ##

🔴 CVE-2026-135641 - Critical (9.1)

The WP Job Portal – AI-Powered Recruitment System for Company or Job Board website plugin for WordPress is vulnerable to Authentication Bypass leading to Account Takeover in all versions up to, and including, 2.7.2 This is due to a flaw in `WPJO...

🔗 thehackerwire.com/vulnerabilit

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

##

CVE-2026-93087
(8.2 HIGH)

EPSS: 0.00%

updated 2026-11-26T15:17:42.827000

1 posts

A maliciously modified field in the locally stored JSON description for an update made available by Autodesk, when processed by Autodesk Access, can cause attacker-controlled HTML content to be executed in another user's session. A local, authenticated malicious actor can leverage this vulnerability to execute arbitrary code in the context of another user if that user interacts with an injected li

thehackerwire@mastodon.social at 2026-11-26T15:51:45.000Z ##

🟠 CVE-2026-93087 - High (8.2)

A maliciously modified field in the locally stored JSON description for an update made available by Autodesk, when processed by Autodesk Access, can cause attacker-controlled HTML content to be executed in another user's session. A local, authenti...

🔗 thehackerwire.com/vulnerabilit

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

##

CVE-2026-136488
(7.5 HIGH)

EPSS: 0.00%

updated 2026-11-26T15:17:27.283000

1 posts

The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to generic SQL Injection via the 'stype' parameter in all versions up to, and including, 2.8.208 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append a

thehackerwire@mastodon.social at 2026-11-26T15:51:55.000Z ##

🟠 CVE-2026-136488 - High (7.5)

The GeoDirectory – WP Business Directory Plugin and Classified Listings Directory plugin for WordPress is vulnerable to generic SQL Injection via the 'stype' parameter in all versions up to, and including, 2.8.208 due to insufficient escaping on...

🔗 thehackerwire.com/vulnerabilit

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

##

CVE-2026-136240
(9.1 CRITICAL)

EPSS: 0.00%

updated 2026-11-26T15:17:26.980000

1 posts

The PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 7.2.0 via deserialization of untrusted input . This makes it possible for unauthenticated attackers to inject a PHP Object. No known POP chain is present in the vulnerable software, which means this vulnerability has no impact unless anot

thehackerwire@mastodon.social at 2026-11-26T15:52:59.000Z ##

🔴 CVE-2026-136240 - Critical (9.1)

The PDF Invoice for WooCommerce + Drag and Drop Template Builder plugin for WordPress is vulnerable to PHP Object Injection in all versions up to, and including, 7.2.0 via deserialization of untrusted input . This makes it possible for unauthentic...

🔗 thehackerwire.com/vulnerabilit

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

##

CVE-2026-123903
(9.8 CRITICAL)

EPSS: 0.61%

updated 2026-11-26T12:30:37

1 posts

VMware vCenter contains an authentication bypass vulnerability in the VMware Directory Service. Broadcom has evaluated the severity of this issue to be in the Critical severity range with a maximum CVSSv3 base score of 9.8. Affected versions: VMware vCenter Server 9.1.x.x: fixed in 9.1.2 VMware vCenter Server 9.0.x.x: fixed in 9.0.2.0300 VMware vCenter Server 8.0: fixed in 8.0 U3m VMware Cloud Fou

2 repos

https://github.com/Hann1bl3L3ct3r/CVE-2026-123903

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

Matchbook3469@mastodon.social at 2026-11-26T17:16:24.000Z ##

🔴 New security advisory:

CVE-2026-123903 affects multiple systems.

• Impact: Remote code execution or complete system compromise possible
• Risk: Attackers can gain full control of affected systems
• Mitigation: Patch immediately or isolate affected systems

Full breakdown:
yazoul.net/advisory/cve/cve-20

by Yazoul AI

#CVE #PatchNow #InfoSecCommunity

##

CVE-2026-136716(CVSS UNKNOWN)

EPSS: 1.01%

updated 2026-11-26T03:30:27

3 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.

1 repos

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

##

linuxmint_hun@mastodon.social at 2026-11-26T15:30:22.000Z ##

CW: biztonsági hír

CVE-2026-136716 a Drupal core-ban: rendkívül kritikus, már aktívan kihasznált sebezhetőség. Összefügg a CVE-2026-132165 (Fail2Install) problémáival — bizonyos nyitott/hibás telepítési állapotok továbbra is webhelyátvételt tesznek lehetővé. Javítva: 11.4.14, 11.3.23, 10.6.23. Életcikluson kívüli: 11.0–11.2, 10.5 és régebbiek. Frissíts, majd futtasd az update.php-t. linuxmint.hu/hir/2026/11/a-dru #Drupal #CVE #websecurity #OpenSource

##

CVE-2026-132165
(0 None)

EPSS: 11.05%

updated 2026-11-26T01:17:10.290000

1 posts

Missing Authentication for Critical Function vulnerability in Drupal Drupal core allows Exploiting Incorrectly Configured Access Control Security Levels. This issue affects Drupal core versions: from 0.0.0 to 10.6.22, from 11.0.0 to 11.3.22, from 11.4.0 to 11.4.13.

6 repos

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

https://github.com/lxdwnpiper/CVE-2026-132165-Drupal

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

https://github.com/abraxas/drupal-install-takeover

https://github.com/malloryai/cve-2026-132165-drupal-installer-check

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

linuxmint_hun@mastodon.social at 2026-11-26T15:30:22.000Z ##

CW: biztonsági hír

CVE-2026-136716 a Drupal core-ban: rendkívül kritikus, már aktívan kihasznált sebezhetőség. Összefügg a CVE-2026-132165 (Fail2Install) problémáival — bizonyos nyitott/hibás telepítési állapotok továbbra is webhelyátvételt tesznek lehetővé. Javítva: 11.4.14, 11.3.23, 10.6.23. Életcikluson kívüli: 11.0–11.2, 10.5 és régebbiek. Frissíts, majd futtasd az update.php-t. linuxmint.hu/hir/2026/11/a-dru #Drupal #CVE #websecurity #OpenSource

##

CVE-2026-77230
(8.1 HIGH)

EPSS: 1.63%

updated 2026-11-25T21:30:47

1 posts

Camunda 8.8.0 before 8.8.47, 8.9.0 before 8.9.29, 8.10.0 before 8.10.10, and 8.11.0-alpha1 contain an insecure deserialization vulnerability in the persistent web session feature, which stores session attributes as Java-serialized data in secondary storage and deserializes them via an ObjectInputStream without an ObjectInputFilter. Attackers with write access to the web session index, such as an u

1 repos

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

Matchbook3469@mastodon.social at 2026-11-26T17:35:32.000Z ##

🚨 New security advisory:

CVE-2026-77230 affects multiple systems.

• Impact: Remote code execution or complete system compromise possible
• Risk: Attackers can gain full control of affected systems
• Mitigation: Patch immediately or isolate affected systems

Full breakdown:
yazoul.net/advisory/cve/cve-20

by Yazoul AI

#Cybersecurity #VulnerabilityManagement #CyberSec

##

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 bug 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 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-111497
(9.8 CRITICAL)

EPSS: 32.98%

updated 2026-11-24T15:17:09.400000

1 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/CompleteTech-Security/node2shell-check

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

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

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

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

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

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

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

https://github.com/akaihigurashi/brotli2scan

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

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

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

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

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

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

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

https://github.com/Blackman99/lotstamp

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

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

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

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

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

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

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

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

https://github.com/FranklinF25/http2shell

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

https://github.com/esskslifetech/PROTECTION2Shell

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

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

https://github.com/lesterlam/node2shell

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

https://github.com/dansaurabh/brotli2shell_Hunter

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

https://github.com/ikow/brotli2crash

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

https://github.com/datmt/vulcheck

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

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

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

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

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

https://github.com/Sumit0x00/node2shell

https://github.com/timosar/woff2shell

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

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

https://github.com/RedSideSecurity/node2shell

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

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

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

https://github.com/sakai-sktech/brotli-check

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

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

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

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

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

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

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

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

https://github.com/KarpelesLab/broccoli2shell

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

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

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 bug 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 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-11-24T10:17:36.157000

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 bug 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 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-99362
(9.8 CRITICAL)

EPSS: 0.76%

updated 2026-11-23T09:30:41

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

1 repos

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

allaboutsecurity@mastodon.social at 2026-11-26T16:06:43.000Z ##

NFS-Sicherheitslücke im Linux-Kernel ermöglicht Root-Zugriff ohne Anmeldung

Im NFS-Server des Linux-Kernels steckt seit rund zwölf Jahren eine Schwachstelle, über die Angreifer aus der Ferne und ohne Authentifizierung Root-Rechte erlangen können. Die Lücke mit der Kennung CVE-2026-99362 ist inzwischen geschlossen. Administratoren sollten den Kernel aktualisieren und das System neu starten.

all-about-security.de/nfs-sich

#linux #nfs #cve

##

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.)

##

FLOZz@mastodon.social at 2026-11-26T15:02:16.000Z ##

Allé, une petite vulnérabilité dans NFS (« NFS2ROOT »), je me disais bien que c'était trop calme cette fin de semaine... 🙃️

➡️ opensec.in/blog/nfs2root-cve-2

→ Déjà fixé dans Debian 13 (Trixie): security-tracker.debian.org/tr

→ Pas encore de fix chez Ubuntu: ubuntu.com/security/CVE-2026-9

#cve #security #linux #debian #ubuntu

##

CVE-2026-129713(CVSS UNKNOWN)

EPSS: 1.90%

updated 2026-11-20T12:31:24

1 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

CVE-2026-114516
(9.8 CRITICAL)

EPSS: 4.14%

updated 2026-11-20T00:23:46

1 posts

### Summary An unauthenticated path‑traversal / arbitrary file read vulnerability in Etherpad's /static/* handler allows any remote, unauthenticated user to read any file on the server's filesystem (e.g. GET /static/plugins/ep_etherpad-lite/static/..%5C..%5C..%5C..%5C..%5C..%5C..%5Cetc/passwd returns /etc/passwd) available to the user running the etherpad software. Because the endpoint is mounted

4 repos

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

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

https://github.com/ynsmroztas/EtherPadSniper

https://github.com/evenomn/CVE-2026-114516

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-41709
(2.7 LOW)

EPSS: 0.47%

updated 2026-10-28T21:31:54

2 posts

VMware ESX contains an insufficient logging vulnerability. A malicious administrator could exploit this issue to perform certain operations without them being logged.

errorbudget at 2026-11-26T16:12:10.643Z ##

VMware ESX CVE-2026-41709 lets a rogue admin act without leaving log records. Used as a zero-day by an espionage group, now in CISA KEV. Fixed builds, checks and hunting tips.

errorbudget.io/fixes/cve-2026-

##

errorbudget@infosec.exchange at 2026-11-26T16:12:10.000Z ##

VMware ESX CVE-2026-41709 lets a rogue admin act without leaving log records. Used as a zero-day by an espionage group, now in CISA KEV. Fixed builds, checks and hunting tips.

errorbudget.io/fixes/cve-2026-

#infosec #blueteam #vmware

##

CVE-2025-66382
(2.9 LOW)

EPSS: 0.22%

updated 2026-10-19T13:10:00.110000

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 bug 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 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-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-90051
(7.8 HIGH)

EPSS: 0.17%

updated 2026-09-18T18:31:26

1 posts

In the Linux kernel, the following vulnerability has been resolved: tcp: reject non zerocopy devmem tx Devmem tcp tx doesn't work without zero-copy, however it's not currently enforced if NETIF_F_SG isn't present. In this case, tcp_sendmsg_locked() will try the copy path and try to copy data from an iovec which consists of offsets into the dma-buf and would normally fail. Moreover, d9c56501c72fd

hugovalters@mastodon.social at 2026-11-26T17:40:23.000Z ##

CVE-2026-90051 Linux kernel tcp devmem tx flaw, CVSS 7.8. Patch available, update now. #CVE #infosec #LinuxKernel valtersit.com/cve/CVE-2026-900

##

CVE-2026-93659
(8.7 HIGH)

EPSS: 0.52%

updated 2026-09-18T15:32:33

1 posts

Concrete CMS Community Store before 2.7.8 renders customer-supplied order fields without HTML escaping in checkout and admin views. Unauthenticated attackers can store script payloads in billing name, email, or phone fields that execute in authenticated manager sessions to create rogue accounts or exfiltrate data.

1 repos

https://github.com/prince325/CVE-2026-93659-writeup

hugovalters@mastodon.social at 2026-11-26T16:10:02.000Z ##

CVE-2026-93659: stored XSS in Concrete CMS Community Store before 2.7.8 lets unauthenticated attackers inject scripts via checkout fields, executing in manager sessions. CVSS 8.1. Patch under review - restrict access till it ships. valtersit.com/cve/CVE-2026-936

##

CVE-2025-15366
(0 None)

EPSS: 0.74%

updated 2026-08-06T01:16:27.563000

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 bug 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 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 bug 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 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 bug 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 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
(0 None)

EPSS: 0.64%

updated 2026-06-17T08:37:38.147000

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 bug 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 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 bug 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 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
(5.5 MEDIUM)

EPSS: 0.84%

updated 2026-06-17T02:09:51.083000

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 bug 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 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 2026-06-17T02:09:50.960000

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 bug 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 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 2026-06-17T01:44:45.603000

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 bug 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 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 2026-06-17T01:44:45.360000

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 bug 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 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 bug 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 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 bug 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 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 bug 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 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 bug 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 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 bug 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 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 2023-02-01T05:05:47

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 bug 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 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-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-54586
(0 None)

EPSS: 0.15%

1 posts

N/A

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

##

Visit counter For Websites