Android patches reveal critical kernel vulnerabilities

Summary

The Android security bulletin of October 2016 contained critical vulnerabilities that sounded like general Linux problems, including remote code execution in the kernel’s ASN.1 decoder and network subsystem. Felix von Leitner criticised the Linux developers for not announcing such vulnerabilities clearly. An update put this into perspective: after an initial review, the network vulnerability only affected programs using the rarely used recvmmsg system call.

Why Android bulletins matter for Linux

Android is based on the Linux kernel. Google publishes a security bulletin every month that also lists kernel vulnerabilities, often with clearer ratings than the kernel developers themselves provide. Anyone running Linux servers can take hints from it about which kernel fixes are urgent.

The kernel’s ASN.1 decoder is needed, among other things, to verify certificates for signed kernel modules. Von Leitner considered it a mistake to run a parser for such a complex format in the kernel at all, because any bug there runs with the highest privileges.

Check thoroughly instead of just raising the alarm

The update is instructive: at first glance, “remote code execution in the network subsystem” sounded dramatic. After looking at the actual change, what remained was a local privilege escalation that could only be exploited with recvmmsg. The rating in a bulletin is no substitute for looking at the patch.

Ideas

  • Android bulletins provide hints about vulnerabilities in the shared Linux kernel.
  • Parsers for complex formats in the kernel enlarge the attack surface.
  • The actual danger of a vulnerability often only becomes clear in the patch.

Insights

  • The rating of a vulnerability in a bulletin can be too high or too low.
  • Whatever runs in the kernel should be as simple as possible.

Facts

  • The Android security bulletin was dated 1 October 2016.
  • recvmmsg is a Linux-specific system call that receives several messages at once.
  • Vulnerabilities in MediaTek and Qualcomm drivers were among those listed.

References

Remarks

  • The update to the original post downgrades the network vulnerability considerably after the author’s own review.

Recommendations

  • With security notices, also read the patch or a sound analysis before assessing urgency.
  • Keep kernels on servers and devices up to date, even if a vulnerability sounds harmless.

Read the original article

Search the Web Archive

Found a mistake or have something to add? Get in touch.