Skip to main content

Linux Kernel CVE-2026-45840

| EUVDEUVD-2026-32166 MEDIUM
2026-05-27 416baaa9-dc9f-4396-8d5f-8c081fb06d67 GHSA-gcc5-89x5-vqqc
5.5
CVSS 3.1 · NVD
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Gain local shell access
  2. Delivery
    Run unshare -Urn to obtain user namespace CAP_NET_ADMIN
  3. Exploit
    Create or reference OVS vport via netlink
  4. Install
    Send SET command with oversized upcall PID array
  5. C2
    Overflow reply skb in ovs_vport_cmd_set
  6. Execute
    BUG_ON triggers kernel panic
  7. Impact
    Host crash (DoS)

Vulnerability Assessment

Exploitation Conditions

Exploitation requires a local shell account on the target system. On systems with unprivileged user namespaces enabled - Ubuntu 20.04/22.04/24.04 defaults, and many container host configurations - any local unprivileged user can exploit this by running unshare -Urn to gain CAP_NET_ADMIN within a newly created user namespace, because OVS vport mutation operations use GENL_UNS_ADMIN_PERM which respects namespace-scoped capabilities. The openvswitch kernel module must be present and loadable (it is included in standard Ubuntu kernel packages and loaded on demand). On systems where unprivileged user namespace creation is disabled (kernel.unprivileged_userns_clone=0 on Ubuntu, or user.max_user_namespaces=0 on upstream kernels), exploitation is limited to users who already hold CAP_NET_ADMIN in the host network namespace - typically root or privileged service accounts - substantially raising the effective bar. There is no remote attack vector; physical or authenticated remote shell access is a hard prerequisite.

Impact

CVSS 3.1 scores this 5.5 (Medium) at AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H, which accurately captures the primary scenario: any local user on an Ubuntu-default system can crash the kernel with no race conditions, no heap spray, and no special timing. EPSS at 0.02% (5th percentile) signals very low current exploitation probability, and the vulnerability is not listed in CISA KEV. Despite the modest CVSS score, the real-world risk is asymmetric by configuration: on systems with unprivileged user namespaces enabled (Ubuntu, some container hosts), exploitation is trivial and the impact is a full kernel panic (complete availability loss). On hardened systems where user.max_user_namespaces=0 or kernel.unprivileged_userns_clone=0 is enforced, an attacker would need genuine CAP_NET_ADMIN in the host network namespace, effectively raising the bar to PR:H. The commit trace references a file named 'poc', confirming the crash was reproduced during development, but no independently published exploit tool has been confirmed. The lack of confidentiality or integrity impact limits this to a DoS primitive - it cannot be chained for code execution without further primitives.

Exploit ScenarioDerived

A local user on an Ubuntu 22.04 host with default kernel settings runs unshare -Urn to create a new user namespace, obtaining CAP_NET_ADMIN within that namespace, then sends a crafted GENL_CMD_SET_DP netlink message to the openvswitch family that sets a upcall PID array containing significantly more than nr_cpu_ids entries. When the kernel attempts to serialize the reply, nla_put() overflows the pre-allocated NLMSG_DEFAULT_SIZE skb, returns -EMSGSIZE, and BUG_ON fires in ovs_vport_cmd_set(), triggering an immediate kernel panic and crashing the entire host. No independently published exploit tool has been confirmed at time of analysis, though the development PoC (Comm: poc in the crash trace) confirms reliable reproduction.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 26, 2026

Kernel panic in the Linux kernel's Open vSwitch (openvswitch) subsystem allows a low-privileged local user to crash the host kernel on Ubuntu-default and similar configurations. The vport netlink reply handler pre-allocates a fixed-size buffer but lacks an upper-bound check on the upcall PID array size, causing nla_put() to return -EMSGSIZE and BUG_ON(err < 0) to fire in ovs_vport_cmd_set(), triggering a kernel panic. On systems with unprivileged user namespaces enabled (Ubuntu default), any local user can reach this path via unshare -Urn without requiring elevated privileges. No public exploit has been identified at time of analysis, and EPSS at 0.02% reflects low current exploitation probability.

RemediationAI

Upgrade to a patched kernel release: Linux 6.6.141, 6.12.91, 6.18.33, 7.0.10, or 7.1-rc1 or later, with fixes available at https://git.kernel.org/stable/c/1d6c02b86329883aa467a3a61f8d34369db73a2f and related stable backports. Distribution-specific updates from Ubuntu, Red Hat, SUSE, and Debian should be monitored for downstream packaging of these stable fixes. As a compensating control on Ubuntu, restrict unprivileged user namespaces via sysctl -w kernel.unprivileged_userns_clone=0 (Ubuntu-specific) or sysctl -w user.max_user_namespaces=0 (upstream Linux); note that this breaks browser sandboxing (Chrome, Firefox) and container runtimes relying on user namespaces, so evaluate application compatibility before applying. Alternatively, on hosts that do not require Open vSwitch, blocklisting the openvswitch kernel module (echo 'blacklist openvswitch' >> /etc/modprobe.d/ovs-block.conf && update-initramfs -u) prevents the vulnerable code path from being reached entirely, with the trade-off of disabling all OVS-based virtual switching and SDN functionality.

Affected VersionsENISA

Linux patch: 0
Linux 5cd667b0a4567048bb555927d6ee564f4e5620a9 <f9ef3db77a383d66847fd082c2b437d8ae4d9c63
Linux patch: 6.12.91
Linux 5cd667b0a4567048bb555927d6ee564f4e5620a9 <fa6e90bc443bed8dc0d55bc5ea5b27ffdfe37704
Linux patch: 7.1-rc1
Linux 3.17
Linux 5cd667b0a4567048bb555927d6ee564f4e5620a9 <2091c6aa0df6aba47deb5c8ab232b1cb60af3519
Linux 5cd667b0a4567048bb555927d6ee564f4e5620a9 <f99ac36b5d7c719d08a69fcdecce40f78a874e15
Linux patch: 6.6.141
Linux 5cd667b0a4567048bb555927d6ee564f4e5620a9 <1d6c02b86329883aa467a3a61f8d34369db73a2f
Linux patch: 7.0.10
Linux patch: 6.18.33

Affected Packages

euvd linux no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

Open vSwitch (OVS) in the Linux kernel uses Generic Netlink (genetlink) families for vport configuration, including setting the upcall PID array via ovs_vport_set_upcall_portids(). This function accepted any non-zero multiple of sizeof(u32) without an upper bound, allowing arbitrarily large PID arrays. The reply path in ovs_vport_cmd_get() and ovs_vport_cmd_set() pre-allocated skb space using nlmsg_new(NLMSG_DEFAULT_SIZE, ...) - a fixed allocation - then attempted to serialize the full PID array via ovs_vport_get_upcall_portids(). When the PID count exceeded the buffer capacity, nla_put() returned -EMSGSIZE, and the unchecked BUG_ON(err < 0) in ovs_vport_cmd_set() at net/openvswitch/datapath.c:2414 caused a fatal kernel exception. CWE was not formally assigned by NVD, but the root cause is an incorrect buffer size calculation (analogous to CWE-131) combined with a missing input bound check. The fix caps PID count to nr_cpu_ids (matching the per-CPU dispatch cap already in use on the datapath side) and pre-computes the worst-case reply size in ovs_vport_cmd_msg_size(). All affected systems are identified by CPE cpe:2.3:o:linux:linux_kernel:* from version 3.17 onward, the commit (5cd667b0a4567048bb555927d6ee564f4e5620a9) that introduced upcall PID array support.

Know when the next one hits your stack

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

NVD PRIMARY 5.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
vuln.today AI 5.5 MEDIUM

AV:L as exploitation requires a local shell; PR:L because Ubuntu-default unprivileged user namespaces allow any local user to reach CAP_NET_ADMIN via unshare; A:H for kernel panic causing total host availability loss; C:N and I:N as the only impact is a crash.

3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:N/VC:N/VI:N/VA:H/SC:N/SI:N/SA:N
SUSE 6.5 MEDIUM
AV:L/AC:L/PR:L/UI:N/S:C/C:N/I:N/A:H
Red Hat 7.0 MEDIUM

Primary rating from NVD.

CVSS VectorNVD

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

4
CVSS changed
Jun 26, 2026 - 19:07 NVD
5.5 (MEDIUM)
Patch available
May 27, 2026 - 19:46 EUVD
CVE Published
May 27, 2026 - 11:16 nvd
UNKNOWN (no severity yet)
CVE Published
May 27, 2026 - 11:16 nvd
MEDIUM 5.5

DescriptionNVD

In the Linux kernel, the following vulnerability has been resolved:

openvswitch: cap upcall PID array size and pre-size vport replies

The vport netlink reply helpers allocate a fixed-size skb with nlmsg_new(NLMSG_DEFAULT_SIZE, ...) but serialize the full upcall PID array via ovs_vport_get_upcall_portids(). Since ovs_vport_set_upcall_portids() accepts any non-zero multiple of sizeof(u32) with no upper bound, a CAP_NET_ADMIN user can install a PID array large enough to overflow the reply buffer, causing nla_put() to fail with -EMSGSIZE and hitting BUG_ON(err < 0). On systems with unprivileged user namespaces enabled (e.g., Ubuntu default), this is reachable via unshare -Urn since OVS vport mutation operations use GENL_UNS_ADMIN_PERM.

kernel BUG at net/openvswitch/datapath.c:2414! Oops: invalid opcode: 0000 [#1] SMP KASAN NOPTI CPU: 1 UID: 0 PID: 65 Comm: poc Not tainted 7.0.0-rc7-00195-geb216e422044 #1 RIP: 0010:ovs_vport_cmd_set+0x34c/0x400 Call Trace: <TASK> genl_family_rcv_msg_doit (net/netlink/genetlink.c:1116) genl_rcv_msg (net/netlink/genetlink.c:1194) netlink_rcv_skb (net/netlink/af_netlink.c:2550) genl_rcv (net/netlink/genetlink.c:1219) netlink_unicast (net/netlink/af_netlink.c:1344) netlink_sendmsg (net/netlink/af_netlink.c:1894) __sys_sendto (net/socket.c:2206) __x64_sys_sendto (net/socket.c:2209) do_syscall_64 (arch/x86/entry/syscall_64.c:63) entry_SYSCALL_64_after_hwframe (arch/x86/entry/entry_64.S:130) </TASK> Kernel panic - not syncing: Fatal exception

Reject attempts to set more PIDs than nr_cpu_ids in ovs_vport_set_upcall_portids(), and pre-compute the worst-case reply size in ovs_vport_cmd_msg_size() based on that bound, similar to the existing ovs_dp_cmd_msg_size(). nr_cpu_ids matches the cap already used by the per-CPU dispatch configuration on the datapath side (ovs_dp_cmd_fill_info() serialises at most nr_cpu_ids PIDs), so the two sides stay consistent.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Prevalence
Ubiquitous
Linux kernel underpins the vast majority of server, cloud, and container deployments globally.
Threat Intel
1
1 sources
Data Quality
7 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.0%
Patch available Yes
Active threat Yes
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
High

Priority Score

38
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +28
PoC: 0
Weaponized: 0
Threat intel: +10
Gov advisory: 0

Attack Technique

A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.

Vendor StatusVendor

SUSE

Severity: Moderate
Product Status
openSUSE Tumbleweed Fixed
SUSE Linux Enterprise High Availability Extension 15 SP7 Affected
SUSE Linux Enterprise Module for Basesystem 15 SP7 Affected
SUSE Linux Enterprise Server 15 SP7 Affected
SUSE Linux Enterprise Desktop 15 SP7 Affected

Threat IntelligenceMISP

CISA Advisories
Sources: Microsoft MSRC, CISA (public domain)

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy