Vendors release patches as standalone fixes, as part of a larger update or as a replacement version. A patch closes the specific flaw named in its advisory. It does not undo damage that has already happened, and it does not remove anything an attacker has installed in the meantime.

Patching late is a common cause of breaches, since the flaw is public and attackers can compare the old and new versions to see what changed. A fix that sits uninstalled protects nobody.

The 2017 Equifax breach followed this pattern. A fix for the Apache Struts flaw CVE-2017-5638 had been available since March of that year, and the breach was found in July after attackers used the same flaw on an unpatched system. Similarly, Microsoft had released the MS17-010 fix in March 2017, two months before WannaCry spread through unpatched machines.

Know what you run, install fixes by risk and not by habit, restart where the product needs it, and confirm afterwards that the fixed version is the one running.