Skip to main content

CVE-2025-22103: Vulnerability in Linux Linux

High
VulnerabilityCVE-2025-22103cvecve-2025-22103
Published: Wed Apr 16 2025 (04/16/2025, 14:12:52 UTC)
Source: CVE
Vendor/Project: Linux
Product: Linux

Description

In the Linux kernel, the following vulnerability has been resolved: net: fix NULL pointer dereference in l3mdev_l3_rcv When delete l3s ipvlan: ip link del link eth0 ipvlan1 type ipvlan mode l3s This may cause a null pointer dereference: Call trace: ip_rcv_finish+0x48/0xd0 ip_rcv+0x5c/0x100 __netif_receive_skb_one_core+0x64/0xb0 __netif_receive_skb+0x20/0x80 process_backlog+0xb4/0x204 napi_poll+0xe8/0x294 net_rx_action+0xd8/0x22c __do_softirq+0x12c/0x354 This is because l3mdev_l3_rcv() visit dev->l3mdev_ops after ipvlan_l3s_unregister() assign the dev->l3mdev_ops to NULL. The process like this: (CPU1) | (CPU2) l3mdev_l3_rcv() | check dev->priv_flags: | master = skb->dev; | | | ipvlan_l3s_unregister() | set dev->priv_flags | dev->l3mdev_ops = NULL; | visit master->l3mdev_ops | To avoid this by do not set dev->l3mdev_ops when unregister l3s ipvlan.

AI-Powered Analysis

AILast updated: 07/03/2025, 21:13:57 UTC

Technical Analysis

CVE-2025-22103 is a vulnerability identified in the Linux kernel related to the handling of Layer 3 S (l3s) mode ipvlan interfaces. Specifically, the issue arises during the deletion of an l3s ipvlan interface (e.g., using the command `ip link del link eth0 ipvlan1 type ipvlan mode l3s`). The vulnerability is a NULL pointer dereference in the function `l3mdev_l3_rcv()`. This occurs because the kernel code attempts to access the `l3mdev_ops` pointer of a network device after it has been set to NULL by the `ipvlan_l3s_unregister()` function during the unregistering process of the l3s ipvlan. The race condition involves two CPUs: one executing `l3mdev_l3_rcv()` and checking device flags and accessing `l3mdev_ops`, while another CPU concurrently runs `ipvlan_l3s_unregister()` which sets `dev->l3mdev_ops` to NULL. This leads to a NULL pointer dereference and consequently a kernel crash (panic) or denial of service. The root cause is improper clearing of the `l3mdev_ops` pointer during the unregister operation. The fix involves avoiding setting `dev->l3mdev_ops` to NULL when unregistering the l3s ipvlan, thereby preventing the race condition and NULL pointer dereference. This vulnerability affects Linux kernel versions identified by the commit hash c675e06a98a474f7ad0af32ce467613da818da52 and is publicly disclosed as of April 16, 2025. There are no known exploits in the wild at the time of publication.

Potential Impact

For European organizations, this vulnerability poses a risk primarily to systems running Linux kernels with ipvlan interfaces configured in l3s mode. The impact is a potential denial of service caused by kernel crashes due to NULL pointer dereferences. This can disrupt critical network functions, especially in environments using containerized or virtualized network setups where ipvlan is common (e.g., cloud infrastructure, data centers, telecom operators). The denial of service could lead to downtime of network services, impacting availability and potentially causing operational disruptions. While the vulnerability does not directly lead to privilege escalation or data leakage, the loss of availability in critical infrastructure can have cascading effects on business continuity and service delivery. Given the widespread use of Linux in European enterprise servers, cloud platforms, and telecom equipment, the vulnerability could affect a broad range of sectors including finance, healthcare, government, and telecommunications. However, exploitation requires specific network configurations (ipvlan l3s mode), which may limit the scope somewhat. No user interaction or authentication is needed to trigger the vulnerability, increasing the risk in exposed or multi-tenant environments.

Mitigation Recommendations

European organizations should take the following specific mitigation steps: 1) Identify and inventory all Linux systems using ipvlan interfaces, particularly those configured in l3s mode. 2) Apply the official Linux kernel patches that address CVE-2025-22103 as soon as they become available, ensuring that kernel versions are updated to include the fix that prevents setting `dev->l3mdev_ops` to NULL during unregister. 3) In environments where immediate patching is not feasible, consider disabling or avoiding the use of ipvlan l3s mode interfaces to eliminate exposure. 4) Monitor kernel logs and system stability for signs of NULL pointer dereference crashes related to network interface operations. 5) Implement network segmentation and strict access controls to limit the ability of untrusted users or processes to create or delete ipvlan interfaces, reducing the attack surface. 6) For cloud and container orchestration platforms, verify that the underlying host kernels are patched and that container network configurations do not rely on vulnerable ipvlan l3s setups. 7) Engage with Linux distribution vendors and cloud providers to track patch availability and deployment status.

Need more detailed analysis?Get Pro

Technical Details

Data Version
5.1
Assigner Short Name
Linux
Date Reserved
2024-12-29T08:45:45.819Z
Cisa Enriched
false
Cvss Version
null
State
PUBLISHED

Threat ID: 682d9832c4522896dcbe8133

Added to database: 5/21/2025, 9:09:06 AM

Last enriched: 7/3/2025, 9:13:57 PM

Last updated: 8/15/2025, 11:08:50 AM

Views: 14

Actions

PRO

Updates to AI analysis are available only with a Pro account. Contact root@offseq.com for access.

Please log in to the Console to use AI analysis features.

Need enhanced features?

Contact root@offseq.com for Pro access with improved analysis and higher rate limits.

Latest Threats