News for hackers. Stuff that matters.
Re:Pre-auth RCE in Nginx HTTP/2 handling by K0nserv on Wednesday November 18, 2026 @10:50AM (#50547794)
Just another set of unfortunate examples of programmers who are bad at C, definitely not a C problem.
Re:Pre-auth RCE in Nginx HTTP/2 handling by marvinborner on Wednesday November 18, 2026 @11:20AM (#50548186)
The patch (or, one of them) seems very much like a bug that can happen independently of the programming language

https://github.com/nginx/nginx/commit/e27f5fa84fe6e98505e70b...

Re:Pre-auth RCE in Nginx HTTP/2 handling by K0nserv on Wednesday November 18, 2026 @11:26AM (#50548278)
This fixes the integer underflow for CVE-2026-123007, and it's true that the underflow can happen in any language, notwithstanding whether it's UB or not. The issue is what happens as a consequence of this underflow, in this case: out of bounds copy, which is specific to C.
Re:Pre-auth RCE in Nginx HTTP/2 handling by nh2 on Wednesday November 18, 2026 @11:58AM (#50548742)
Some languages make it significantly easier than C to just forbid integer overflow/underflow entirely.

Given that on modern CPUs, cycles are quite fast, and memory latency is quite high, always-checked integer operations sound like an extremely good idea.

Re:Pre-auth RCE in Nginx HTTP/2 handling by K0nserv on Wednesday November 18, 2026 @12:07PM (#50548856)
Sure, I usually use `overflow-checks = true` in Rust for this reason. However, it is still true that the overflow is not what caused the issue here. In Rust it would've paniced on the out of bounds copy, even with `overflow-checks = false`.
Re:Pre-auth RCE in Nginx HTTP/2 handling by uecker on Wednesday November 18, 2026 @02:32PM (#50550947)
It is not specific to C. You could have bounds checking also in C, and you can have non-checked indexing also in many other languages, including Rust. I would agree though that many other language make it harder to not have the bounds checking, but the bigger question is why this is not done C (and the answer that this is very hard to do is false).
Re:Pre-auth RCE in Nginx HTTP/2 handling by stevefan1999 on Wednesday November 18, 2026 @11:57AM (#50548707)
I think you forgot the /s

C is like a Winchester Model 1897, not saying that it is a bad gun, it is what we call it the good ol' Trench gun, as it ran over the war tunnels of the Great War, and it still packs a punch today, but it only has a half-cock for some level of safety, and there is no trigger disconnector either, so you can easily slam fire it. So it is way too easy to shoot yourself in the foot.

Nowadays we like going for a AKM/AK74, for something maybe more complicated but far more reliable at the same time. That's why we want Rust.

Re:Pre-auth RCE in Nginx HTTP/2 handling by K0nserv on Wednesday November 18, 2026 @12:14PM (#50548986)
I didn't think the /s was necessary
Re:Pre-auth RCE in Nginx HTTP/2 handling by xaksnTMu2 on Wednesday November 18, 2026 @02:58PM (#50551299)
It wasn't necessary, at least for people who kept hearing that there is no need for languages like Go or Rust, since it is possible to write memory safe programs in C, you just have to not make any bugs.