News for hackers. Stuff that matters.
Re:Multiple Security Issues in GNU Screen by mmsc on Tuesday May 13, 2025 @08:05AM (#43971967)
It's surprising that upstream was involved in this. Around 5 years ago, I came to the (sad) conclusion that GNU screen development had completely halted. Is that still not the case?

Does screen have the functionality to add a new window to an existing screen without attaching to the screen yet?

Re:Multiple Security Issues in GNU Screen by Trasmatta on Tuesday May 13, 2025 @08:14AM (#43972042)
> Due to difficulties in the communication with upstream we do not currently have detailed information about bugfixes and releases published on their end.

It sounds like they requested the security review, but have been difficult to keep in touch with? I'm not sure what the whole story is there.

Re:Multiple Security Issues in GNU Screen by tecleandor on Tuesday May 13, 2025 @08:27AM (#43972149)
Yep, from the timeline it looks like lack of communication (and maybe also capabilities/resources/time/will, not sure) [0]

  0: https://security.opensuse.org/2025/05/12/screen-security-issues.html#8-timeline
Re:Multiple Security Issues in GNU Screen by mmsc on Tuesday May 13, 2025 @08:42AM (#43972283)
Seems like a prime target for Jia Tan.
Re:Multiple Security Issues in GNU Screen by croemer on Tuesday May 13, 2025 @08:18AM (#43972071)
Involved only insofar as shipping it as setuid-root counts. Distros that configure it like this are vulnerable, others aren't. Very thin involvement I'd say. Distros patch if upstream is too slow.
Re:Multiple Security Issues in GNU Screen by mmsc on Tuesday May 13, 2025 @08:20AM (#43972085)
TFA says upstream asked for the review.
Re:Multiple Security Issues in GNU Screen by croemer on Tuesday May 13, 2025 @09:51AM (#43973006)
Right, I got the direction wrong.
Re:Multiple Security Issues in GNU Screen by Eduard on Tuesday May 13, 2025 @01:16PM (#43975307)
"TFA"?
Re:Multiple Security Issues in GNU Screen by shawn_w on Tuesday May 13, 2025 @01:42PM (#43975604)
The Fine Article
Re:Multiple Security Issues in GNU Screen by jzb on Tuesday May 13, 2025 @08:51AM (#43972387)
Upstream requested that the SUSE team take a look at it. It seems that development is understaffed and the upstream may not have the expertise to maintain it properly. Which, if true, is sad -- I know that tmux and others exist, but a lot of people have used Screen for many many years. It sucks when a tool bitrots.
Re:Multiple Security Issues in GNU Screen by marcosdumay on Tuesday May 13, 2025 @09:51AM (#43973007)
Looks like a tech-debt ridden large piece of software that new developers just can't understand.

If that's the case, it's not really about it being "understaffed". Instead, it's doomed to rot until it's replaced of rewritten. There's no scenario where more maintainers will help, except for marginally delaying it.

The good news is that there are almost perfect replacements out there, and most of them are leaner.

Re:Multiple Security Issues in GNU Screen by megous on Tuesday May 13, 2025 @10:53AM (#43973635)
It's not large:

https://git.savannah.gnu.org/cgit/screen.git/tree/src

A few 2kLOC files and the rest is rather small.

Re:Multiple Security Issues in GNU Screen by doctoboggan on Tuesday May 13, 2025 @12:36PM (#43974787)
What are the replacement tools I should be looking at as a casual user of screen?
Re:Multiple Security Issues in GNU Screen by kstrauser on Tuesday May 13, 2025 @12:57PM (#43975066)
If you want screen-but-better: tmux.

If you want a rethinking of the idea: zellij.

I prefer the latter. It matches my mental model of such things, and lots of people talk about enjoying switching to it. Many others happily use the former daily.

Re:Multiple Security Issues in GNU Screen by bombcar on Tuesday May 13, 2025 @02:03PM (#43975837)
tmux is great but it's way too powerful for the 90% use case of screen - which is "let this process continue to run even if I disconnect or logout".

I've had some luck with mosh, but that also seems kind of moribund.

https://mosh.org

For my use case it's fine.

Re:Multiple Security Issues in GNU Screen by kstrauser on Tuesday May 13, 2025 @03:05PM (#43976434)
Along the lines of Mosh, I've migrated from it to Eternal Terminal (ET): https://eternalterminal.dev
Re:Multiple Security Issues in GNU Screen by int_19h on Tuesday May 13, 2025 @04:34PM (#43977409)
If that is literally the only thing that you need, dtach is the ticket.
Re:Multiple Security Issues in GNU Screen by arp242 on Tuesday May 13, 2025 @10:14PM (#43980022)
> tmux is great but it's way too powerful for the 90% use case of screen - which is "let this process continue to run even if I disconnect or logout".

I guess, but does it really get in the way?

I use tmux only for scrollback and having multiple "tabs" and sessions, and not much else. But the more advanced stuff like splits and whatnot never really get in my way.

Re:Multiple Security Issues in GNU Screen by db48x on Wednesday May 14, 2025 @04:59AM (#43982417)
Even screen is too powerful for that use case. Just use nohup or dtach instead.
Re:Multiple Security Issues in GNU Screen by lupusreal on Wednesday May 14, 2025 @02:06PM (#43987484)
Screen has some obscure functionality that tmux doesn't have. Handling serial port connections, whereas with tmux AFAIK you'd have to use minicom.
Re:Multiple Security Issues in GNU Screen by nosrepa on Tuesday May 13, 2025 @12:54PM (#43975021)
Tmux
Re:Multiple Security Issues in GNU Screen by jmholla on Tuesday May 13, 2025 @08:05PM (#43979276)
If there was a way to get rid of Tmux's persistent status bar, I'd be happy to switch over. But last time I checked, you can't, and I want that real estate.
Re:Multiple Security Issues in GNU Screen by arp242 on Tuesday May 13, 2025 @10:12PM (#43980017)
Add "set -g status" to your tmux.conf. You can even bind it to a key to toggle if you want.
Re:Multiple Security Issues in GNU Screen by narag on Tuesday May 13, 2025 @01:09PM (#43975209)
Instead, it's doomed to rot until it's replaced of rewritten.

I've seen how that mindset has ruined several companies. Not saying that you're wrong about that particular program that is, after all, free software replaced by other free software parts. But for business, it's lethal.

Joel Spolsky had a nice piece about it:

https://www.joelonsoftware.com/2000/04/06/things-you-should-...

That and Fire and Motion seem to be forgotten wisdom already:

https://www.joelonsoftware.com/2002/01/06/fire-and-motion/

I feel old :-)

Re:Multiple Security Issues in GNU Screen by immibis on Tuesday May 13, 2025 @09:16AM (#43972604)
Open source does have a problem with inertia whenever one piece of software ends and another piece is created to replace it, but there's no immediate incentive to switch, because it is a switch, not an update.

Though conversely, when someone buys the trademark for an existing piece of software, and replaces it with something entirely different, like what happened with Audacity, that's also bad. So there's no good solution.

Re:Multiple Security Issues in GNU Screen by unixplumber on Tuesday May 13, 2025 @11:47AM (#43974235)
> Though conversely, when someone buys the trademark for an existing piece of software, and replaces it with something entirely different, like what happened with Audacity, that's also bad. So there's no good solution.

I've followed the Audacity situation over the last few years. Before the Muse Group bought the rights to the trademarks and took over development, Audacity development had pretty much stagnated.

The new developers did not replace it with something entirely different. What they did was fix longstanding bugs and add new features/enhancements (and changing the way some things work, for better or worse). Sure, they introduced new bugs here and there with the new features/enhancements, but last I checked they fixed those. And yes, they could have done a better job at marking new versions as "beta" rather than pushing them out as stable releases (old hands know to avoid a new version until a couple minor versions later). That's really my biggest gripe with their development/release process.

Re:Multiple Security Issues in GNU Screen by immibis on Tuesday May 13, 2025 @02:10PM (#43975910)
They are completely redesigning the UI to such an extent that it may as well be a completely new project.

Also, how come open source names can even be bought? They should be open, of course, so I think it'd be fair enough if they wanted to call theirs "MuseScore Audacity" or something like that.

Re:Multiple Security Issues in GNU Screen by 3036e4 on Tuesday May 13, 2025 @10:36AM (#43973459)
The good solution is rock-solid, backwards compatible APIs on all levels. That way the work to maintain software would be much lower, making it possible to focus on doing some rare bug-fixing only. In open source in particular this should be a no-brainier, instead of all projects ruining things for each other by ignoring backwards compatibility.
Re:Multiple Security Issues in GNU Screen by immibis on Tuesday May 13, 2025 @11:32AM (#43974061)
The rock-solid backwards-compatible API would include, for example, being invoked with the command "screen -x", and being installed with "apt install screen" - at which point it's the same screen project under different management, not a new project.
Re:Multiple Security Issues in GNU Screen by 3036e4 on Tuesday May 13, 2025 @11:59AM (#43974356)
I was referring to the APIs required by screen itself to run. If screen is anything like any software I know anything about a fair amount of limited developer time has to be wasted on keeping up with random third-party stuff changing/breaking. Even if that is not the case, if we get more stable software in general that would mean maintainers of free software could take on more projects each, meaning there would be a higher probability that someone could be around to fix bugs in screen.
Re:Multiple Security Issues in GNU Screen by Wowfunhappy on Tuesday May 13, 2025 @09:27AM (#43972716)
Isn't this what distros are for? So e.g. Debian could decide to replace screen with tmux, possibly with some sort of compatibility package that takes all the same command line arguments as screen but uses tmux under the hood. (I've used screen very little and have never used tmux so I'm not sure if that would make sense in this context).
Re:Multiple Security Issues in GNU Screen by marcosdumay on Tuesday May 13, 2025 @09:54AM (#43973023)
You can reconfigure the key-bindings, that I guess would be the largest annoyance for a new user. But there are many fundamental differences between them that you just can't hide.
Re:Multiple Security Issues in GNU Screen by kevin_thibedeau on Tuesday May 13, 2025 @09:44AM (#43972924)
Tmux doesn't support serial ports.
Re:Multiple Security Issues in GNU Screen by PhilipRoman on Tuesday May 13, 2025 @09:56AM (#43973045)
I'm not sure what made "screen" integrate the two separate pieces of functionality - you can use something minimal like "tio" for serial port access and it's much more elegant.
Re:Multiple Security Issues in GNU Screen by JdeBP on Tuesday May 13, 2025 @11:00AM (#43973708)
It's not separate functionality. The back end (so-called "master" side) of a pseudo-terminal is almost (bar initialization of line speed, hardware flow control, and framing settings) indistinguishable from a "null-modem" call-out serial port or parallel port terminal device. Write a software terminal emulation program for the former, which of course is what screen has, and you already have one for the latter.
Re:Multiple Security Issues in GNU Screen by kevin_thibedeau on Tuesday May 13, 2025 @10:31AM (#43973413)
It isn't separate functionality. Terminals connected via serial port is a valid use case for a terminal multiplexor.
Re:Multiple Security Issues in GNU Screen by PhilipRoman on Tuesday May 13, 2025 @11:01AM (#43973724)
In theory you're correct, but by that logic you'd also have to add ssh (probably by far the most common way of connecting to a remote terminal today). I guess you'd end up with something like mobaXTerm which is a valid approach for sure, but doesn't compose as well.

Personally I live by the maxim "if it can be separated without significant drawbacks, then it should be separate" but GNU tends to see it differently.

Re:Multiple Security Issues in GNU Screen by throwaway173738 on Wednesday May 14, 2025 @04:49PM (#43989062)
I dont think you understand what a terminal is. What you’re talking about is a shell running in a console. What we’re talking about is the terminal to connect to the console serial port running the shell.

EG https://en.m.wikipedia.org/wiki/VT220

Re:Multiple Security Issues in GNU Screen by nottorp on Tuesday May 13, 2025 @10:11AM (#43973196)
I'm sure a rewrite of screen in Rust will be 105% secure. And won't support serial ports either.
Re:Multiple Security Issues in GNU Screen by im3w1l on Tuesday May 13, 2025 @11:47AM (#43974241)
What is a serial port and what do you use it for?
Re:Multiple Security Issues in GNU Screen by genewitch on Tuesday May 13, 2025 @12:15PM (#43974541)
It is a port that has two data lines, RX and TX, and data is sent in a serial fashion across those data lines. It is used today for embedded systems, routers and switches et al, and getting a console on any machine that doesn't have a gpu with a monitor attached.

USB is a serial BUS, which allows multiple devices; serial ports are single device (if my memory serves).

Re:Multiple Security Issues in GNU Screen by spauldo on Tuesday May 13, 2025 @02:51PM (#43976309)
When most people use the term "serial port" they're referring to a DB-25 or DE-9 port you find on older computers or USB dongles. It's also seen in 8P8C (aka "RJ45") form sometimes, especially in industrial equipment. It can send and receive "characters" (anywhere from 5-8 bits each) one at a time at a fixed rate, either half duplex or full duplex. They usually implement one or more of the RS232, RS422, or RS485 standards.

Originally, you communicated with the computer using a teletype or video terminal connected to a serial port. Whatever you typed went to the computer, and whatever the computer sent back was printed on your terminal screen (or paper in the case of a teletype).

The UNIX (and thus, Linux) command line environment still works this way, except the serial line is virtual.

Re:Multiple Security Issues in GNU Screen by cozzyd on Tuesday May 13, 2025 @10:31PM (#43980115)
console=ttyS0,115200
Re:Multiple Security Issues in GNU Screen by immibis on Wednesday May 14, 2025 @04:01AM (#43982081)
Just use minicom
Re:Multiple Security Issues in GNU Screen by rzr on Tuesday May 13, 2025 @12:41PM (#43974844)
A smooth transition from GNU screen to tmux, will be appreciated for potentially 60K users.

https://qa.debian.org/popcon.php?package=screen

I note that tmux has only 40K users (of debian popcon users)

https://qa.debian.org/popcon.php?package=tmux

I am considering to try the link shared previously:

https://github.com/grml/grml-etc-core/blob/master/etc/tmux.c...

Now I miss a way to translate CLI options and batch files

Re:Multiple Security Issues in GNU Screen by layer8 on Tuesday May 13, 2025 @01:15PM (#43975292)
You generally can’t transparently replace a tool by a different one like that, siblings are giving examples of where there would be incompatibilities. There would also be much upheaval among users if a distribution would try to underhandedly perform such a replacement. If anything, a package “tmux-as-screen” could be provided for those who want that.
Re:Multiple Security Issues in GNU Screen by Wowfunhappy on Tuesday May 13, 2025 @07:53PM (#43979196)
> If anything, a package “tmux-as-screen” could be provided for those who want that.

To be clear, that's what I was imagining. If you had a shell script that called screen, it would now work via tmux, but no one would be "tricked".

Re:Multiple Security Issues in GNU Screen by layer8 on Tuesday May 13, 2025 @08:06PM (#43979282)
In that case, nobody would be tricked because they would have to explicitly select that package. Those already having screen installed, or selecting screen for installation, wouldn’t automatically be upgraded to tmux-as-screen. So what the comment you replied to mentioned as a problem of inertia and there being “no immediate incentive to switch” would remain largely unaddressed.
Re:Multiple Security Issues in GNU Screen by Wowfunhappy on Tuesday May 13, 2025 @08:13PM (#43979335)
Well, I guess the other part would be removing screen from the official repo. So the original utility is gone, but we have a compatibility package you can install that should make things work like they used to. (Of course, if you really still want screen you can build from source or some such.)
Re:Multiple Security Issues in GNU Screen by criddell on Tuesday May 13, 2025 @09:44AM (#43972925)
It’s not necessarily sad for GNU tool development to stop (other than bug fixes, of course). I would take that as a sign that they are basically complete.
Re:Multiple Security Issues in GNU Screen by kstrauser on Tuesday May 13, 2025 @11:27AM (#43973991)
Not quite in this case. Tmux was started by someone who wanted to update screen with new features but wasn’t able to bend the code that far. I say this not out of spite or meanness, as I used screen for many happy years, but I’d say it’s less complete and more abandoned. It still has maintainers but it seems to me that they’re more “keep the lights on” than actively developing it.
Re:Multiple Security Issues in GNU Screen by lxgr on Tuesday May 13, 2025 @11:21AM (#43973934)
Whether constant development is necessary or not largely depends on the surface area of your tool, both in terms of formal APIs it uses and external data formats and services.
Re:Multiple Security Issues in GNU Screen by dundarious on Tuesday May 13, 2025 @01:42PM (#43975601)
screen didn't even have vertical splits until maybe 5 or 10 years ago. After tmux was already a solidly reliable replacement with vertical splits for years.
Re:Multiple Security Issues in GNU Screen by wkat4242 on Tuesday May 13, 2025 @03:26PM (#43976656)
True, this is why I switched to tmux.
Re:Multiple Security Issues in GNU Screen by Kwpolska on Tuesday May 13, 2025 @02:57PM (#43976373)
It's not sad if a good Stallman-free alternative exists. Like tmux.