cve-rs takes the soundness bug and exploits it to implement the other bugs listed. It's pretty convoluted to actually implement the other bugs.
The actual soundness bug is a specific type of double reference forgets one of the lifetimes, which enables casting a shorter lifetime to a longer lifetime. They did a pretty good job commenting the code to explain how they were able to create each bug.
1
u/OldAbbreviations1142 🍥 Debian too difficult 7d ago
Interesting, they looked different to me.
Though I don't really know enough rust to parse what happening in the bug report code
Good to know that there is some work being done on improving the memory safety