Skip to main content
Mallory
← Back to News
widely-deployed-product-advisoryendpoint-software-vulnerabilityprivilege-escalation-method

Linux XFRM Double-Free Flaw Can Crash RHEL Systems

Patch & Detection Intelligence · 5 sources · Updated 3mo ago · First seen Jan 24, 2024

Linux XFRM Double-Free Flaw Can Crash RHEL Systems

Red Hat addressed CVE-2022-36879, a moderate-severity Linux kernel flaw in the XFRM packet-transformation framework. Faulty policy resolution in xfrm_bundle_lookup/xfrm_expand_policies can decrement a reference count twice, creating a memory-lifecycle error that a local, low-privileged attacker could use to crash the kernel and cause denial of service. Red Hat rates the issue CVSS 5.5, with high availability impact and no confidentiality or integrity impact.

The defect affects upstream kernels through version 5.18.14; Fedora incorporated the correction in kernel 5.18.15, while upstream Linux includes it in version 5.19. Red Hat shipped fixes for supported RHEL 8 and RHEL 9 releases, including specified kernel-rt and Extended Update Support variants, as well as Red Hat Virtualization 4 for RHEL 8. Organizations should install the applicable supported kernel update and reboot where required; RHEL 6 and RHEL 7 are outside Red Hat's supported scope for this issue.

Why it matters

Impact assessment

CVE-2022-36879 permits a local low-privileged user to crash an affected Linux kernel, causing host-level denial of service. Exposure is limited to systems running vulnerable kernels with XFRM policy handling reachable by a local account; the stated impact is availability only, with no reported confidentiality or integrity impact.

  • Affected populations: RHEL 8 and RHEL 9 deployments, including kernel-rt, RHEL 8.6 EUS, RHEL 9.0 EUS, and Red Hat Virtualization 4 for RHEL 8 where the applicable fixed advisory has not been installed.
  • Business impact: kernel panic or host outage can interrupt workloads, virtualized services, and network-dependent applications. Availability disruption can be significant on shared multi-user systems.
  • Severity: Red Hat rates the issue Moderate; CVSS v3.1 5.5.
  • Exploitation scope: local attack surface; an attacker needs an existing low-privileged account or code execution context on the host. The supplied sources do not report exploitation in the wild.
  • RHEL 6 and RHEL 7 are outside Red Hat's support scope and should be treated as potentially affected if they run susceptible kernel code.

Structured facts

  • Vulnerability: CVE-2022-36879
  • Severity: Moderate; CVSS 5.5
  • CWE: CWE-911, Improper Update of Reference Count
  • Affected component: Linux kernel XFRM packet-transformation and policy-handling subsystem
  • Primary impact: denial of service through a kernel crash
  • Exploitation in the wild: not reported in the supplied references
Patch this, or something else?See real exploitation activity before you spend the cycle.
Triage this advisory
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

8 events · Jun 2, 2022 – Jan 24, 2024
  1. Jan 24, 20243y ago

    Red Hat publishes RHEL 9.0 EUS kernel security update

    Red Hat published RHSA-2024:0432, an Important RHEL 9.0 Extended Update Support kernel update to version 5.14.0-70.85.1.el9_0 that fixes CVE-2022-36879 and other vulnerabilities. Systems require a reboot after installation for the updated kernel to take effect.

    RHSA-2024:0432 - Security Advisory - Red Hat Customer Portal
  2. Reported Oct 10, 20233y ago

    Fedora and upstream Linux incorporate fixes

    Fedora fixed the issue in its 5.18.15 stable kernel updates, while the upstream Linux kernel fix was included in version 5.19.

    2119855 - (CVE-2022-36879) CVE-2022-36879 kernel: xfrm_expand_policies() in net/xfrm/xfrm_policy.c can cause a refcount to be dropped twice
  3. Reported May 16, 20234y ago

    Red Hat fixes RHEL 9.0 EUS kernel-rt packages

    Red Hat addressed CVE-2022-36879 in RHEL 9.0 Extended Update Support kernel-rt packages through RHSA-2024:0431.

    CVE-2022-36879 - Red Hat Customer Portal
  4. Reported May 16, 20234y ago

    Red Hat releases RHEL 8.6 EUS and Virtualization kernel fix

    RHSA-2023:5627 delivered the CVE-2022-36879 fix for RHEL 8.6 Extended Update Support kernel packages and Red Hat Virtualization 4 for RHEL 8 kernel packages.

    CVE-2022-36879 - Red Hat Customer Portal
  5. May 16, 20234y ago

    Red Hat fixes CVE-2022-36879 for RHEL 8 kernels

    Red Hat released fixes for RHEL 8 kernel packages in RHSA-2023:2951 and RHEL 8 kernel-rt packages in RHSA-2023:2736.

    CVE-2022-36879 - Red Hat Customer Portal
  6. May 9, 20234y ago

    Red Hat fixes CVE-2022-36879 for RHEL 9 kernels

    Red Hat shipped fixes for RHEL 9 kernel packages through RHSA-2023:2458 and for kernel-rt packages through RHSA-2023:2148.

    CVE-2022-36879 - Red Hat Customer Portal
  7. Aug 19, 20224y ago

    Researcher reports XFRM double-reference-count flaw

    Guilherme de Almeida Suckevicz reported the xfrm_expand_policies() reference-count issue, affecting Linux kernels through version 5.18.14.

    2119855 - (CVE-2022-36879) CVE-2022-36879 kernel: xfrm_expand_policies() in net/xfrm/xfrm_policy.c can cause a refcount to be dropped twice
  8. Jun 2, 20224y ago

    CVE-2022-36879 publicly listed

    CVE-2022-36879 was publicly listed for a Linux kernel XFRM policy-handling flaw that could drop a reference count twice and cause a kernel denial of service.

    CVE-2022-36879 - Red Hat Customer Portal
Linked entities

Related entities

Vulnerabilities, threat actors, malware, products, organizations, and breaches Mallory has linked to this story.

Open in app →

Affected products

2 linked
Red Hat Enterprise LinuxLinux Kernel
Do you run this?See real exploitation activity behind this advisory so you can triage it against everything else in the queue.
Prioritize This Patch
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.