Bugs based on optimizations that compilers make based on assumptions enabled by undefined behavior (like the null check issue from 2009 in the Linux kernel) actually don't cost very much. They get a disproportionate amount of scrutiny relative to their importance.
Looks like UB bugs can cost more. It's a new age of UB sanitizers as a reaction to a clear problem with UB.