Live data from Hacker News

Heap-based buffer overflow in Sudo

qualys.com

31–40 of 328 posts

Re: Heap-based buffer overflow in Sudo

#31
Developers: your moment has come at last to humble your local system administrator for wearing those "I read your emails" t-shirts. This is as day zero as day zero gets. Red Hat and Debian published their security announcements just two hours ago at the exact same moment this was posted on Hacker News. It would have been more responsible to keep something this bad under wraps a bit longer. Because all the people who still use things like cpanel virtual hosting are at risk.

Re: Heap-based buffer overflow in Sudo

#33
post #25
post #17

Earlier quoted context omitted.

People use the tools they have available and understand. Rust, at the time this bug was introduced into sudo, was barely a year old, and hadn't even released 0.1 yet. Also, the sarcasm in your comment really doesn't help your message.

I have been advocating against C since comp.lang.c days, no need for lessons about how to market something that the audience obviously isn't interested into paying attention. The first systems programming language that would prevented this kind of exploit was written in 1961, 10 years before C was invented.

Note, beyond all sarcasm, I adhere. At least all critical pieces like sudo must be rewritten in a safer language than C.

Re: Heap-based buffer overflow in Sudo

#36

Shouldn't this affect macOS?

sudoedit doesn't seem to be installed?

Not the thing saving you, as it is sudo invoked as sudoedit that permits entering the bad codepath... A simple symbolic link and you now have sudoedit.

And... macOS looks vulnerable to me

  % cd ~ && ln -s /usr/bin/sudo sudoedit && ./sudoedit -s /
  Password:
  sudoedit: /: not a regular file
As per the advisory it looks vulnerable (sudoedit: and not usage:)

Re: Heap-based buffer overflow in Sudo

#37
post #34
post #28

I don't find bug reports for this in either Debian or Ubuntu bug tracking systems. When do these get entered?

https://security-tracker.debian.org/tracker/CVE-2021-3156

Also, if you run a large Debian farm, it may be worth subscribing to debian-security-announce:

* https://lists.debian.org/debian-security-announce/

The message for this issue went out 18:05 UTC:

* https://lists.debian.org/debian-security-announce/2021/msg00...

See also the RSS feed for:

* https://www.debian.org/security/

Post reply on HN