News for hackers. Stuff that matters.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by winter_blue on Tuesday September 26, 2023 @10:31AM (#37659944)
> ...isn't a solution to memory unsafe languages and libraries. If anything the massive amount of bugs found via fuzzing should scare us as it is likely only scratching the surface of the vulnerabilities that still lie in the code

Yup. For example, the Linux code for its relatively new[1] io_uring subsystem was so memory-exploit-ridden that Google disabled it for apps on Android, and entirely on ChromeOS, and their servers[2]. It is insane that this is how easy it has been for a person to break into Linux.

[1] released with kernel version 5.1 which came out in May 2019

[2] in June 2023: https://en.m.wikipedia.org/wiki/Io_uring#Security

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by raverbashing on Tuesday September 26, 2023 @12:25PM (#37661679)
Only goes to show that C is a broken language and unfit for its purpose in today's day and age
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by Aeolos on Tuesday September 26, 2023 @12:30PM (#37661759)
For people downvoting, could you please explain which part of this statement you agree or disagree with?
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by mxkopy on Tuesday September 26, 2023 @12:44PM (#37661984)
C is syntactic sugar around assembly. Saying C is outdated is like saying assembly is outdated. At that point, just admit you're not interested in computers
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by callalex on Tuesday September 26, 2023 @01:39PM (#37662925)
I want to create software that doesn’t harm users. That doesn’t at all imply that I’m not interested in computers. In fact guaranteeing safety for users shows a profound interest in computers.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by oconnore on Tuesday September 26, 2023 @01:00PM (#37662300)
But assembly _is_ outdated, at least for the purpose of authoring large community software projects.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by bcrosby95 on Tuesday September 26, 2023 @12:56PM (#37662226)
> C is syntactic sugar around assembly.

The C abstract machine, and the undefined behavior shenanigans compilers are pulling off says otherwise.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by raverbashing on Tuesday September 26, 2023 @12:49PM (#37662077)
> C is syntactic sugar around assembly

It isn't

As an example, see how C 'int', 'short', 'long' or whatever becomes actual different types

> just admit you're not interested in computers

I have the popcorn ready already for when the next C "hotshot" shoots himself in the foot yet again because he thinks a chainsaw without an emergency brake is just more fun

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by peteradio on Tuesday September 26, 2023 @03:38PM (#37664773)
> chainsaw without an emergency brake is just more fun

Fun and fast!

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by bigbillheck on Tuesday September 26, 2023 @02:07PM (#37663415)
> C is syntactic sugar around assembly.

Even if this is true (and I don't believe it is), it's not useful.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by ryeights on Tuesday September 26, 2023 @03:26PM (#37664602)
All programming languages are syntactic sugar around processor instructions
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by eqvinox on Tuesday September 26, 2023 @06:13PM (#37666476)
The design of io_uring has nothing to do with the language the Linux kernel is implemented in. And safer languages really can't provide guarantees when the issue at hand is designing a shared memory cross-executable (kernel⋄userspace) API.
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by chlorion on Tuesday September 26, 2023 @07:08PM (#37667104)
Just having first class slice types, where your pointer is paired with a length, which allows for doing bounds checking automatically is a huge upgrade over C, even if it doesn't solve every other problem.

Security exploits from out of bounds access should not be happening today, bounds checking is a solved problem, and has been solved for decades.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by pjmlp on Wednesday September 27, 2023 @03:43AM (#37671413)
Time to make the point that not even C authors were able to change WG14 mind on the necessity of having fat pointers.

https://www.bell-labs.com/usr/dmr/www/vararray.pdf

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by winter_blue on Wednesday September 27, 2023 @10:57AM (#37675570)
That's a pretty interesting paper. Thanks for sharing it. I wonder why Dennis Ritchie, with the weight his name carries, wasn't able to push it into mainstream implementation...
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by pjmlp on Wednesday September 27, 2023 @12:02PM (#37676703)
Because once a language is managed by ISO, that doesn't matter, the author gets one vote like everyone else.

So this shows how the majority of WG14 members see security in C.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by diogenes4 on Tuesday September 26, 2023 @12:38PM (#37661879)
Kind of crazy we're still using monolithic kernels in 2023. Nothing about `io_uring` needs to happen with elevated privileges.

I would take a large—say, 2-5x—performance hit just to escape these kinds of vulnerabilities.

Re:Google assigns a CVE for libwebp and gives it a 10.0 score by hderms on Tuesday September 26, 2023 @01:17PM (#37662606)
but isn't the whole point of io_uring that it's more performant?
Re:Google assigns a CVE for libwebp and gives it a 10.0 score by eqvinox on Tuesday September 26, 2023 @06:16PM (#37666506)
A 2-5× performance hit is also a 2-5× CO₂ hit, and I wouldn't be willing to let myself or other people take that hit. We're throwing enough heat into the atmosphere already to make cats dance on our portable supercomputers as is.