Memory Tagging Extension (MTE) exploit mitigation for Mastodon
21 points by lattera
21 points by lattera
Good article, it reminds me that I need to implement more comprehensive hardening in my own homelab. Though I sadly don't have any new ARM hardware, so I'm limited to more basic things like https://blog.quarkslab.com/clang-hardening-cheat-sheet-ten-years-later.html
This write-up does a great job as explaining what "increasing security" means for MTE and reminds us how MTE tags are only 4 bits.
MTE is not in itself a security feature since the rate of false positives is quite high so memory access violating the MTE tag check might still go through, but it overall provides a very powerful address sanitizer at lowish overhead (terms and conditions apply).
MTE can deterministically detect buffer overflows when the allocator makes sure that two consecutive allocations never use the same tag.