Skip to main content
Vulnerability Database/CVE-2026-98103

CVE-2026-98103: Linux Kernel IGMP Use-After-Free Vulnerability

CVE-2026-98103 is a use-after-free flaw in the Linux kernel IGMP implementation that causes deadlocks when accessing multicast source lists. This article covers the technical details, affected versions, and mitigation.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-98103 Overview

CVE-2026-98103 is a Linux kernel locking vulnerability in the Internet Group Management Protocol (IGMP) subsystem. The flaw affects ip_check_mc_rcu(), which was previously modified to acquire spin_lock_bh(&im->lock) to prevent a use-after-free when iterating im->sources. That lock acquisition conflicts with Read-Copy-Update (RCU) read-side critical sections in packet receive and route lookup fast paths, producing recursive locking warnings and potential deadlock when XFRM policies match multicast destinations.

Critical Impact

Local workloads using IPv4 multicast with XFRM transforms can trigger a kernel deadlock on the same CPU, resulting in a denial of service condition on affected Linux hosts.

Affected Products

  • Linux kernel versions containing commit 23d2b94043ca ("igmp: Add ip_mc_list lock in ip_check_mc_rcu")
  • Distributions shipping the vulnerable IPv4 IGMP code path in net/ipv4/igmp.c
  • Any kernel build with IPv4 multicast and XFRM enabled prior to the RCU conversion fix

Discovery Timeline

  • 2026-09-25 - CVE-2026-98103 published to the National Vulnerability Database
  • 2026-09-30 - Last updated in NVD database

Technical Details for CVE-2026-98103

Vulnerability Analysis

The defect lies in the IPv4 IGMP source filter list management. ip_check_mc_rcu() runs in RCU read-side critical sections invoked from __mkroute_output(), ip_route_input_rcu(), and __udp4_lib_rcv(). The function acquires &im->lock while callers in the IGMPv3 report path already hold &pmc->lock. When an XFRM policy matches a multicast destination, xfrm_tmpl_resolve_one() reaches xfrm4_get_saddr() and then __mkroute_output(), which calls ip_check_mc_rcu(). The nested lock acquisition on the same CPU violates lock ordering and triggers a lockdep recursive locking warning.

Root Cause

The root cause is reliance on a spinlock to protect im->sources traversal rather than RCU semantics. The IPv6 equivalent in net/ipv6/mcast.c already uses RCU for the same data structures. The IPv4 struct ip_sf_list was never converted, forcing readers in fast paths to take &im->lock and creating a lock dependency inversion with &pmc->lock held by igmpv3_send_cr() and igmpv3_send_report().

Attack Vector

The condition requires a local system configuration where IPv4 multicast traffic intersects with an XFRM policy covering a multicast destination. Exploitation does not require network attacker input in the traditional sense; a workload issuing multicast traffic during IGMPv3 report generation while XFRM lookups resolve source addresses can trigger the deadlock. The vulnerability is a reliability and availability defect rather than a memory corruption primitive. See the upstream fix at Kernel Git Commit e3206419bdb0 for the full code path.

Detection Methods for CVE-2026-98103

Indicators of Compromise

  • Kernel log entries containing WARNING: possible recursive locking detected referencing ip_check_mc_rcu and igmpv3_send_cr or igmpv3_send_report
  • Soft lockup or hung task messages originating from the IGMP or XFRM routing code paths
  • Unexpected loss of multicast connectivity on hosts configured with XFRM policies

Detection Strategies

  • Enable CONFIG_PROVE_LOCKING on test kernels to surface the recursive lock warning deterministically
  • Audit kernel versions in the fleet against the fixing commits listed in the NVD references
  • Correlate crash dumps and lockdep splats with the ip_check_mc_rcu symbol in stack traces

Monitoring Recommendations

  • Forward /dev/kmsg and dmesg output to centralized logging and alert on lockdep splats mentioning igmp or xfrm4_get_saddr
  • Track kernel package versions across Linux endpoints and servers to confirm patch application
  • Monitor host availability metrics for multicast-dependent services such as cluster membership and discovery protocols

How to Mitigate CVE-2026-98103

Immediate Actions Required

  • Apply the stable kernel update containing the RCU conversion of struct ip_sf_list from the upstream fix commits
  • Prioritize patching on hosts that combine IPv4 multicast workloads with XFRM/IPsec policies
  • Validate the fix in a staging environment with CONFIG_PROVE_LOCKING enabled before production rollout

Patch Information

The fix converts struct ip_sf_list to RCU, mirroring the IPv6 implementation in net/ipv6/mcast.c. It adds struct rcu_head, annotates sf_next, sources, and tomb as __rcu pointers, uses rcu_assign_pointer() and kfree_rcu() for updates, removes spin_lock_bh(&im->lock) from ip_check_mc_rcu(), and traverses im->sources with for_each_psf_rcu() and READ_ONCE()/WRITE_ONCE(). Patch references: commit 2987ee196c88, commit d3011d1f2934, commit e3206419bdb0, and commit f5182dfad542.

Workarounds

  • Remove or narrow XFRM policies that match IPv4 multicast destinations until the kernel patch is deployed
  • Disable IGMPv3 source-specific multicast features on affected hosts where operationally acceptable
  • Isolate multicast workloads from hosts enforcing IPsec transforms to avoid the conflicting code path
bash
# Verify running kernel version and confirm patch presence
uname -r

# Inspect kernel log for lockdep warnings related to IGMP
dmesg | grep -iE 'recursive locking|ip_check_mc_rcu|igmpv3_send'

# List active XFRM policies to assess exposure
ip xfrm policy show

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.