CVE-2022-50405
Description
A flaw was found in the Linux kernel's UDP tunnel implementation. This vulnerability allows a local user with network administration privileges to cause a Denial of Service (DoS) by triggering a race condition. When a UDP tunnel interface, such as VXLAN (Virtual Extensible LAN), is deleted while actively receiving network packets, the kernel may release socket data before processing finishes. This improper cleanup leads to a NULL pointer dereference and an immediate system crash.
Statement
A race in udp_tunnel_sock_release() could free the UDP tunnel socket while in-flight RX code still dereferences sk_user_data, leading to a NULL dereference or use-after-free (e.g., with VXLAN during interface removal under load). The fix adds an synchronize_rcu() after clearing sk_user_data to wait for all RCU readers to finish before releasing the socket. Practically, this is triggerable by a local administrator (NET_ADMIN) tearing down a UDP-based tunnel amid heavy traffic.
Common Vulnerability Scoring System (CVSS) Score Details
Info alert:Important note
CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).
CVSS v3 Score Breakdown
| Red Hat | NVD | cve.org | |
|---|---|---|---|
| Base Score | 5.7 | 5.5 | 7.8 |
| Attack Vector | Local | Local | Local |
| Attack Complexity | High | Low | Low |
| Privileges Required | High | Low | Low |
| User Interaction | None | None | None |
| Scope | Unchanged | Unchanged | Unchanged |
| Confidentiality | None | None | High |
| Integrity Impact | High | None | High |
| Availability Impact | High | High | High |
Vector
Red Hat: CVSS:3.1/AV:L/AC:H/PR:H/UI:N/S:U/C:N/I:H/A:H
NVD: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
cve.org: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Understanding the Weakness (CWE)
Integrity,Confidentiality,Other
Technical Impact: Modify Application Data; Read Application Data; Alter Execution Logic
If access to a shared resource is not synchronized, then the resource may not be in a state that is expected by the product. This might lead to unexpected or insecure behaviors, especially if an attacker can influence the shared resource.
Frequently Asked Questions
Not sure what something means? Check out our Security Glossary.
Want to get errata notifications? Sign up here.