memfd_secret() in 5.14
memfd_secret() in 5.14
Posted Aug 7, 2021 6:29 UTC (Sat) by mb (subscriber, #50428)In reply to: memfd_secret() in 5.14 by ericonr
Parent article: memfd_secret() in 5.14
>and try to obtain the secret some time after the kernel remaps that piece of memory via a local >kernel exploit.
Yes, well. But only during the memory restore time window. After that the kernel would hopefully remove the pages from its mapping again.
But is memfd_secret() safe against kernel level privilege escalations anyway?
Why couldn't an attacker inject code to remap the areas?
So if you gain random code execution rights in the kernel, it's game over. With and without hibernation.
