HIGH 7.8

CVE-2026-52927: Linux Kernel netfilter ebtables Out-of-Bounds Read Vulnerability

A flaw in the Linux kernel's netfilter ebtables subsystem allows unprivileged local users to read memory beyond intended boundaries. The vulnerability stems from insufficient validation of user-supplied data structures when converting 32-bit ebtables extensions to kernel-native format. An attacker with local access can craft malformed extension data with undersized match or target structures, triggering out-of-bounds memory reads that leak kernel information or potentially crash the system.

Source data · NVD / CISA · public domain

CVSS
3.1 · 7.8 HIGH · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Weaknesses (CWE)
CWE-125
Affected products
6 configuration(s)
Published / Modified
2026-06-24 / 2026-07-08

NVD description (verbatim)

In the Linux kernel, the following vulnerability has been resolved: netfilter: ebtables: fix OOB read in compat_mtw_from_user Luxiao Xu says: The function compat_mtw_from_user() converts ebtables extensions from 32-bit user structures to kernel native structures. However, it lacks proper validation of the user-supplied match_size/target_size. When certain extensions are processed, the kernel-side translation logic may perform memory accesses based on the extension's expected size. If the user provides a size smaller than what the extension requires, it results in an out-of-bounds read as reported by KASAN. This fix introduces a check to ensure match_size is at least as large as the extension's required compatsize. This covers matches, watchers, and targets, while maintaining compatibility with standard targets. AFAIU this is relevant for matches that need to go though match->compat_from_user() call. Those that use plain memcpy with the user-provided size are ok because the caller checks that size vs the start of the next rule entry offset (which itself is checked vs. total size copied from userspace). The ->compat_from_user() callbacks assume they can read compatsize bytes, so they need this extra check. Based on an earlier patch from Luxiao Xu.

8 reference(s) · View on NVD →

SEC.co analysis · AI-assisted, reviewed against source

Technical summary

CVE-2026-52927 is an out-of-bounds read vulnerability in the compat_mtw_from_user() function within the Linux kernel's netfilter ebtables compatibility layer. The function converts 32-bit user-space ebtables extension structures to 64-bit kernel structures without properly validating that user-supplied match_size and target_size fields meet the minimum requirements of the extension being processed. Extensions that implement compat_from_user() callbacks expect to read a specific number of bytes (compatsize); when a user provides a smaller size value, the callback reads beyond the allocated buffer. The vulnerability affects matches, watchers, and targets that rely on these callbacks. Standard targets using plain memcpy are unaffected because the caller validates size against rule boundary offsets.

Business impact

This vulnerability allows local privilege escalation and information disclosure on systems running affected Linux kernels. An unprivileged local attacker can trigger kernel memory leaks, potentially exposing sensitive data such as cryptographic keys, addresses used for ASLR bypass, or other kernel-resident secrets. Additionally, out-of-bounds reads can cause kernel panics, enabling a local denial-of-service attack. Organizations relying on Linux-based firewalls, container hosts, or multi-tenant systems should treat this as a material risk to confidentiality and availability.

Affected systems

The Linux kernel is affected. The vulnerability resides in the netfilter ebtables subsystem, which is typically enabled on systems using ebtables for bridging firewall rules. This includes container hosts (Docker, Kubernetes), virtual machine hypervisors, and dedicated firewall appliances running Linux. Any system with CONFIG_BRIDGE_NETFILTER and ebtables module loaded or built-in is potentially vulnerable. Verify your specific kernel version and ebtables configuration against the official Linux security advisories.

Exploitability

Exploitation requires local code execution privileges (non-root user context). An attacker must be able to run userspace applications and invoke ebtables rule-setting operations via netlink sockets, typically available to unprivileged processes on permissive systems. No network interaction, special hardware, or kernel debugging symbols are necessary. The attack is deterministic and does not depend on timing or luck. The CVSS vector (AV:L/AC:L/PR:L) reflects this local, low-complexity attack surface. The vulnerability is not currently tracked in the CISA KEV catalog, but its ease of exploitation and high impact make it a priority for patching.

Remediation

Apply the Linux kernel security patch that introduces validation checks in compat_mtw_from_user() to ensure user-supplied match_size and target_size fields are at least as large as the extension's required compatsize. Patches have been merged into the upstream Linux kernel; verify the specific version available for your distribution. As an interim mitigation on systems where ebtables is not in use, disable the netfilter bridge module (modprobe -r bridge_netfilter) and rebuild the kernel without CONFIG_BRIDGE_NETFILTER if feasible. Restrict local user access where possible.

Patch guidance

Check the official Linux kernel stable branch advisories and your Linux distribution's security bulletins for patched versions. Patches are available in the upstream Linux kernel repository following the CVE publication date (June 24, 2026). Major distributions (Red Hat, Debian, Ubuntu, SUSE) will issue kernel updates; prioritize applying these as soon as they are available for your kernel branch. Test patches in a non-production environment first, as kernel updates require system reboots. Verify that the patch addresses the compat_mtw_from_user() validation logic before deploying.

Detection guidance

Monitor kernel logs for KASAN (Kernel Address Sanitizer) warnings or out-of-bounds read messages if debugging is enabled. In production environments without KASAN, detect anomalous ebtables rule additions via auditd rules tracking netlink ebtables operations (look for NETLINK_NETFILTER messages with rule-setting syscalls). Correlate local process execution with privilege escalation attempts shortly after rule modifications. Host-based intrusion detection systems (HIDS) can flag suspicious local process behavior following kernel memory access violations. Network-based detection is not applicable; focus on endpoint instrumentation.

Why prioritize this

HIGH severity due to local privilege escalation potential, high impact (confidentiality, integrity, availability), low attack complexity, and broad applicability to Linux systems using ebtables. Although KEV status is not active, the ease of exploitation and direct memory safety violation warrant immediate patching. Container and virtualization platforms are particularly at risk because unprivileged container users may access ebtables interfaces. Organizations operating multi-tenant infrastructure should treat this as critical.

Risk score, explained

CVSS 3.1 score of 7.8 (HIGH) reflects: (1) Local attack vector requiring login but no special privileges beyond standard user context; (2) Low attack complexity—no environmental conditions or user interaction needed; (3) High impact across confidentiality (kernel memory disclosure), integrity (potential state corruption), and availability (kernel panic). The score appropriately captures the real-world threat when systems permit unprivileged users local access, which is common in container, VM, and shared hosting scenarios.

Frequently asked questions

Does this vulnerability require root privileges to exploit?

No. An unprivileged local user (standard login account) can trigger the vulnerability by invoking ebtables operations via netlink sockets. This is a significant risk in container, multi-tenant, and shared system environments where untrusted users have local shell access.

Can this vulnerability be exploited remotely over the network?

No. The vulnerability is strictly local. An attacker must have code execution on the target system itself. However, in cloud and container deployments, this may be easier to achieve than in traditional data centers.

Which Linux distributions are affected?

Any distribution shipping a Linux kernel version with the unfixed compat_mtw_from_user() function is affected, provided ebtables (netfilter bridge) is enabled. Check your distribution's kernel version against official CVE advisories from Red Hat, Debian, Ubuntu, SUSE, and other vendors for specific patched releases.

What is the practical impact if this vulnerability is exploited?

An attacker can leak sensitive kernel memory (addresses, keys) for privilege escalation or further exploitation, or trigger a kernel panic causing denial of service. In container scenarios, this could allow a container to compromise the host or other containers sharing the kernel.

This analysis is provided for informational purposes and reflects publicly available information as of the CVE publication date. Exploit code is not provided. Organizations must verify patch availability and compatibility with their specific kernel versions and distributions through official vendor advisories before deployment. Testing in non-production environments is strongly recommended. SEC.co does not warrant the accuracy of third-party patch version numbers or advisory timelines; consult official Linux distribution security pages for authoritative guidance. Source: NVD (public-domain), retrieved 2026-07-30. Analysis generated by SEC.co (claude-haiku-4-5).