New OVSwrap Flaw Lets Unprivileged Users Corrupt Kernel Credentials and Gain Root

A newly disclosed Linux kernel vulnerability, dubbed OVSwrap (CVE-2026-64531), allows unprivileged local users to escalate to full root access by exploiting an integer wraparound bug in the Open vSwitch kernel module.

Security researcher Asim Viladi Oglu Manizada disclosed the flaw on July 28, 2026, following a coordinated embargo with the Linux kernel security team and distro maintainers, after reporting it privately on June 19.

OVSwrap stems from a length-field wraparound when Open vSwitch converts userspace flow actions into internal Netlink attributes.

New OVSwrap Flaw

While the overall internal action stream may legitimately exceed 64 KiB, individual nested attributes, such as a CLONE action that wraps many conntrack sub-actions, must still fit within the 16-bit nla_len field.

Prior to the fix, OVS never enforced that inner limit. By submitting a crafted CLONE action containing hundreds of small conntrack actions, an attacker can push a single nested attribute past 65,535 bytes, causing the stored length to wrap to a small value.

The kernel parser then resumes reading from the middle of attacker-controlled conntrack data, specifically CT labels and timeout names, as if it were the start of a new, independent action.

Because the wraparound lands parsing at a deterministic offset inside data the attacker fully controls, no heap grooming is required, which is unusual for a memory-corruption bug.

The exploit unfolds in clear stages: a fake OUTPUT action is planted at the wrapped offset with an inflated declared length, causing OVS to leak adjacent kernel data, including a real FTP conntrack-helper pointer, back to userspace when the flow is dumped.

That leak is turned into an arbitrary-address read primitive via a forged tunnel SET action, allowing the attacker to resolve the kernel’s randomized base address and locate other structures.

The same forged tunnel destination is abused again during action teardown, since freeing it triggers dst_release, giving the attacker a constrained decrement primitive against an arbitrary kernel word.

Repeated decrements target a target process’s credential structure, zeroing out fsuid and fsgid or wrapping capability bits on older kernels, ultimately yielding root on the host.

Triggering the bug requires only CAP_NET_ADMIN inside an attacker-controlled network namespace, achievable with a single unshare command on systems with unprivileged user namespaces enabled, and no pre-existing OVS bridge or ovs-vswitchd process is needed.

Asim Viladi Oglu Manizada stated that many distributions auto-load the OVS kernel module via Generic Netlink family aliases, so the module need not be pre-loaded for the attack to succeed.

The underlying unsafe length assignment had existed for 13 years but became exploitable only after a March 2025 commit removed an older 32 KiB safety cap on generated action streams.

Confirmed affected kernel series include 5.15.180 through 211, 6.1.132 through 177, 6.6.84 through 144, 6.12.20 through 96, and 6.18.0 through 39, with fixes in 5.15.212, 6.1.178, 6.6.145, 6.12.97, and 6.18.40. Several end-of-life series, including 6.13, 6.14 through 6.17, 6.19, and 7.0, have no upstream backport.

Testing showed most major distributions, including Debian, Fedora, Ubuntu, Arch, Rocky Linux, AlmaLinux, and Amazon Linux, are exploitable by default or after minor configuration tweaks.

Administrators should apply the upstream kernel fix immediately. Where patching is not feasible, recommended stopgaps include blacklisting the openvswitch module if unused, disabling unprivileged user namespaces, or deploying the emergency BPF guard the researcher released alongside the proof-of-concept exploit.

Detect, investigate, and respond faster with in-browser data inspection from ANY.RUN. Gain complete phishing visibility to strengthen your SOC and reduce MTTR   

Tamilselvan
Tamilselvanhttps://cyberpress.org/
Tamilselvan is an Investigative cybersecurity journalist dedicated to breaking stories on ransomware cartels, data breaches, and state-sponsored espionage.

Trending News

Related Stories