1 secnet (0.6.2) unstable; urgency=medium
3 Bugfixes to code and build system:
4 * site: promote creation of st->scratch, allowing new pubkey scheme
5 to work even when secnet is restarting.
6 * comm-common.h: Remove unused `notify' variable. [Colin Watson]
7 * Dir.sd.mk: Prevent builtin make rule overwriting conffile.c.
10 * configure: Correct bug reporting address. Report from Colin Watson.
11 * example.conf improvements:
12 - Comment out some tuning overrides
13 - Improve syntax by deleting one of the two map examples
14 - Add a commented-out mobile site setting
16 * OLD-NEWS, OLD-BUGS: Rename from NEWS and BUGS, and don't ship OLD-BUGS.
18 Debian packaging changes:
19 * debian/rules: Use dh sequencer. Resulting changes:
20 - We now provide debug symbols in the new Debian way.
21 - The way the prerm stops secnet accords with modern practice.
22 * init script: source /lib/lsb/init-functions.
23 * init script: make "restart" work if secnet is not running.
25 * debhelper compat: bump to 12 (stretch-backports).
26 * debian/rules: Use dh_prep instead of deprecated dh_clean -k.
27 * Adjust Priority (as per modern policy and lintian).
28 * Add some lintian overrides.
29 * Add missing Pre-Depends on init-system-helpers.
31 Credits and legal documentation improvements:
32 * Add missing credits for base91 and python argparse extension.
33 ensure some packaging credits exist in all the places they should be.
34 * Add copyright/credits notices to many files which were missing them.
35 * Move and centralise legal information into its own file, LICENCE.
38 * comprehensive-test: Actually allow OLD_SECNET_DIR set to ''
39 * test-example/common.conf: Fix a reference to the sites file.
40 * test-example/null-fake-userv: New test utility script.
42 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 30 Dec 2021 15:10:12 +0000
44 secnet (0.6.1) unstable; urgency=medium
47 * Fix completely broken startup logging. Config errors would not
48 be repoorted other than via the exit status! (Broken in 0.6.0.)
49 * Suppress various uninteresting messages during startup, to
50 avoid noise during successful startup.
51 * Move "starting" message earlier.
53 make-secnet-sites bugfixes:
54 * Fix error handling if caller is in wrong group.
55 * Fix regressions in handling of delegated sites file fragments
56 (especially wrt the optional group parameter to `location').
57 Broken since security fixes in 0.5.0.
59 Fixes to example config file:
60 * Use new name-prefixed format for map(site...) runes. Old runes
61 were desupported by make-secnet-sites security fix (in 0.5.0).
62 * Fix "transform" syntax (broken since 0.3.0).
64 Other bugfixes and improvements:
65 * rsa: Do not crash if private key file is not accessible when
66 running --just-check-config. (Broken since 0.6.0.)
67 * rsa: Print errno value if we fail to open key file.
68 * config parsing: When closure is of wrong type, give details.
69 * Use CLOCK_MONOTONIC for all our timing needs (but only when
70 built against an as-yet-unpublished adns feature).
73 * Tests for some of the changes.
74 * Minor internal refactorings and improvements.
77 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 24 May 2020 22:14:26 +0100
79 secnet (0.6.0) unstable; urgency=medium
82 * mobile sites: Do not ever expire peer addresses. In practice
83 this fixes transitions between IPv6-only and IPv4-only networks.
84 * make-secnet-sites: Tainted: Fix a lot of bad return values
85 (which would result in assertions rather than nice error messages).
86 * Fix hash algo confusion in mixed sha1/md5 configurations (see below).
89 * site: Always advertise all capabilities, even in MSG1. This is
90 incompatible with secnets earlier than 0.3.0 (September 2013), which
91 are all quite badly broken and should have been upgraded long ago.
92 * Drop support for using the same loaded rsa key with multiple different
93 hash algorithms (which was broken in 0.5.0). Right now we support
94 only `sha1' and `md5' so everyone should be using `sha1'.
95 Installations which specified `md5' anywhere may need config changes.
97 Major new featureset (use of which is not adviseable yet):
98 * New facilities for negotiating about the signing keys to use for
99 authentication during key setup, and selecting and using the
100 appropriate keys. (``key-cache'/`privcache' and `peer-keys').
101 Using these new facilities for keyrollover now is in principle
102 possible but rather complex. Further machinery is planned;
103 for now, retain your existing config which should keep working.
105 - secnet: new `privcache' closure;
106 - secnet: `key-cache' and `peer-keys' keys on site closures;
107 - secnet: new file format for peer public keysets;
108 - secnet: new `make-public' config operator;
109 - make-secnet-sites `pub', `pkg', `serial', etc. keywords;
110 - make-secnet-sites --filter, --pubkeys-*, --output-version.
112 More minor (logging) improvements:
113 * Make stderr line buffered and log to it by default.
114 * Do not log differently with --nodetach.
115 * New `prefix' option to `logfile' closure.
116 * Tidy and simplify some messages.
119 * Many substantial internal refactorings in secnet.
120 * Many substantial internal refactorings in make-secnet-sites.
121 * make-secnet-sites option parsing totally replaced.
122 * Imported subtrees for base91-c and base91-python.
123 * New portablity code, etc.: osdep.[ch], fmemopen reimplementation.
124 * Explicitly define oddly-rotated dh padding arrangement (write_mpbin).
126 Build system and packaging:
127 * Do not fail to build from git when HEAD refers to a packed ref.
128 * Update to subdirmk 0.3.
129 * Many makefile fixes (esp. to clean and cdeps).
130 * configure.ac: Drop or suppress some very obsolete checks.
131 * autogen.sh: Write a comment about need for autoheader.
132 * dir-locals: Provide python-indent-offset too.
135 * stest: Use stderr, not tty, for logging.
136 * stest/udp-preload.c: Fix error handling of sun_prep.
137 * stest: Fix breakage if nproc is not installed.
139 Test suite improvements:
140 * New tests, including tests for new features.
141 * Existing tests (especially stest) generally made more thorough.
142 * New comprehensive-test and pretest-to-tested convenience scripts.
143 * Arrangements for testing with (user-provided) old secnet.
144 * parallel-test.*: scripts to help with parallelised bisection.
145 * stest: Print a lot more output about what we are doing.
146 * stest: Better support for cwd with longish pathname.
147 * stest: More flexibility, env var hooks, etc.
149 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 16 Feb 2020 12:48:13 +0000
151 secnet (0.5.1) unstable; urgency=medium
153 POTENTIALLY INCOMPATIBLE CHANGE. Some security implications.
155 * make-secnet-sites: Prefix names when writing secnet sites.conf file.
157 make-secnet-sites must copy names (vpn, location and site names) from
158 the input sites file (which is not wholly trusted) to the secnet
159 config file. Prior to this release, naming a location or site the
160 same as a secnet predefined name could generate a broken sites.conf
161 which secnet would reject. (With the existing featureset,
162 malfunctions other than rejection, eg privilege escalation, are not
165 make-secnet-sites now adds a prefix to these names when writing
166 sites.conf. This will not affect configurations which use the
167 make-secnet-sites-provided `all-sites' key, as is usual. Other
168 configurations will break unless the references in the static part of
169 the config are adjusted.
171 Previous behaviour can be restored with the --no-conf-key-prefix
172 option. (Planned future enhancements to secnet are likely to make use
173 of that option, with untrusted input, dangerously insecure.)
175 other changes to make-secnet-sites:
176 * Fix argument parsing. Fixes a regression affecting -P in 0.5.0,
177 and also fixes new facilities introduced in 0.5.0.
178 * Sort the properties on output (and adjust the test case expected
179 outputs). Tests now pass on (at least) Python 2.7.13, 3.5.3, 3.7.5.
180 * Delete some unused code.
183 * Change one idiom to avoid a warning from GCC9. No functional change.
185 build system - MAJOR CHANGES:
186 * Fix out-of-tree builds. (Broken in 0.5.0)
187 * Replace recursive make with use of the new subdirmk system.
188 This represents a fairly comprehensive overhaul of the makefiles.
189 Several bugs (esp. involving dependencies between files in different
190 directories) are fixed.
191 * Drop `make check' from `make all'. (Otherwise there is no way
192 to ask for `all' without `check'.)
193 * Suppress two unhelpful new compiler warnings from GCC9.
194 * Release checklist update.
197 * Credit Mark Wooding properly in CREDITS.
198 * Include DEVELOPER-CERTIFICATE.
201 * Locations now have different names to sites.
202 * Somewhat better debugging output from mtest.
203 * Do not run msgcode-test except with `make fullcheck'.
204 * Other minor bugfixes and improvments.
205 * stest: Suppress unhelpful -Wno-unused-result (needed for stretch).
207 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Fri, 22 Nov 2019 23:13:14 +0000
209 secnet (0.5.0) unstable; urgency=medium
211 make-secnet-sites SECURITY FIX:
212 * Do not blindly trust inputs; instead, check the syntax for sanity.
213 Previous releases can be induced to run arbitrary code as the user
214 invoking secnet (which might be root), if a secnet sites.conf is used
215 that was generated from an untrustworthy sites file.
216 * The userv invocation mode of make-secnet-sites seems to have been safe
217 in itself, but it previously allowed hazardous data to be propagated
218 into the master sites file. This is now prevented too.
220 make-secnet-sites overhaul work:
221 * make-secnet-sites is now in the common subset of Python2 and Python3.
222 The #! is python3 now, but it works with Python2.7 too.
223 It will probably *not* work with old versions of Python2.
224 * We no longer depend on the obsolete `ipaddr' library. We use
225 `ipaddress' now. And this is onlo a Recommends in the .deb.
226 * Ad-hoc argument parser been replaced with `argparse'.
227 There should be no change to existing working invocations.
228 * Bad address syntax error does not wrongly mention IPv6 scopes.
229 * Minor refactoring to support forthcoming work. [Mark Wooding]
231 other bugfixes, improvements and changes to secnet itself:
232 * Better logging of why we are sending NAK messages.
233 * Correctly use the verified copy of the peer remote capabilities
234 from MSG3. (Bug is not a vulnerability.) [Mark Wooding]
235 * Significant internal rearrangements and refactorings, to support
236 forthcoming key management work. [Mark Wooding and Ian Jackson]
239 * Completely overhaul release checklist; drop dist target.
240 * Remove dependency on `libfl.a'. [Mark Wooding]
241 * polypath.c: Fix missing include of <limits.h>. [Mark Wooding]
242 * Add a Wireshark dissector `secnet-wireshark.lua'. It is not
243 installed anywhere right now. [Mark Wooding]
246 * Improve documentation of capability negotiation in NOTES, secnet(8)
247 and magic.h. [Mark Wooding]
249 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 24 Oct 2019 19:11:54 +0100
251 secnet (0.4.5) unstable; urgency=medium
253 * INSTALL: Mention that rsa key generation might need ssh-keygen1.
254 * mobile: Fix negotiation bug with mixed old/new secnets and
255 simultaneous key setup attempts by each end. [Mark Wooding]
256 * Makefile.in: Support installation from a `VPATH' build. [Mark Wooding]
257 * Portability fixes for clang. [Mark Wooding]
259 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 21 Sep 2019 12:04:31 +0100
261 secnet (0.4.4) unstable; urgency=medium
264 * make-secnet-sites: Don't allow setting new VPN-level properties
265 when restricted. This could allow denial of service by
266 users with delegated authorisation. [Mark Wooding]
268 Bugfixes for poor network environments:
269 * polypath: cope properly with asymmetric routing, by correcting
270 the handling of late duplicated packets etc. Protocol is now
271 incompatible with secnet prior to 0.3.0 when either end is mobile.
272 * Randomise key setup retry time.
275 * rsa and cbcmac: Fix configuration error messages. [Mark Wooding]
276 * Handle IPv4 addresses properly (ie, not foolishly byte-swapped),
277 when IPv6 is not available. [Mark Wooding]
278 * Better logging (and less foolish debug), especially about whether
279 key is set up, and about crossed key setup attempts.
280 * Internal refactoring and fixes. [Ian Jackson and Mark Wooding]
282 Build system and portability:
283 * configure: rerun autogen.sh with autoconf 2.69-10
284 * Avoid memset(0,0,0) wrt st->sharedsecret. (Fixes compiler warning;
285 in theory might cause miscompilation.) [Mark Wooding]
288 * README.make-secnet-sites: new documentation file. [Mark Wooding]
289 * NOTES: Describe current allocation of capability bits. [Mark Wooding]
290 * NOTES: tiny fix tot protocol description.
291 * secnet(8): Delete wrong information about dh groups. [Mark Wooding]
294 * Fix erroneous GPL3+ licence notices "version d or later" (!)
295 * .dir-locals.el: Settings for Python code. [Mark Wooding]
297 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 08 Sep 2019 22:53:14 +0100
299 secnet (0.4.3) unstable; urgency=low
301 Security improvement:
302 * Use `mpz_powm_sec' for modexps.
305 * Implement comm-info and dedicated-interface-addr feature, for
307 * Implement `keepalive' site option, to try to keep link always up.
310 * #include <limits.h> (fixes the build on jessie).
311 * Tolerate building from a git checkout, but with git not installed.
312 (This can happen in chroots.)
313 * Turn off -Wsign-compare for bison output.
314 * Makefile.in: Fix `check-ipaddrset' rule to get reference from
315 $(srcdir). (Makes out-of-tree builds work properly.)
316 * Release checklist fixes.
317 * Burn version numbers 0.4.1 and 0.4.2 due to errors in release prep.
320 * When printing messages about dropping IPv6, do not print anything
321 about ihl. (Check the IP version field first!)
322 * When turning on debug, turn on verbose too.
324 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 25 Nov 2017 13:36:41 +0000
326 secnet (0.4.0) unstable; urgency=low
328 Debugging improvements:
329 * Packet-level debugging from site notes errors from transmit.
330 * Report when transport peers updated as a result of transmit.
332 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 28 Feb 2015 15:03:00 +0000
334 secnet (0.4.0~beta2) unstable; urgency=low
337 * Ignore IPv6 Unique Local unicast addresses.
338 * Skip "tentative" IPv6 local addresses.
339 * Improve logging and debug output.
342 * Build where size_t is not compatible with int.
344 Build system and packaging fixes:
345 * Makefile: support DESTDIR.
346 * debian/rules: set DESTDIR (not prefix).
347 * debian/rules: Support dpkg-buildflags.
348 * Install ipaddrset.py and secnet.8 with correct permissions.
349 * Fix check for <linux/if_tun.h> and git rid of our copy.
350 * Use -lresolv only if inet_aton is not found otherwise.
351 * Use -lnsl only if inet_ntoa is not found otherwise.
352 * debian/rules: Provide build-arch and build-indep targets.
353 * debian/rules: Do not run build for *-indep (!)
354 * Makefile.in: Putative dual (backport and not) release build process doc.
357 * Update to GPLv3. Add missing copyright notices and credits.
358 * Get rid of old FSF street address; use URL instead.
359 * Remove obsolete LICENCE.txt (which was for snprintf reimplementation).
360 * Remove obsolete references to Cendio (for old ipaddr.py).
362 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 28 Dec 2014 17:14:10 +0000
364 secnet (0.4.0~beta1) unstable; urgency=low
367 * Support transport over IPv6. (We do not yet carry IPv6 in the private
368 network.) IPv6 support depends on IPv6-capable adns (adns 1.5.x).
369 * New polypath comm, which can duplicate packets so as to send them via
370 multiple routes over the public network, for increased
371 reliability/performance (but increased cost). Currently Linux-only
372 but should be fairly easy to port.
373 * Support multiple public addresses for peers.
374 * Discard previously-received packets (by default).
376 Logging improvements:
377 * Report (each first) transmission and reception success and failure.
378 * Log reason for DNS reolution failure.
379 * Log unexpected kinds of death from userv.
380 * Log authbind exit status as errno value (if appropriate).
382 Configuration adjustments:
383 * Adjust default number of mobile peer addresses to store when a peer
384 public address is also configured.
385 * Make specifying peer public port optional. This avoids making special
386 arrangements to bind to a port for in mobile sites with no public
390 * Hackypar children will die if they get a terminating signal.
391 * Fix signal dispositions inherited by secnet's child processes.
392 * Fix off-by-one error which prevented setting transport-peers-max to 5.
394 Test, build and internal improvements:
395 * Use conventional IP address handling library ipaddr.py.
396 * Provide a fuzzer for the slip decoder.
397 * Build system improvements.
398 * Many source code cleanups.
400 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 26 Oct 2014 15:28:31 +0000
402 secnet (0.3.4) unstable; urgency=low
405 * The previous security fix to buffer handling was entirely wrong. This
406 one is better. Thanks to Simon Tatham for the report and the patch.
408 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Mon, 22 Sep 2014 16:16:11 +0100
410 secnet (0.3.3) unstable; urgency=high
413 * Pass correct size argument to recvfrom. This is a serious security
414 problem which may be exploitable from outside the VPN.
415 * Fix a memory leak in some error logging.
418 * Two other latent bugs in buffer length handling found and fixed.
419 * Non-critical stylistic improvements to buffer length handling, to make
420 the code clearer and to assist audit.
422 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Fri, 19 Sep 2014 23:50:45 +0100
424 secnet (0.3.3~beta1) unstable; urgency=low
426 Installation compatibility fix:
427 * In make-secnet-sites, always use our own ipaddr.py even if the
428 incompatible modern ipaddr.py is installed (eg via python-ipaddr.deb).
429 (Future versions of secnet are going to need that Python module to be
432 For links involving mobile sites:
433 * Use source of NAK packets as hint for peer transport address.
434 * When initiating rekey, make use of data transport peer addresses.
437 * Provide clean target in test-example/Makefile.
439 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Fri, 19 Sep 2014 00:11:44 +0100
441 secnet (0.3.2) unstable; urgency=low
443 * Release of 0.3.2. No code changes since 0.3.1~beta1.
445 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 26 Jun 2014 20:27:58 +0100
447 secnet (0.3.2~beta1) unstable; urgency=low
449 For links involving mobile sites:
450 * SECURITY: Properly update peer address array when it is full.
451 * Do name-resolution on peer-initiated key setup too, when we are mobile
452 (and other name-resolution improvements).
454 Other minor improvements:
455 * Log peer addresses on key exchange timeout.
456 * When printing version (eg during startup), use value from git-describe
457 and thus include git commit id where applicable.
458 * Updates to release checklist in Makefile.in.
459 * Use C99 _Bool for bool_t.
461 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Fri, 06 Jun 2014 01:17:54 +0100
463 secnet (0.3.1) unstable; urgency=low
465 * Release of 0.3.1. No code changes since 0.3.1~beta3.
467 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 15 May 2014 01:08:30 +0100
469 secnet (0.3.1~beta3) unstable; urgency=low
471 * Build fixes for non-i386 architectures and gcc 4.8.2.
473 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 08 May 2014 19:53:43 +0100
475 secnet (0.3.1~beta2) unstable; urgency=low
477 Fix relating to new fragmentation / ICMP functionality:
478 * Generate ICMP packets correctly in point-to-point configurations.
480 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 03 May 2014 18:58:09 +0100
482 secnet (0.3.1~beta1) unstable; urgency=low
484 Security fixes (vulnerabilities are to inside attackers only):
485 * SECURITY: Fixes to MTU and fragmentation handling.
486 * SECURITY: Correctly set "unused" ICMP header field.
487 * SECURITY: Fix IP length check not to crash on very short packets.
490 * Make the inter-site MTU configurable, and negotiate it with the peer.
493 * Fix netlink SEGV on clientless netlinks (i.e. configuration error).
494 * Fix formatting error in p-t-p startup message.
495 * Do not send ICMP errors in response to unknown incoming ICMP.
496 * Fix formatting error in secnet.8 manpage.
497 * Internal code rearrangements and improvements.
499 Packaging improvements:
500 * Updates to release checklist in Makefile.in.
501 * Additions to the test-example suite.
503 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 01 May 2014 19:02:56 +0100
505 secnet (0.3.0) unstable; urgency=low
507 * Release of 0.3.0. No code changes since 0.3.0~beta3.
508 * Update release checklist.
510 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 01 Sep 2013 20:27:48 +0100
512 secnet (0.3.0~beta3) unstable; urgency=low
514 * New upstream version.
515 - Stability bugfix: properly initialise site's scratch buffer.
517 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Mon, 05 Aug 2013 11:54:09 +0100
519 secnet (0.3.0~beta2) unstable; urgency=low
521 * New upstream version.
522 - SECURITY FIX: RSA public modulus and exponent buffer overflow.
523 - SECURITY FIX: Use constant-time memcmp for message authentication.
524 - SECURITY FIX: Provide a new transform, eax-serpent, to replace cbcmac.
525 - SECURITY FIX: No longer send NAKs for NAKs, avoiding NAK storm.
526 - SECURITY FIX: Fix site name checking when site name A is prefix of B.
527 - SECURITY FIX: Safely reject too-short IP packets.
528 - Better robustness for mobile sites (proper user of NAKs, new PROD msg).
529 - Better robustness against SLIP decoding errors.
530 - Fix bugs which caused routes to sometimes not be advertised.
531 - Protocol capability negotiation mechanism.
532 - Improvements and fixes to protocol and usage documentation.
533 - Other bugfixes and code tidying up.
535 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 25 Jul 2013 18:26:01 +0100
537 secnet (0.3.0~beta1) unstable; urgency=low
539 * New upstream version.
540 - SECURITY FIX: avoid crashes (or buffer overrun) on short packets.
541 - Bugfixes relating to packet loss during key exchange.
542 - Bugfixes relating to link up/down status.
543 - Bugfixes relating to logging.
544 - make-secnet-sites made more sophisticated to support two vpns on chiark.
545 - Documentation improvements.
546 - Build system improvements.
547 * Debian packaging improvements:
549 - Maintainer / uploaders.
550 - init script requires $remove_fs since we're in /usr.
552 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Thu, 12 Jul 2012 20:18:16 +0100
554 secnet (0.2.1-1) unstable; urgency=low
556 * New upstream version. (authbind endianness fix)
558 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sun, 11 Dec 2011 13:14:57 +0000
560 secnet (0.2.0-1) unstable; urgency=low
562 * New upstream version.
564 -- Ian Jackson <ijackson@chiark.greenend.org.uk> Sat, 10 Dec 2011 22:44:41 +0000
566 secnet (0.1.18-1) unstable; urgency=low
568 * New upstream version.
570 -- Stephen Early <steve@greenend.org.uk> Tue, 18 Mar 2008 17:45:00 +0000