Skip to main content

US and Rest of World Must Follow China's Lead On Green Energy, Says John Kerry

1 week 5 days ago
Longtime Slashdot reader AmiMoJo shares a report from The Guardian: China is leading the world in moving away from fossil fuels, and the rest of the globe -- including the US -- must now follow, the former US secretary of state John Kerry has told the Guardian, as Cop watchers wonder exactly how China is going to approach this year's climate summit. As Cop31 opens -- this year the climate conference is in Turkey -- there is plenty of speculation about whether China will finally step into the leadership role that it has long avoided. In its latest "five-year plan" adopted in March 2026, China for the first time pledged to "actively participate in and lead global climate governance". Cop31 could provide the first indications Beijing is ready to put that rhetoric into action, something it has historically been reluctant to do. In 2025, clean-tech exports surpassed $220 billion, and they should grow again this year; the world's largest emitter is now the world's leading supplier of clean energy technology. China accounts for about 85% of solar and 80% of lithium-ion battery supply chain production capacity, and in 2025, nearly 75% of electric cars were manufactured there. Smart moves now by China would position it as a linchpin in a future electrostate world order, persuade rivals to cooperate, and solidify its influence in the global south. "The only country that has hugely accelerated is China," said Kerry. "The rest of the world is stumbling along while Mother Nature is sending us more powerful signals every week, every day." "[China] realized suddenly they had way too much dependency on oil and gas from other places, and they decided they needed to be independent. Other countries, since the war in Iran, and since the strait of Hormuz has been interrupted, have made a similar decision, and they're moving independently. There's been a massive uptick in deployment of renewables. Thank you, Donald Trump." For autocratic states without free and fair elections, seeing the economic benefits reaped by China would be the spur to adopt low-carbon growth, he added. "They'll see where the market is going, and they will recognize where the cheaper alternatives are. Even they can read a spreadsheet, and understand where costs are exorbitant [in fossil fuels], and where you have a better deal," Kerry said. "Right now, renewables together with storage, together with some transitional gas, is cheaper and more effective, than just going with fossil fuels." He added: "The marketplace has made its decision and globally is moving to electrons, and electrostate status. People are going to electricity and they're going to try to do that as clean as humanly possible. That's the choice that I see being implemented in many different places. It is unstoppable."

Read more of this story at Slashdot.

BeauHD

In the Hole

1 week 5 days ago

Look, I don't want to keep talking about security issues. Blame AI. Just another thing it ruined.

At this point, you've probably heard about *sshole. If you haven't, the quick summary: on some Linux systems, SSH will log you in to an account with no password if you supply a password greater than 256 characters long. Frequently, you might make accounts like root nominally inaccessible by giving it no password, so this is a big deal. Worse, it impacts varieties of Linux that use the musl implementation of libc, like Alpine- the kinds of varieties that run inside a container hosting a web app somewhere.

The impact is broad, and is definitely being exploited. The root cause, however, is interesting, because it's a sum of very simple choices that lead to a wildly undesirable result.

The core function in question is crypt, a stardard part of the C library. crypt is already not the best name, as it's a hashing function, but its behavior is pretty clear. Pass it a string and a salt, and it gives you a hashed version of the password suitable for storing in your /etc/shadow file.

Now, the man page has the answer to the important question: what happens when I hand the function invalid inputs, like a bad salt? In the glibc implementation, it returns a NULL. That's a pretty standard C-style method of handling errors: I failed to do the thing, so I'm going to return a NULL value. This puts the onus on the callers to correctly handle the NULL (which also handles the error).

glibc isn't the only implementation of libc, though. There are many others, each tuned to different types of runtime environments. For example, uClibC is a minimal implementation specifically designed to make lightweight executables that can run in resource constained environments. It makes tradeoffs that make it less desirable for a desktop or server environment. musl attempts to do both: be lightweight and suitable for embedded environments and also suitable for server environments. This makes musl a great choice for building Linux distributions meant to run in a container, which again, is why this bug is turning out to be such a problem.

musl does not return a NULL when it fails to hash your input. Instead, it returns a value that could not possibly be a valid hash: *. Here's their sha256 implementation where you can see that behavior. It's "fine", because you can still check the return to see if you errored: it's too short to be a valid hash, it's an easily identifiable character.

But why deviate like that at all? Well, error handling is hard. Null handling, done incorrectly (or in many real world cases, not at all), leads to crashes. To keep callers happy, the musl team decided to not return NULL, and instead return an invalid string. There are many other choices they could have made, but that was the choice that they made.

There's just one problem: in your /etc/shadow or /etc/passwd files, when you want to ensure an account can't be accessed via passwords, you also set their password hash value to an unhashable string: "*". Again, there are many other choices that could have been made, but that's the choice that was made.

There's now an obvious ticking time bomb here. If an attacker can somehow supply a string that triggers the invalid code path, crypt will return "*". When a program, like OpenSSH, then checks the shadow file to see if the hash matches the saved one, the answer for any account without a password set will be "yes, this matches, "*"=="*"."

How can the user reliably trigger this? Well, doing hashing can be expensive, especially if you're doing something like SHA-512, so the developers put a cap on how long the input string is allowed to be. That cap was 256 characters. If the user supplies more than 256 characters, hashing fails, and when hashing fails, we return... "*".

Et voila, when you pass a musl-linked SSH a password longer than 256 characters, and the account you're logging in as doesn't have a password, you can log in. And again, many containers are running with the musl c-library, which means many containers are impacted by this. It's going to be a huge mess.

And in the end, of course it's null handling. Of course the billion dollar mistake rears its head again, in a completely new and unexpected way. And of course, this flaw is part of the ongoing "Black October" as LLMs turn finding software bugs into a function of compute power, and not a function of human effort. There's going to be a lot more of this.

[Advertisement] Utilize BuildMaster to release your software with confidence, at the pace your business demands. Download today!
Remy Porter

M John Harrison Becomes First Sci-Fi Author To Win Booker Prize

1 week 5 days ago
An anonymous reader quotes a report from The Guardian: Eighty-one-year-old M John Harrison has won the Booker prize for The End of Everything, a postapocalyptic novel set on a near-future Kent coast, becoming the oldest winner in the award's history. Gaby Wood, chief executive of the Booker Prize Foundation, said that while plenty of previous winners had dabbled in science fiction, Harrison's was "the first Booker winner to have emerged from the bona fide SF world." She called it "a historic win, for a writer whose decades of work are lightly worn on every page". Harrison, who has been publishing for six decades, overtakes Margaret Atwood, who was 79 when she shared the prize in 2019 for The Testaments. He received the 50,000-pound award and trophy at a ceremony in London on Monday evening. The End of Everything, Harrison's first Booker nomination, is set a few decades from now, years after a disaster nobody can properly account for. Set on the Kent coast, the novel sees Phillip Tennent and his ageing aunt Marnie attempting to survive alongside the looming threat of the mysterious iGhetti: vast, shape-changing beings whose origins and intentions are never explained. At 198 pages, it was the shortest book on the shortlist. Mary Beard, chair of the judges, said the decision was unanimous, reached after a full day of discussion. "It's a book that turns you upside down, raises a wry smile -- and surprisingly, given the subject matter, leaves you with a twinge of optimism," she said. "One main point of the book is that if, or when, such an apocalypse comes it will be incomprehensible. And the old rules won't matter either This is the politics of now seen through the lens of the future."

Read more of this story at Slashdot.

BeauHD