Skip to main content
Mallory
← Back to News
privilege-escalation-methodendpoint-software-vulnerabilitywidely-deployed-product-advisory

Linux Kernel IGMP Use-After-Free Enables Local Privilege Escalation

Attack Tradecraft · 5 sources · Updated 3mo ago · First seen May 16, 2023

Linux Kernel IGMP Use-After-Free Enables Local Privilege Escalation

CVE-2022-20141 is a use-after-free flaw in the Linux kernel IPv4 IGMP implementation, in ip_check_mc_rcu within net/ipv4/igmp.c. Improper locking allows a local low-privileged user to race repeated opening and closing of IGMP inet sockets, potentially causing a kernel crash or escalating privileges; Android tracked the issue as A-112551163.

Red Hat rated the vulnerability Moderate with a CVSS v3.1 score of 7.0, noting that reliable exploitation has high complexity and that no reproducer was known. Fixes were released for Red Hat Enterprise Linux 8 and 9, including real-time kernel packages, and Fedora incorporated fixes in stable kernel 5.13.16 updates; RHEL 6 was not affected and RHEL 7 was outside support scope.

Why it matters

Impact assessment

CVE-2022-20141 allows a local low-privileged user to trigger a Linux kernel use-after-free condition that can crash a host or potentially obtain kernel-level privileges. Exposure is concentrated in unpatched Android kernels and Linux distributions carrying the vulnerable IPv4 IGMP code; it is most relevant where untrusted local users, application sandbox escapes, containers, or multi-tenant workloads can execute code on a host.

  • Confidentiality, integrity, and availability impact is rated High in the CVSS impact metrics because successful privilege escalation can compromise the host kernel; reliable exploitation requires winning a race condition.
  • Red Hat rates the issue Moderate, CVSS 3.1 7.0, and reported no known reproducer at the time of its advisory.
  • The supplied references do not report confirmed exploitation in the wild.
  • Affected populations include Android devices running vulnerable kernel builds and Linux hosts using unpatched kernels with the affected IGMP implementation.
  • RHEL 6 is listed as not affected. RHEL 7 and kernel-rt are out of Red Hat support scope and should be treated as potentially affected until independently verified or replaced.

Structured facts

  • Vulnerability: CVE-2022-20141
  • Android tracking ID: A-112551163
  • Affected component: Linux kernel IPv4 IGMP implementation
  • Security outcomes: local denial of service and potential local privilege escalation
  • Exploitation prerequisites: local access and low privileges; no user interaction
  • Exploitation in the wild: not reported in the provided sources
Who uses this technique?Get the actors, campaigns, and ATT&CK mapping behind it.
Get the tradecraft
Event timeline

How this story unfolded

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

7 events · Jun 15, 2022 – May 16, 2023
  1. Reported May 16, 20234y ago

    Red Hat fixes RHEL 8.6 EUS and RHV 4 kernel packages

    RHSA-2024:0412 delivered a CVE-2022-20141 fix for the RHEL 8.6 Extended Update Support kernel and the Red Hat Virtualization 4 for RHEL 8 kernel package.

    CVE-2022-20141 - Red Hat Customer Portal
  2. May 16, 20234y ago

    Red Hat releases RHEL 8 kernel fixes and closes tracking bug

    Red Hat released RHSA-2023:2736 for the RHEL 8 real-time kernel and RHSA-2023:2951 for the RHEL 8 kernel to fix CVE-2022-20141. Red Hat also closed Bug 2114937, its tracking issue for the vulnerability.

    CVE-2022-20141 - Red Hat Customer Portal
  3. Reported May 9, 20234y ago

    Fedora ships stable kernel 5.13.16 fix

    Fedora addressed CVE-2022-20141 in stable Linux kernel 5.13.16 updates.

    2114937 - (CVE-2022-20141) CVE-2022-20141 kernel: igmp: use-after-free in ip_check_mc_rcu when opening and closing inet sockets
  4. May 9, 20234y ago

    Red Hat releases RHEL 9 kernel fixes

    Red Hat released RHSA-2023:2148 for the RHEL 9 real-time kernel and RHSA-2023:2458 for the RHEL 9 kernel, addressing CVE-2022-20141.

    CVE-2022-20141 - Red Hat Customer Portal
  5. Aug 3, 20224y ago

    Red Hat receives report of CVE-2022-20141

    Red Hat was notified of the Linux kernel IGMP use-after-free vulnerability affecting ip_check_mc_rcu.

    2114937 - (CVE-2022-20141) CVE-2022-20141 kernel: igmp: use-after-free in ip_check_mc_rcu when opening and closing inet sockets
  6. Jun 15, 20224y ago

    Android publishes CVE-2022-20141

    CVE-2022-20141 was published for an Android kernel use-after-free in igmp.c's ip_check_mc_rcu function. The improper-locking flaw can be triggered locally by opening and closing inet sockets and may enable privilege escalation.

    CVE Record: CVE-2022-20141
  7. Reported Jul 16, 20215y ago

    Linux kernel commits IGMP use-after-free fix

    David S. Miller committed Linux kernel patch 23d2b94043ca8835bd1e67749020e839f396a1c2, authored by Liu Jian, to lock the multicast source list during ip_check_mc_rcu traversal. The change prevents concurrent ip_mc_del_src deletion from causing a use-after-free in IPv4 IGMP source filtering.

    igmp: Add ip_mc_list lock in ip_check_mc_rcu - kernel/git/torvalds/linux.git - Linux kernel source tree
Linked entities

Related entities

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

Open in app →

Affected products

4 linked
AndroidLinux KernelFedoraRed Hat Enterprise Linux
Do you run this?Get the adversaries, campaigns, and ATT&CK mapping behind this technique, with detections ready to deploy.
See Who Uses This Technique
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.