Menu

Star on GitHub · 3.2k

CVE-2026-45840

5.5 · MEDIUM

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 wit…

Published May 27, 2026EPSS 0.13%

Overview

CVE-2026-45840 is a medium-severity vulnerability. It was published on May 27, 2026 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

Technical description

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_r

Remediation

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

Frequently asked questions

What is CVE-2026-45840?

CVE-2026-45840 is a medium-severity vulnerability. It was published on May 27, 2026 and has a CVSS 3.1 base score of 5.5 (MEDIUM).

How severe is CVE-2026-45840?

This vulnerability has a CVSS 3.1 base score of 5.5, rated MEDIUM. It requires local or adjacent network access to exploit. Some level of privileges is required for exploitation.

How do I fix or remediate CVE-2026-45840?

Check the references section for vendor advisories, patches, and mitigation guidance. If immediate patching is not possible, review the CVSS vector to understand the attack surface and apply compensating controls such as network segmentation or access restrictions.

How can CyberStrike help with CVE-2026-45840?

CyberStrike is an open-source, AI-augmented pentesting engine. Rather than flag a version number, it tests whether an issue like CVE-2026-45840 is actually reachable in your own applications and APIs, then verifies each finding before reporting it. That tells you if the weakness is a real, exploitable risk in your environment or a false positive you can safely deprioritize.

Related MEDIUM CVEs from 2026

View all