Get a Quote   (408) 943-4100               TrueNAS Discord      VendOp_Icon_15x15px   Commercial Support

Versions Affected : All versions prior to TrueNAS 12.0-U5


Description

The FreeBSD kernel enables SMAP during boot when the CPU reports that the SMAP capability is present. Subroutines such as copyin() and copyout() are responsible for disabling SMAP around the sections of code that perform user memory accesses.

This bug may be used to bypass the protections provided by SMAP for the duration of a system call. It could thus be combined with other kernel bugs to craft an exploit.


Workaround

No workaround is available. On hardware that does not implement SMAP, the bug is inconsequential as the mitigation does not exist in the first place.


Mitigation

  • Upgrade to TrueNAS 12.0-U5 or later.

Commit


Further information