How Linus Torvalds Exposed a GitHub Fake‑Commit Vulnerability

The article explains how a seemingly prank README submitted by Linus Torvalds leveraged a GitHub "fake‑commit" flaw, demonstrates the malformed URLs used to hide commits, and discusses related GitHub vulnerabilities that remain unpatched, offering insight for security‑aware developers.

21CTO
21CTO
21CTO
How Linus Torvalds Exposed a GitHub Fake‑Commit Vulnerability

On January 25, Linus Torvalds posted a README file to the Linux repository on GitHub with the provocative title "delete linux because it sucks". The file claims he hates Linux and recommends Windows XP, but the real purpose is to showcase a GitHub "fake‑commit" vulnerability.

The vulnerability allows an attacker to publish a README (or other file) via a specially crafted URL such as

https://github.com/my/project/blob/<faked_commit>/README.md

without the commit appearing in the repository’s history or any branch. The URL does not contain the word "commit", distinguishing it from normal commit URLs.

Linus’s README uses this technique, and the article includes screenshots of the malformed URL and the missing entry in the commit log, proving the file was never a real commit.

Further investigation links to a Hacker News discussion describing the fake‑commit flaw, which can be combined with another GitHub issue—impersonating a user via a forged git email address—to create convincing phishing pages.

Examples are shown where an email address in a repository URL is swapped (e.g., replacing slimsag with torvalds ), producing a repository that appears to be owned by Linus but lacks any activity record.

These GitHub vulnerabilities were disclosed publicly in 2020, yet GitHub has not addressed them, leaving them exploitable.

The article also notes that this is not Linus’s first criticism of Linux; he has previously complained about desktop Linux’s fragmented ecosystem and poor backward compatibility compared to Windows.

Source: https://www.sobyte.net/post/2022-01/linus-play-a-trick-of-github-vulnerability/
Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

open sourceSecurityVulnerabilityGitHubLinus Torvaldsfake commit
21CTO
Written by

21CTO

21CTO (21CTO.com) offers developers community, training, and services, making it your go‑to learning and service platform.

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.