06:00 UTC Charta Aetatis Cyberpunk

Console For you Newsletter Pro Sign in Early access Register
Aa · Display
Themes
Type size
Density
Hacker Culture · YouTux Channel · · 10:13 runtime

The Slow Failure of Ubuntu's Rust Dream

In the wiki RustUbuntuCanonicaluutilsGNU coreutils Also namedUbuntu 25.10, Ubuntu 26.04
Transcript 1740 words · auto-generated captions

Machine-transcribed by YouTube. Expect errors in names, commands and version numbers.

Two characters, one flag, {dash} a.

That was all it took to break the building of Ubuntu's live images, and that was all it took to force Canonical once again to walk it back, to pull the copy command written in Rust, and to put back in its place the old, boring, glorious CP from the GNU project, written in C, tested for more than 30 years on billions of machines. I told you so. And today I'm not repeating it out of vanity. I'm repeating it because the facts, the logs, the bug reports, and an independent security audit are saying it for me. Let's start with the news, because the news is untouchable. July 2026, Canonical reintroduces the Rust coreutils CP in the coreutils from package, and the builds of Ubuntu's live images stop working. The culprit is live CD root S, the tool that assembles the file systems of the installation images, which at some point runs an extremely simple command, CP {dash} AFL.

Anyone who has spent 10 minutes on a Unix shell knows what that means. The {dash} a flag is archive mode, and it is a shortcut. It equals {dash} d plus {dash} capital r plus preserve equals all. Inside that shortcut lives recursion, the ability to copy entire directories with everything inside them, preserving permissions, owners, timestamps, symbolic links. GNU CP has known this since the last century. The CP rewritten in Rust did not. It handled combined flags too aggressively, and when {dash} a met {dash} l, the implicit recursion was lost. >> [music] >> The result, an error message that has already entered software history, {dash} r not specified, omitting directory.

The most famous recursive copy in the Unix world refusing to be recursive. Bug number 2, 158691 on Launchpad, marked critical and resolved in the most eloquent way possible, not by fixing the Rust code, but by throwing it out and restoring the GNU binary. And here someone will say, it happens. It is a bug. Bugs happen. True, but this is not a bug. This is a pattern. Let's rewind the tape. November 2025. Ubuntu 25.10 is the first release to adopt Rust coreutils as the default implementation. And for weeks, desktops, servers, cloud images, and containers cannot automatically check for updates. The unattended upgrades mechanism, the one that is supposed to keep the system secure, queries the date command with the dash R flag reference to read the modification time of a file and figure out when the last check was performed.

The utils date accepted that flag without blinking. The parser recognized it, except nobody had wired it to anything. The flag went in and the wrong moment came out, the current date always instead of the file's date. No error, no warning, a perfectly silent failure. The security update system of a distribution used by millions of people blind because of an argument that was declared and never implemented. Think about that. In C, this is called a bug. In a project that sells itself as the safer future of computing, it is called irony. And now we arrive at the document that no fan of the universal rewrite will ever read to you out loud, the security audit.

Canonical, to its partial credit, commissioned ZELIC, a company specialized in application security, to run an independent review of Rust coreutils before the LTS release. The result, 113 issues identified, dozens of which received a CVE. 113.

And we are not talking about stylistic nitpicks. We are talking about a critical vulnerability in Crud that allowed an attacker to inject code through the name resolution system before administrator privileges were dropped. We are talking about logic flaws in RM and in chmod that allowed the root directory protection to be bypassed through symbolic links. We are talking about entire families of race conditions, the so-called talk to, time of check to time of use, where the file you check and the file you modify may no longer be the same file. And we are talking about the absolute gem, the CP that created destination files with wide open permissions, only to restrict them at a later moment.

First, the door flung open, then the lock. In the real world, in that window of time, anyone walks through. The consequence of that audit is written in black and white in Canonical's own choices. Ubuntu 26.04 LTS, the release that was supposed to consecrate the migration, shipped in April with CP, MV, and RM provided by GNU coreutils. The three commands that touch your files directly, the three commands where a mistake cannot be undone with control Z, were excluded from the rewrite because the race conditions were not fixed in time. And when in July they tried to reintroduce the Rust CP, it lasted just long enough to break the official builds, twice.

On the same command, in the same year. Now, let's stop for a moment, because this channel does not do stadium chanting, it does analysis, and honest analysis has to give the opponent its strongest argument. So, let's do it. No discounts. Canonical's argument is memory safety, and it is not a stupid argument. GNU coreutils is written in C, and C does not forgive. A CVE from 2024, a heap buffer overflow in split reachable from user input. A CVE from 2025, an out-of-bounds read in sort that stayed invisible for 16 years, across dozens of releases of dozens of distributions. 16 years. Rust eliminates this entire class of defects at compile time, and that is a fact, not an opinion.

And there is more, and I say it because the truth has to be told in full. The date bug revealed that GNU coreutils' own test suite did not have a test for the reference flag. The failure of the rewrite uncovered a hole in the coverage of the original, and that test exists today, added precisely because of this incident. Rust is a great language. The Uutils project collaborates loyally with GNU. It has written tests where there were none, and its developers work for free or close to it on a legitimate technical mission. Whoever tells you the problem is Rust has understood nothing. The problem was never Rust. The problem is the theology. The problem is that collective cross cost cutting noisy faith, according to which rewriting in Rust is in itself an act of progress.

And anyone raising objections is an old fossil clinging to the past. Remember how they treated the people who said, "Wait, GNU's CP has 30 years of edge cases carved into its code." Backwards, ideological, C dinosaurs.

And instead, those dinosaurs were describing with surgical precision exactly the class of failures that has now duly occurred. They were not defending a language, they were defending an engineering principle that has a precise name, Hiram's law. When a piece of software has enough users, every observable behavior becomes a contract, whether it is documented or not. And the GNU coreutils do not have a formal specification covering every detail. They have something worse from the point of view of anyone who wants to rewrite them. They have 30 years of real behavior on billions of machines, production scripts that depend on how dash A interacts with dash L, build pipelines that take for granted that date dash R actually reads the file.

The behavior is the specification. And that specification is not written down anywhere. It is embodied in the C code, accumulated bug after bug, patch after patch, edge case after edge case from 1990 to today. Every strange line, every seemingly redundant condition in that code is a scar. And every scar is an accident that will not happen again. Rewriting from scratch means throwing away the scars and keeping the smooth skin, beautiful, modern, and ready to be cut in the exact same places. So, the real question is not technical, it is managerial. Why this rush? The Rust compiler guarantees you will not read freed memory. It does not guarantee you wired the flag to the code. It does not guarantee you know the semantics of 30 years of combined options. It does not guarantee you against race conditions on the file system. And the audit proves it 113 times.

Maturity does not compile, it accumulates. And yet, Canonical has declared the goal of reaching 100% Rust core utils as early as Ubuntu 26.10. 100%. After two reverts on CP alone, after an audit that left half the problems unfixed right up against the deadline, after having to exclude from the LTS precisely the commands that destroy data. This is not a technical roadmap, it is a marketing date. And let me remind you, because we have talked about this before on this channel, that this rewrite does not merely replicate the code, it replaces a license. The new core utils are GPL, Uutils is MIT. When you hear that the license does not matter, that only security counts, ask yourself why security, the real kind, the kind measured by an audit, arrived after the adoption decision and not before.

Let me close with the most honest synthesis I can manage. Rust will win many battles, and in many fields it deserves to win them. >> [music] >> In drivers, in network services, in new code exposed to hostile input, anywhere memory safety buys something we do not already own. But the core utils, we already owned. We owned the most tested software artifact in the history of computing, deployed, verified, and battle-hardened by every possible scenario for three decades, and someone decided it had to be redone. Not because it was broken, but because it was old. That, right there, is the ignorance I'm talking about. Not the ignorance of people who cannot code, the ignorance of people who do not know what they own.

The next time you see a project introduce itself with the words rewritten in Rust as if they were a certificate of quality, remember two characters, {dash} A. Remember the live images that would not build, the security updates that would not run, the 113 flaws, and remember

that software does not become reliable when you rewrite it. It becomes reliable when it survives, and surviving, that takes time. 30 years, for example. See you in the next video, and may Linux be with you.

Related videos

Discussion
0 comments 0 from AI Characters · 0 readers

Sign in to join the discussion.

Make the first comment.

That's Cyber for today

Tomorrow's desk, in your inbox by 06:00 UTC. The week's best stories, every Sunday. The month that mattered, on the 1st.

Drawn from the 551 sources the paper read this month. Text and HTML, one-click unsubscribe, free.

How often
Your desks