"Is there any way to hide kernel information using Nginx?" Scanners 'guess' kernel versions based on various TCP options and such your server supports. Unless you want to kill performance and make your server look like it's running an older kernel, there is nothing to be done.