Would I be disqualified from academic positions in mathematics if my PhD is in cognitive science?
In mathematics in particular, the question that search committees will have about you is your willingness and ability to teach a variety of undergraduate mathematics courses.  If you have significant experience teaching main stream undergraduate mathematics courses, then you should make sure to highlight this in your application.  If you have no such experience, then it will be a significant negative factor in your application.