Story Details

  • Memory-safe sudo to become the default in Ubuntu

    Posted: 2025-05-06 11:22:55

    Ubuntu is switching its default sudo implementation to a memory-safe version written in Rust. This change, starting with Ubuntu 23.10 "Mantic Minotaur", significantly improves security by mitigating vulnerabilities related to memory corruption, such as buffer overflows and use-after-free bugs, which are common targets for exploits. This Rust-based sudo is developed and maintained by the OpenSSF's Secure Software Supply Chain project, and represents a major step towards a more secure foundation for the widely-used system administration tool.

    Summary of Comments ( 69 )
    https://news.ycombinator.com/item?id=43903853

    Hacker News commenters generally expressed approval for Ubuntu's move to a memory-safe sudo, viewing it as a positive step towards improved security. Some questioned the significance of the change, pointing out that sudo itself isn't a frequent source of vulnerabilities and suggesting that efforts might be better directed elsewhere. A few expressed concerns about potential performance impacts, while others highlighted the importance of addressing memory safety issues in widely used system utilities like sudo to mitigate even rare but potentially impactful vulnerabilities. The discussion also touched upon the broader trend of adopting Rust for system programming and the trade-offs between memory safety and performance. Several commenters shared anecdotes about past vulnerabilities related to sudo and other core utilities, reinforcing the argument for enhanced security measures.