upatch.dev

About upatch.dev

upatch.dev is an open registry of upatches: small, signed BPF programs that block the code path a CVE exploits, on a running Linux machine, until the real fix is deployed. The community writes them and reviews them in public.

$ shirudo upatch load \
    cve-2025-24813-tomcat-block.upatch
signed loader accepted
2 programs pinned
measured into the TPM

$ curl … exploit for CVE-2025-24813
HTTP 500: payload never written
No restart of Tomcat, no reboot. Root can’t remove it.

The missing piece for shirudo

shirudo is the engine: it lets the kernel load only BPF programs you signed. But an engine needs something to run. upatch.dev supplies the mitigations.

shirudo gives you

  • A kernel that loads only BPF signed with your key, even for root
  • Protection for loaded programs: root can’t detach or delete them
  • A TPM record of every load and unload, for attestation
  • Delivery of signed packages from your own OCI registry

upatch.dev adds

  • Ready-made upatches that block specific CVEs, kernel and application
  • Public review of every upatch before it’s merged
  • A README per upatch: what it blocks and what stops working
  • New upatches for new CVEs, written as they’re published

shirudo ships the platform and a few examples. It doesn’t maintain mitigations for the CVEs your machines are exposed to. That’s the gap upatch.dev fills.

From a published CVE to a blocked exploit

A vendor fix can take weeks to reach every machine. A upatch only has to block one code path, so it can be written, reviewed and rolled out much sooner. The aim is days, not months.

  1. A CVE is published

    Contributors read the advisory and the fix commit to find the path to block.

  2. A upatch is written

    A short BPF program at a kernel hook, a Beefile and a README. No exploit code.

  3. The community vets it

    CI checks and compiles it. Reviewers load it on a test machine and confirm it blocks what the README says, and nothing more.

  4. You roll it out

    Sign it with your own key and publish it. Your machines load it without a reboot.

  5. The fix lands, it comes off

    A signed unload removes it once the patched version is deployed.

Example: CVE-2025-24813 in Apache Tomcat

A partial PUT writes an attacker’s file into Tomcat’s work directory, and a session cookie makes Tomcat deserialize it: remote code execution. The upatch refuses that file write and that session load at two kernel hooks, while Tomcat keeps running.

Two minutes on a Tomcat 9.0.98 lab machine: the exploit runs code as the tomcat user, the upatch loads without a restart, the same exploit fails, and root can’t remove it.

What the attacker gets, measured on the lab machine
UpatchPayload writtenCode runs as tomcatNormal traffic
Not loadedYesYesWorks
LoadedNoNoWorks
Unloaded againYesYesWorks

See this CVE in the registry

Contribute a upatch

Pick a CVE that has no upatch yet, write one, and open a pull request. Or review someone else’s: every upatch needs people who load it, test it and say what they saw.

What to send
One BPF program, a Beefile and a README, in one pull request.
What the README says
The CVE, what is blocked, what stops working, and how you tested it.
What not to send
Exploit code, or anything that triggers the bug.
License
GPL-2.0 OR BSD-2-Clause.