News for hackers. Stuff that matters.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by rwmj on Wednesday December 18, 2019 @11:57AM (#21826818)
Has anyone tried fuzzing random sequences of unshare(2), clone(2), setuid(2), capabilities, uid/gid map calls (etc) to see if there is a sequence that eventually gains real root or some other privilege escalation? I'm dubious that Linux is theoretically sound, what with the multiple layers of historical baggage.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by pcwalton on Wednesday December 18, 2019 @12:04PM (#21826875)
Syzkaller fuzzes that stuff. https://github.com/google/syzkaller
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by rwmj on Wednesday December 18, 2019 @12:05PM (#21826882)
It fuzzes individual syscalls. Does it string them together into sequences? (Edit: yes it does, but it doesn't look for priv escalations, only crashes, kernel panics and the like)
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by simcop2387 on Wednesday December 18, 2019 @04:22PM (#21829626)
It can be adapted to privlege escalations, but it doesn't do it on it's own. You have to give it a stub to check after running the syscalls to check if the permissions are intact.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by sitkack on Wednesday December 18, 2019 @05:09PM (#21829993)
Does it trace existing programs and use those as seeds in how to compose syscalls?
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by simcop2387 on Thursday December 19, 2019 @01:34PM (#21837745)
I don't think it's got the ability on it's own to do that, but I can imagine you could do it with strace and some other scripting.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by londons_explore on Wednesday December 18, 2019 @04:08PM (#21829485)
When you have root, it doesn't take many more random syscalls to cause a panic.
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by chipb on Wednesday December 18, 2019 @05:31PM (#21830160)
Or just try a not-so-random one:

   kill(1, 9);
Re:Linux 3.8 introduced unprivileged user namespaces [pdf] by chipb on Thursday December 19, 2019 @10:54AM (#21835957)
Huh. I guess it’s not too surprising, but that doesn’t work at all. init gets special treatment for signals.

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...

https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/lin...