News for hackers. Stuff that matters.
Re:Formal Mechanised Semantics of CHERI C: Capabilities, Und... by saagarjha on Friday April 19, 2024 @03:22AM (#40084217)
No. CHERI does not have a straightforward way of protecting against UAF.
Re:Formal Mechanised Semantics of CHERI C: Capabilities, Und... by Peter_Sewell on Friday April 19, 2024 @05:48AM (#40084872)
There's increasingly mature work on CHERI temporal memory safety, eg https://www.cl.cam.ac.uk/research/security/ctsrd/pdfs/2020oa... and more recent versions.
Re:Formal Mechanised Semantics of CHERI C: Capabilities, Und... by kwitaszczyk on Friday April 19, 2024 @06:41AM (#40085157)
The CHERI ISA does not provide temporal safety features but it allows building temporal safety mechanisms in software. CheriBSD 23.11 includes user-space heap temporal memory safety that is enabled by default [0]. The paper "Cornucopia Reloaded: Load Barriers for CHERI Heap Temporal Safety" at ASPLOS 2024 will describe the current implementation [1].

For embedded systems, the CHERIoT [2] platform implements hardware-assisted temporal memory safety without MMU.

[0] https://ctsrd-cheri.github.io/cheribsd-getting-started/featu...

[1] https://www.asplos-conference.org/asplos2024/main-program/ab...

[2] https://cheriot.org/papers/2023-micro-cheriot-uarch.pdf