I'm running Moodle 2.4.2+ and we have it hosted by an external company so I have no access to the server at all so I don't know what Linux they're running.
This probably doesn't clarify anything but now the same problems have started happening in my quizzes too rather than only in lessons.