The Anatomy of a Patch: Backporting CVEs Without Breaking Things
summary
Walks through a real backport of CVE-2024-37370 in MIT Kerberos, shows the vulnerable code pattern and the exact patch-rewriting steps used to graft a fix into older branches, and contrasts a tiny 37-line targeted change with a catastrophic thousands-line rewrite that breaks API contracts. Demonstrates using helper functions (PSVI trick) to preserve ABI, stresses no new deps or platform code, and reports a successful 318-line focused backport that fixes the CVE without breaking downstream tests.
AI-written summary · about
