Join our Newsletter — 33% off our NHI Course

How do you patch or mitigate CVE-2021-22555 (Linux Kernel Heap Out-of-Bounds Write)?

CISA’s required action for CVE-2021-22555 is to apply mitigations per vendor instructions, follow applicable BOD 22-01 guidance for cloud services, or discontinue use of the product if mitigations are unavailable. In practice, find every instance of Linux Kernel in your estate, apply the vendor security update or documented mitigation, and if no fix can be applied, remove internet exposure or take the product out of service.

What CVE-2021-22555 Means for Linux Kernel Exposure

CVE-2021-22555 is a Linux kernel heap out-of-bounds write, so the issue is not just “is the package installed” but whether the vulnerable kernel is running anywhere in your estate. The practical question is exposure scope: physical hosts, virtual machines, cloud instances, container hosts, and appliances that embed Linux. Treat it as a fleet-wide inventory and remediation problem, not a single-server patch.

Because kernel flaws operate below the application layer, compensating controls are limited once the affected kernel is in use. The main decision is whether you can apply the vendor fix or documented mitigation quickly enough to remove the exposure. If the product cannot be remediated, the safest choice is to reduce reachability or retire the system until a supported fix is available.

For broader Linux baseline work, the Linux Server Hardening Guide is useful because kernel patching is most effective when it sits inside a larger hardening program, including configuration, access control, and continuous verification. For remediation workflows across mixed environments, the Patch Management Guide is the better operational reference because it frames emergency patching, rollback planning, and exception handling.

How to Patch or Mitigate It Safely

The normal fix path is straightforward: apply the vendor security update or the vendor-documented mitigation for the Linux kernel version you run. Where the vendor advisory includes a mitigation instead of a patch, follow that exact sequence and verify the kernel actually boots with the expected setting or build. For cloud-hosted systems, align the action with the relevant provider guidance, because managed images and shared service layers can change what “patched” means in practice.

Do not stop at a package-management check. Confirm the running kernel version on every node, compare it with the vendor advisory, and then validate that the patched kernel is active after reboot. If you use staged deployment rings, patch a small set first, confirm service health, and then complete rollout. If you have to defer rebooting, isolate the system and document the exception, because a fixed package on disk does not remove the live kernel exposure.

When the affected system cannot be patched promptly, the best mitigation is to reduce attack surface: remove direct internet exposure, restrict admin and remote access paths, and move the system behind tighter network controls until you can complete remediation. If the vendor provides no workable mitigation, discontinue use of the product or image rather than assuming the risk is acceptable.

The CISA Known Exploited Vulnerabilities Catalog is the authoritative reference for whether CISA expects active remediation, and the NIST National Vulnerability Database remains the practical starting point for record linkage and product identification. Use the CVE Program entry to anchor the vulnerability identifier before you move to vendor-specific patch instructions.

What to Check If You Could Not Patch Immediately

If patching lags, assume the question is no longer only “can this be fixed” but “has this already been abused.” Check whether the host showed unexpected crashes, privilege escalation attempts, kernel anomalies, or unusual container escapes around the exposure window. The kernel is a high-value target, so even short exposure can matter when the vulnerable system is reachable from untrusted users or shared workloads.

For compromise review, focus on what the kernel could have enabled after exploitation: local privilege escalation, execution beyond intended boundaries, and follow-on access to adjacent services or secrets on the host. Review logs, persistence points, and administrative activity from the relevant period, and compare the findings with any known exploit timeline in your environment. If the system held sensitive credentials, treat those credentials as potentially exposed and rotate them where the exposure path makes that credible.

Standards & Framework Alignment

This section maps relevant standards and security frameworks to the operational risks and controls described in this guidance.

CIS Controls v8, NIST SP 800-53 Rev 5 and NIST CSF 2.0 set the governance and control requirements practitioners need to meet.

Framework Control / Reference Relevance
CIS Controls v8 CIS-7 — Continuous Vulnerability Management CVE patching and mitigation are vulnerability management tasks.
Recommendation — Prioritise, patch, and verify the vulnerable Linux kernel across the fleet.
NIST SP 800-53 Rev 5 SI-2 — Flaw Remediation This CVE requires applying vendor fixes or mitigations to remove a known flaw.
CM-2 — Baseline Configuration Kernel patching must be tracked against approved host baselines and variants.
Recommendation — Apply vendor remediation and validate the vulnerable kernel is no longer running. Update the approved Linux baseline to require the fixed kernel version or mitigation.
NIST CSF 2.0 PR.IP-12 — Vulnerability Management The question is about remediating a known exploited vulnerability.
RC.RP-1 — Recovery Plan Execution If patching is delayed, the system may need service restoration or removal from service.
Recommendation — Track the affected Linux kernel population and complete verified remediation. Execute the recovery plan to isolate or retire systems that cannot be remediated safely.

Practitioner Guidance

What to prioritise: Build an asset list of every Linux kernel instance first, because the main failure mode is incomplete inventory. Patch success should be measured by the running kernel, not by whether an update was downloaded.

Decision rule: If you can apply the vendor fix, do that and reboot into the fixed kernel as soon as service risk allows. If you cannot, remove internet exposure and treat the host as time-limited until remediation or retirement is complete.

What to verify: Confirm the active kernel version, the vendor advisory for that exact release line, and whether the mitigation is persistent after reboot. If the system is cloud-hosted or image-based, verify the base image and any attached fleet automation, not just the one instance you touched.

Practitioner takeaway: Kernel vulnerabilities are operationally dangerous because a partial patch is often a false sense of safety; the right control is verified removal of the vulnerable running kernel, or removal of the host from exposure if that cannot be done quickly.