The break-in at kernel.org
Summary
In late summer 2011, kernel.org was hacked, the central server from which the Linux sources are mirrored around the world. Felix von Leitner, who had an account on the system, explained the situation: attackers got in through a user’s stolen account, gained root privileges and installed a rootkit together with a manipulated SSH. According to this account, the kernel sources themselves were not at risk, because Git protects every change with cryptographic checksums.
Why the kernel stayed safe
Git is a distributed version control system. The authoritative kernel sources are not only on kernel.org but with Linus Torvalds and countless developers. Every state is identified by a checksum that depends on the entire history. A secret change in the past would be noticed immediately at the next synchronisation.
Nevertheless, as a precaution, the operators checked all recently uploaded or modified archives.
What the case shows
The stolen account had no root privileges, but the rootkit did. So there was at least one privilege escalation vulnerability in Linux that was unknown at the time. kernel.org was offline for weeks and was rebuilt. Since then, developers need a PGP key anchored in the kernel developers’ web of trust for write access.
Ideas
- Distributed version control makes a single compromised server less dangerous.
- Cryptographic checksums over the whole history make manipulation visible.
- A stolen user account plus local privilege escalation is enough for full control.
Insights
- Even the most experienced teams are not immune to break-ins.
- Integrity can be secured by cryptography, availability cannot.
Facts
- The break-in on kernel.org was discovered in August 2011.
- The attackers got in through a legitimate user account without root privileges.
- kernel.org was then offline for weeks and was rebuilt.
References
Remarks
- Since the incident, kernel.org has relied on PGP keys in the developers’ web of trust for write access.
Recommendations
- Verify downloaded sources via signatures or Git checksums instead of trusting the server.
- Treat every local privilege escalation as a serious vulnerability, even on systems with trusted users.
Found a mistake or have something to add? Get in touch.
Links to the original source and the Web Archive open in a new tab.