Debian Codegraph @

ChangeLog

raw
1 2026-04-29 Simon Josefsson <[email protected]>
2
3 version 2.8
4 * NEWS.md: Record release date.
5
6 tests: Disable utmp/readutmp (no systemd support)
7 * tests/Makefile.am (EXTRA_DIST): Add utmp.sh.
8 (dist_check_SCRIPTS): Remove utmp.sh.
9
10 maint: Bump GNULIB_REVISION
11 * bootstrap.conf (GNULIB_REVISION): Use stable-202601 branch commit
12 6466c4b5321eb2625a25e582516c0fa4a5261d05.
13
14 libtelnet: Don't use printsub
15
16 2026-04-29 Collin Funk <[email protected]>
17
18 telnetd: remove the --debug (-D) option
19 This change is being made because of a local privilege escalation
20 reported by Justin Swartz in
21 <https://lists.gnu.org/r/bug-inetutils/2026-03/msg00040.html>.
22
23 * NEWS.md: Mention the removal of this option.
24 * doc/inetutils.texi (telnetd invocation): Remove the documentation
25 forthe option.
26 * telnetd/slc.c (end_slc): Remove the call to DEBUG.
27 * telnetd/state.c (telrcv, send_do, willoption, send_dont, wontoption)
28 (send_will, doption, sent_wont, dontoption, suboption, send_status):
29 Likwise.
30 * telnetd/telnetd.c (parse_debug_level): Remove declaration and
31 function.
32 (debug_level, debug_tcp, debug_mode): Remove variables.
33 (argp_option, parse_opt): Remove the option.
34 (telnet_setup): Don't set SO_DEBUG on the socket.
35 (telnetd_run, print_hostinfo): Remove the calls to DEBUG.
36 * telnetd/telnetd.h (debug_mode_t): Remove type.
37 (MAX_DEBUG_LEVEL, DEBUG): Remove definitions.
38 (debug_level, printoption, printdata, printsub, debug_output_datalen)
39 (debug_output_data): Remove declarations.
40 * telnetd/termstat.c (localstat, flowstat, clientstat): Remove calls to
41 DEBUG.
42 * telnetd/utility.c: Include attribute.h
43 (net_read, ptyflush, pty_read, io_drain, netflush): Remove calls to
44 DEBUG.
45 (debug_fp): Remove variable.
46 (debug_open, debug_close, debug_out_datalen, debug_output_data)
47 (printoption, printdata): Remove functions.
48 (printsub): Make function a stub as required by libtelnet if kerberos is
49 enabled.
50
51 2026-04-13 Simon Josefsson <[email protected]>
52
53 maint: Bump GNULIB_REVISION
54 * bootstrap.conf (GNULIB_REVISION): Use 4a3650d88725e8fda6387fbdbaa0ed98cdca76ce.
55
56 maint: Run 'make indent'
57
58 2026-04-12 Collin Funk <[email protected]>
59
60 ftp: assume char is 8 bits
61 * ftp/cmds.c (setpeer): Don't use NBBY.
62
63 2026-04-12 Collin Funk <[email protected]>
64
65 ftpd: assume char is 8 bits
66 Gnulib already makes this assumption, so we can remove some dead code.
67
68 * bootstrap.conf (gnulib_modules): Add limits-h explicitly, which is
69 already a transitive dependency.
70 * ftpd/ftpcmd.y (NBBY): Remove definition.
71 (cmd, type_code): Use CHAR_BIT instead of NBBY.
72 * ftpd/ftpd.c (statcmd): Remove fallback code for if CHAR_BIT is not
73 defined.
74
75 2026-03-27 Collin Funk <[email protected]>
76
77 telnet: don't leak the value of unexported environment variables
78 Patch based on the following OpenBSD commit:
79 <https://github.com/openbsd/src/commit/1a11dc7253488a97d6df686dae9230f78682e8df>
80
81 * NEWS.md: Mention the fix.
82 * telnet/commands.c (env_getvalue): Add a boolean argument to prevent
83 prevent unexported variables from being returned.
84 * telnet/externs.h (env_getvalue): Adjust the function declaration.
85 * telnet/authenc.c (telnet_getenv): Add the new argument.
86 * telnet/telnet.c (dooption, gettermname, suboption, env_opt_add)
87 (telnet): Likewise.
88
89 2026-03-14 Collin Funk <[email protected]>
90
91 doc: NEWS: mention recently assigned CVEs
92 * NEWS.md: Mention CVE-2026-32746 and CVE-2026-28372. Add a link to the
93 report written by DREAM Security Research Team. Mention the rationale
94 behind the telnetd --accept-env option.
95
96 2026-03-13 Collin Funk <[email protected]>
97
98 syslogd: prefer lchmod to chmod
99 * src/syslogd.c (create_unix_socket): Use lchmod instead of chmod.
100
101 rcp: prefer lchmod to chmod
102 * src/rcp.c (sink): Use lchmod.
103
104 rlogind: prefer lchmod and lchown to chmod and chown
105 * src/rlogind.c (cleanup): Use lchown and lchmod.
106
107 libtelnet: prefer lchown to chown
108 * libtelnet/forward.c (rd_and_store_for_creds): Use lchown.
109
110 libinetutils: prefer lchmod and lchown to chmod and chown
111 * libinetutils/cleansess.c (cleanup_session): Use lchmod and lchown.
112
113 2026-03-13 Collin Funk <[email protected]>
114
115 telnetd: prefer lchmod and lchown to chmod and chown
116 In ideal circumstances no one is able to create symbolic links under the
117 /dev/pts/ directory. However, we should avoid the possibility of
118 following symbolic links regardless.
119
120 * bootstrap.conf (gnulib_modules): Add lchmod and lchown.
121 * telnetd/pty.c (cleanup) Use lchmod and lchown.
122
123 2026-03-13 Collin Funk <[email protected]>
124
125 telnetd: fix stack buffer overflow processing SLC suboption triplets
126 Previously a client could write past the end of an internal buffer using
127 an SLC suboption with many triplets using function octets greater than
128 18, possibly leading to remote code execution. Reported by Adiel Sol,
129 Arad Inbar, Erez Cohen, Nir Somech, Ben Grinberg, Daniel Lubel at DREAM
130 Security Research Team at:
131 <https://lists.gnu.org/r/bug-inetutils/2026-03/msg00031.html>.
132
133 * telnetd/slc.c (add_slc): Return early if writing the tuple would lead
134 us to writing past the end of the buffer.
135 * NEWS.md: Mention the fix.
136
137 2026-03-12 Guillem Jover <[email protected]>
138
139 doc: Fix typo
140 * AUTHORS: Fix typo.
141
142 Fixes: https://bugs.debian.org/1127398
143
144 2026-03-12 Collin Funk <[email protected]>
145
146 maint: fix Haiku spelling in README.md
147 * README.md: Fix typo.
148
149 2026-03-09 Simon Josefsson <[email protected]>
150
151 doc: Add NEWS entry for configure.ac hosts_ctl fix
152
153 2026-03-09 Simon Josefsson <[email protected]>
154
155 configure.ac: modernize check for hosts_ctl
156 Get the proper declaration from tcpd.h and pass the appropriate number
157 of pointer arguments. This avoids relying on an implicit declaration.
158
159 Bug: https://bugs.gentoo.org/962943
160
161 2026-03-08 Collin Funk <[email protected]>
162
163 telnetd: add the new --accept-env option
164 This changes telnetd to ignore all environment options from clients
165 unless the variable was listed by an --accept-env option. This
166 mitigates the many ways to escalate privileges using environment
167 variables.
168
169 * NEWS.md: Mention the change.
170 * bootstrap.conf (gnulib_modules): Add hashcode-string1, hash-set, and
171 xset.
172 * doc/inetutils.texi (telnetd invocation): Mention the new option.
173 * telnetd/pty.c (scrub_env): Remove function.
174 (start_login): Remove call to scrub_env. Remove unsetenv call that is
175 no longer needed.
176 * telnetd/state.c (suboption): Check for the environment variable in
177 accept_env_set before making changes to the environment.
178 * telnetd/telnetd.c (accept_env_set): New variable.
179 (string_hashcode, string_equals): New function needed for
180 gl_set_create_empty.
181 (ACCEPT_ENV_OPTION): New definition.
182 (argp_options): Add the --accept-env option.
183 (parse_opt): Process the new option.
184 (telnetd_setup): Clear the environment before processing options.
185 * telnetd/telnetd.h: Include gl_hash_set.h, gl_xset.h, and
186 hashcode-string1.h.
187 (accept_env_set): New declaration.
188
189 2026-03-06 Collin Funk <[email protected]>
190
191 maint: fix 'make syntax-check'
192 * NEWS.md: Fix a typo that causes sc_codespell to fail.
193
194 2026-02-19 Erik Auerswald <[email protected]>
195
196 Adjusted Ron Ben Yizhak's attribution as requested
197 in <https://lists.gnu.org/archive/html/bug-inetutils/2026-02/msg00012.html>.
198
199 * NEWS.md: Replace "Ron Ben Yizhak" with "Ron Ben Yizhak@SafeBreach".
200 * THANKS: Likewise.
201
202 2026-02-15 Erik Auerswald <[email protected]>
203
204 telnetd: don't allow systemd service credentials
205 The login(1) implementation of util-linux added support for
206 systemd service credentials in release 2.40. This allows to
207 bypass authentication by specifying a directory name in the
208 environment variable CREDENTIALS_DIRECTORY. If this directory
209 contains a file named 'login.noauth' with the content of 'yes',
210 login(1) skips authentication.
211
212 GNU Inetutils telnetd supports to set arbitrary environment
213 variables using the 'Environment' and 'New Environment'
214 Telnet options. This allows specifying a directory containing
215 'login.noauth'. A local user can create such a directory
216 and file, and, e.g., specify the user name 'root' to escalate
217 privileges.
218
219 This problem was reported by Ron Ben Yizhak in
220 <https://lists.gnu.org/archive/html/bug-inetutils/2026-02/msg00000.html>.
221
222 This commit clears CREDENTIALS_DIRECTORY from the environment
223 before executing login(1) to implement a simple fix that can
224 be backported easily.
225
226 * NEWS.md: Mention fix.
227 * THANKS: Mention Ron Ben Yizhak.
228 * telnetd/pty.c: Clear CREDENTIALS_DIRECTORY from the environment
229 before executing 'login'.
230
231 2026-01-26 Guillem Jover <[email protected]>
232
233 Use krb5_auth_con_getsendsubkey() instead of krb5_auth_con_getlocalsubkey()
234 The latter is not exposed in the headers anymore.
235
236 2026-01-26 Simon Josefsson <[email protected]>
237
238 doc: Mention runstatedir change
239 * NEWS: Add.
240
241 2026-01-26 Guillem Jover <[email protected]>
242
243 build: Use runstatedir for /run directory
244 Instead of using $(localstatedir)/run, use the more specific
245 $(runstatedir), which can then be specified independently of
246 localstatedir, and where the last component can be changed as well.
247
248 2026-01-26 Simon Josefsson <[email protected]>
249
250 doc: Mention new inetd --foreground parameter
251 * doc/inetutils.texi (inetd invocation): Document --foreground.
252
253 2026-01-26 Guillem Jover <[email protected]>
254
255 inetd: Add new --foreground option
256 This option avoids daemonizing, like --debug, except that it does not
257 imply debugging output. To be used primarily by the systemd service.
258
259 2026-01-26 Guillem Jover <[email protected]>
260
261 tests: Remove bogus libls test for unsorted file listing
262 We cannot reliably test whether the -f option works against a normal
263 filesystem, because that relies on the unsorted output coming out
264 accidentally not sorted, and this has been the cause for several
265 indeterministic build failures in various hosts (such as some
266 sparc64 or reproducible build nodes).
267
268 This could be guaranteed with something like disorderfs, but we do
269 not bother and simply remove the test case.
270
271 2026-01-26 Simon Josefsson <[email protected]>
272
273 Fix -Wpointer-sign
274 * src/syslogd.c (wallmsg): Use idx_t per gnulib API.
275
276 2026-01-25 Simon Josefsson <[email protected]>
277
278 doc: Mention --enable-gcc-warnings in NEWS
279
280 Fix -Wtype-limits
281 * ifconfig/options.c (parse_opt): Remove redundant n<0 check.
282
283 Fix -Wdangling-pointer
284 ifconfig/changeif.c (set_hwaddr): Move addr namespace.
285
286 Fix -Wunused-variable
287 * ftp/ftp.c (ptransfer): Drop unused bs and s.
288
289 Fix -Wunused-macros
290 * libls/stat_flags.c (TEST, SAPPEND): Remove.
291 src/inetd.c (NUMINT): Remove.
292 (SIGBLOCK): Define only for !HAVE_SIGACTION.
293 ping/ping_echo.c (NROUTES): Remove.
294
295 Enable gnulib manywarnings for compiler warnings
296 * bootstrap.conf (gnulib_modules): Add manywarnings.
297 configure.ac: Add --enable-gcc-warnings and disable noise for now.
298 */Makefile.am: Add WARN_CFLAGS to AM_CFLAGS.
299
300 Drop non-working TN3270 code
301
302 Pass USER to /bin/login after a '--' delimiter
303 * telnetd/telnetd (login_invocation): Add '--' for non-Solaris case.
304
305 2026-01-25 Collin Funk <[email protected]>
306
307 maint: fix a -Wdiscarded-qualifiers warning
308 * telnetd/utility.c (sanitize): Add a const qualifier to the return
309 type.
310
311 2026-01-22 Simon Josefsson <[email protected]>
312
313 doc: Harmonize on end section titles without a period
314 * doc/inetutils.texi (File format of ftpusers and ftpchroot): Drop '.'.
315 (Crafting an execution string): Likewise.
316 (Authentication steps): Likewise.
317
318 doc: Mention CVE-2026-24061 for telnetd exploit in NEWS
319
320 2026-01-21 Simon Josefsson <[email protected]>
321
322 doc: Give credit for telnetd exploit in THANKS
323 * THANKS: Mention Kyu Neushwaistein
324
325 2026-01-20 Simon Josefsson <[email protected]>
326
327 doc: Mention telnetd fix in NEWS
328
329 telnetd: Sanitize all variable expansions
330 * telnetd/utility.c (sanitize): New function.
331 (_var_short_name): Use it for all variables.
332
333 2026-01-20 Paul Eggert <[email protected]>
334
335 Fix injection bug with bogus user names
336 Problem reported by Kyu Neushwaistein.
337 * telnetd/utility.c (_var_short_name):
338 Ignore user names that start with '-' or contain shell metacharacters.
339
340 2026-01-20 Simon Josefsson <[email protected]>
341
342 doc: Remove older ChangeLog items
343 * Makefile.am: Remove older ChangeLogs that were previously thought to
344 be for changes not in the git history, but are adequately recorded
345 upon review. Saves around 0.7MB. Compare coreutils commit
346 4e112e90b11b70bd6dc5b441f820803fc2aadd69.
347 * ChangeLog.0, ChangeLog.1, ChangeLog.2: Remove file.
348
349 maint: Fix Makefile.am CL2STR copyright year
350 * Makefile.am (CL2STR): Add 2026.
351
352 maint: Run 'make update-copyright'
353
354 maint: Run './bootstrap --bootstrap-sync'
355
356 maint: Bump GNULIB_REVISION
357 * bootstrap.conf (GNULIB_REVISION): Use 2a288c048e2a23ea9cd8cbef9a60aa4ac82bdc3d.
358
359 Fix codespell typo
360 * cfg.mk (codespell_ignore_words_list): Add 'indx'.
361
362 2025-12-14 Simon Josefsson <[email protected]>
363
364 maint: post-release administrivia
365 * NEWS.md: Add header line for next release.
366 * .prev-version: Record previous version.
367 * cfg.mk (old_NEWS_hash): Auto-update.
368
369 version 2.7
370 * NEWS.md: Record release date.
371
372
373 See the source repo for older entries