A patch is a small piece of code that corrects a specific problem in software that already exists. It does not rebuild the program. It changes the minimum needed to fix one bug or close one security hole, then leaves the rest untouched.
Think of a patch the way you would think of a tyre repair. You do not buy a new car because of one puncture. You plug the hole, check the pressure and drive on. A software patch works the same way: a developer finds the exact spot causing trouble, corrects it, and ships only that fix so users get the benefit quickly without a risky overhaul.
Patches usually carry a tiny version bump, which is why they sit at the smallest level of semantic versioning (the third number, as in 2.4.1). A good patch comes with short release notes so everyone knows what changed and why. And because patches touch live software, they have to be careful: one careless line can break things the original code never had a problem with.
You will also hear the word hotfix, which is just a patch made in a hurry. Picture a checkout button that suddenly stops working on a Saturday morning. The team does not wait for the next planned release; they write a one-line fix, test it, and push it that afternoon. The discipline is making sure even that rushed change goes through review and lands in version control, so nobody loses track of what was actually shipped.
At TopDevs we treat patching as routine maintenance, not panic mode: we monitor the systems we build, test each fix, and roll out security patches fast so a small problem never becomes a costly one.