4 ms·
That's a memory safety issue that caused by a race condition. Rust prevents memory safety issues, but not race conditions. The race condition in one of the CVEs
by CGamesPlay 4y ago
That's a memory safety issue that caused by a race condition. Rust prevents memory safety issues, but not race conditions. The race condition in one of the CVEs is in the filesystem, not in sudo.
- bobbylarrybobby 4y agoAh, thanks
- eptcyka 4y agoRust does prevent memory race conditions, but of course, only within the address space of the process and only for memory read and written to exclusively by rust code.
- progval 4y agoFor example, there is this (pure safe Rust) code: https://github.com/ben0x539/totally-safe-transmute/blob/main/src/lib.rs https://github.com/ben0x539/totally-safe-transmute/blob/main... which accesses external resources (/proc/self/mem) in order to violate the safety guarantees.