News for hackers. Stuff that matters.
Re:Susctl CVE-2024-54507: A particularly 'sus' sysctl in the... by kwitaszczyk on Friday January 24, 2025 @12:29PM (#42815365)
This is a nice and easy to understand example of a memory-safety bug that CHERI [1] prevents (among other classes of vulnerabilities). Given that the SYSCTL_PROC() macro installs a pointer to an uint16_t value in the oid_arg1 field, a CHERI pure-capability kernel would construct a capability with bounds set to sizeof(uint16_t) and later the dereference of (int *)oidp->oid_arg1 in sysctl_udp_log_port() would trigger a capability bounds violation.

`sysctl -a` would simply crash on CHERI allowing a developer to catch this without KASAN being involved.

[1] http://cheri-cpu.org

Re:Susctl CVE-2024-54507: A particularly 'sus' sysctl in the... by pjmlp on Friday January 24, 2025 @12:48PM (#42815538)
Not only, SPARC ADI and ARM MTE as well.