Patch management
Patch management turns vulnerability management decisions into updated systems without breaking production. It’s more logistics than security: knowing what’s installed, testing, deploying in waves, rebooting when needed and checking the patch is really applied. When it fails, what gets exploited isn’t a zero-day but a public-facing application (T1190) with a flaw fixed weeks or months earlier.
What it solves
Section titled “What it solves”- Closing the window: in 2025 exploitation was the top initial access vector for the sixth year in a row, and the mean time to exploit was estimated at −7 days (M-Trends 2026). The window between patch and attack is no longer measured in months.
- Patching without fear: a process with rings and rollback keeps “the last patch broke something” from becoming “we don’t patch”.
- Knowing it’s done: a patch approved in the console isn’t a patch installed; one installed without a reboot sometimes isn’t either.
The cycle
Section titled “The cycle”flowchart LR
A["Advisory<br/>vendor, KEV,<br/>vuln management"] --> C{"Emergency?"}
C -->|"exposed KEV"| E["Emergency path<br/>hours or days"]
C -->|"no"| R0["Ring 0<br/>IT and pilot"]
R0 --> R1["Ring 1<br/>representative<br/>sample"]
R1 --> R2["Ring 2<br/>rest of<br/>production"]
E --> R2
R2 --> RS["Reboot<br/>if needed"]
RS --> V["Verify<br/>installed version<br/>and rescan"]
R1 -.->|"problem"| RB["Rollback<br/>and pause"]
| Ring | Who | Purpose |
|---|---|---|
| 0 | IT staff and volunteers | Catch the patch that breaks things before anyone else |
| 1 | Representative sample (every machine type and critical application) | Validate real compatibility |
| 2 | The rest of the fleet | Coverage |
Each ring has a wait time and a criterion for halting it. The emergency path skips the wait for what’s under active exploitation and exposed, with prior communication and a rollback ready.
Prioritization
Section titled “Prioritization”- Emergency: in KEV, actively exploited and the asset is exposed. For reference, in 2026 CISA gave federal agencies 3 days to fix 166 of the 306 vulnerabilities it added to KEV.
- High: critical on exposed or identity assets (VPN, firewalls, domain controllers, mail).
- Normal: the monthly cycle (the second Tuesday of each month at Microsoft, Patch Tuesday).
- The forgotten: browsers, Java, PDF readers, network device firmware, hypervisors and edge devices, which often have no agent or console.
In practice: what unattended-upgrades really installs
Section titled “In practice: what unattended-upgrades really installs”On Ubuntu, unattended-upgrades only installs from the allowed origins in its configuration. The Ubuntu 24.04 defaults:
grep -A3 'Allowed-Origins' /etc/apt/apt.conf.d/50unattended-upgradesUnattended-Upgrade::Allowed-Origins { "${distro_id}:${distro_codename}"; "${distro_id}:${distro_codename}-security"; // Extended Security Maintenance; ...With 39 pending packages on the lab machine (25 of them from the security repository), the dry run:
apt list --upgradable 2>/dev/null | tail -n +2 | wc -l # 39unattended-upgrade --dry-run -dAllowed origins are: o=Ubuntu,a=noble, o=Ubuntu,a=noble-security, o=UbuntuESMApps,a=noble-apps-security, o=UbuntuESM,a=noble-infra-securityPackages that will be upgraded: apt gstreamer1.0-plugins-base libapt-pkg6.0t64 ... openjdk-21-jdk ... php8.3-cli ...It would install 25 packages, the security ones. The other 14 (systemd, mesa, kernel headers, from the noble-updates repository) stay pending because -updates isn’t in the default origins. It’s the cautious setting, but it means non-security bug fixes pile up and land all at once on the next manual update: plan for it.
| Platform | Common tools | Detail |
|---|---|---|
| Windows | Windows Update for Business, Intune, WSUS, Configuration Manager, Autopatch | Rings with deferrals and deadlines; hotpatch reduces reboots where available |
| Linux | unattended-upgrades, dnf-automatic, Ansible, Landscape, Satellite |
Allowed origins, reboot windows, needrestart |
| Third-party | The management tool’s third-party catalogs, Windows package managers | Browsers usually update themselves; the rest don’t |
| Network and edge | Vendor console, manual processes | Vendor and KEV advisories, short maintenance windows |
| Containers | Rebuild the image, don’t patch live | The base image is updated in the pipeline (DevSecOps) |
Verify
Section titled “Verify”- Installed version, not deployment job status:
dpkg -l,rpm -q, the management tool’s software inventory, or the authenticated scan from vulnerability management. - Pending reboots with their age.
- Machines not reporting to the patch tool: usually the same ones without an EDR agent or missing from the inventory.
- Metrics: percentage of the fleet up to date per ring, days to apply a KEV, number of machines with a reboot pending for more than 7 days.
What can’t be patched
Section titled “What can’t be patched”- Unsupported systems (end of life): a replacement plan with a date, isolation in their own zone (network hardening) and access only from bastions.
- OT, medical devices and certified systems: patches depend on the vendor and on downtime windows; compensating controls (segmentation, allowlisting, network monitoring) are the main defense.
- No patch yet: apply the vendor’s mitigation (disable the feature, a WAF or IPS rule), reduce exposure and watch for the advisory’s indicators.
Common mistakes
Section titled “Common mistakes”- Confusing “approved in the console” with “installed and rebooted”.
- A single ring: either everything breaks at once or nothing ever gets patched.
- Leaving edge devices and firmware out of the process.
- An emergency path that doesn’t exist until the day it’s needed.
- Containers patched by hand inside the container instead of rebuilding the image.
Real cases
Section titled “Real cases”- WannaCry and NotPetya (2017): they used EternalBlue (MS17-010), patched in March 2017; the attacks came in May and June. Today it’s a KEV entry flagged with known ransomware use.
- PAN-OS GlobalProtect (CVE-2024-3400, 2024): unauthenticated command injection on firewalls, exploited as a zero-day. CISA added it to KEV on April 12, 2024 with a 7-day deadline: the textbook edge device that needs the emergency path.
- Veeam Backup & Replication (CVE-2023-27532): in KEV with known ransomware use; attackers use it to reach the backups before encrypting (backups). Backup software gets patched with priority too.
Checklist
Section titled “Checklist”- Software and version inventory, including third-party, firmware and edge devices
- Rings defined with wait times and halt criteria
- Emergency path documented and tested for exposed KEV entries
- Rollback ready before deploying
- Origins and scope of automatic updates reviewed
- Pending reboots monitored with a maximum age
- Verification by installed version or scan, not job status
- Plan for the unpatchable: isolation, mitigation and a replacement date