all 9 comments

sorted by: hot top controversial new old
[–] 36 points 1 week ago (2 children)

Given that this issue has been shared online and is currently getting quite a few visitors, here's some additional context.

Rust's type system is intended to prevent memory unsafety. Upholding this promise is something we take very seriously, which is why we've been working on things like the next-generation trait solver, the region constraint rework, and more generally Project Zero. It is a large priority of the Types Team to fix all type system unsoundnesses and to work towards there being a solid foundation to minimize the risk of unknown ones.

This bug is a P-high issue and would have been P-critical regardless of whether people encountered it in the wild. The reason that it is "only P-high" is that it's 11 years old. A bug like this which has not been found during the last 11 years cannot actually be that easy to hit.

Looking at the bug itself, it is also very likely that this unsoundness has not caused memory unsafety by accident. While it looks easy to trigger, to exploit this you need an intentionally malicious Drop implementation.

  • source
  • hideshow 2 child comments
  • [–] 10 points 1 week ago (1 child)

    A bug like this which has not been found during the last 11 years cannot actually be that easy to hit.

    Not sure why but I found this completely justified reasoning to be very funny. Getting ahead of the people complaining that it needs fixing NOW by saying, correctly, "it's not that serious"

  • source
  • parent
  • hideshow 1 child comment
  • [–] 12 points 1 week ago (2 children)

    So THIS is why my Rust app kept refusing to compile!

    (/jk)

  • source
  • hideshow 2 child comments
  • [–] 3 points 1 week ago (2 children)

    This needs to be in cve-rs (I'm too lazy for that tho)

  • source
  • hideshow 2 child comments
  • [–] 4 points 1 week ago (1 child)

    A PR fixing the issue has already been submitted (which surfaced another issue, but it doesn't concern stable).

    People likening this to the issue behind cve-rs (which is blocked on a major rework) are clueless, which happens to be par for the course regarding anything Rust. So no surprises there.

  • source
  • parent
  • hideshow 1 child comment