7.8
HIGH CVSS 3.1
CVE-2026-52927
netfilter: ebtables: fix OOB read in compat_mtw_from_user
Description

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.

INFO

Published Date :

June 24, 2026, 8:16 a.m.

Last Modified :

July 8, 2026, 3:28 p.m.

Remotely Exploit :

No

Source :

416baaa9-dc9f-4396-8d5f-8c081fb06d67
Affected Products

The following products are affected by CVE-2026-52927 vulnerability. Even if cvefeed.io is aware of the exact versions of the products that are affected, the information is not represented in the table below.

ID Vendor Product Action
1 Linux linux_kernel
CVSS Scores
The Common Vulnerability Scoring System is a standardized framework for assessing the severity of vulnerabilities in software and systems. We collect and displays CVSS scores from various sources for each CVE.
Score Version Severity Vector Exploitability Score Impact Score Source
CVSS 3.1 HIGH 416baaa9-dc9f-4396-8d5f-8c081fb06d67
Solution
Update the Linux kernel to fix an out-of-bounds read in ebtables compat_mtw_from_user.
  • Apply the Linux kernel update.
  • Ensure proper validation of user-supplied sizes.
  • Review compat_from_user callbacks for size checks.
CWE - Common Weakness Enumeration

While CVE identifies specific instances of vulnerabilities, CWE categorizes the common flaws or weaknesses that can lead to vulnerabilities. CVE-2026-52927 is associated with the following CWEs:

Common Attack Pattern Enumeration and Classification (CAPEC)

Common Attack Pattern Enumeration and Classification (CAPEC) stores attack patterns, which are descriptions of the common attributes and approaches employed by adversaries to exploit the CVE-2026-52927 weaknesses.

We scan GitHub repositories to detect new proof-of-concept exploits. Following list is a collection of public exploits and proof-of-concepts, which have been published on GitHub (sorted by the most recently updated).

Results are limited to the first 15 repositories due to potential performance issues.

The following list is the news that have been mention CVE-2026-52927 vulnerability anywhere in the article.

The following table lists the changes that have been made to the CVE-2026-52927 vulnerability over time.

Vulnerability history details can be useful for understanding the evolution of a vulnerability, and for identifying the most recent changes that may impact the vulnerability's severity, exploitability, or other characteristics.

  • Initial Analysis by [email protected]

    Jul. 08, 2026

    Action Type Old Value New Value
    Added CWE CWE-125
    Added CPE Configuration OR *cpe:2.3:o:linux:linux_kernel:7.1:rc1:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc2:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc3:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:7.1:rc4:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.16 up to (excluding) 6.1.176 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.13 up to (excluding) 6.18.35 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.2 up to (excluding) 6.6.143 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.7 up to (excluding) 6.12.93 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 5.11 up to (excluding) 5.15.210 *cpe:2.3:o:linux:linux_kernel:7.1:rc5:*:*:*:*:*:* *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 6.19 up to (excluding) 7.0.12 *cpe:2.3:o:linux:linux_kernel:*:*:*:*:*:*:*:* versions from (including) 2.6.34 up to (excluding) 5.10.259
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/21af4c030567d2e6c89bb927bc18b51fba52a400 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/7ad0e463fc7eafae2141cc38054264636f8b3e94 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/a27cb7325a6c69970041c7f8541fafed5a1ea3ec Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/bf8e8eac7ede51dc318e06acef5a896dcbba7595 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/d7a8fb6f10d55a1c37b0bf8c20cca24dffd76e00 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/dad9ebf8107955bb54bd3f9cf22591b6ff37bac1 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/f438d1786d657d57790c5d138d6db3fc9fdac392 Types: Patch
    Added Reference Type kernel.org: https://git.kernel.org/stable/c/fcc4c043d137e7f1de4673dba1f3116e45377c67 Types: Patch
  • CVE Modified by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 28, 2026

    Action Type Old Value New Value
    Added CVSS V3.1 AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
  • New CVE Received by 416baaa9-dc9f-4396-8d5f-8c081fb06d67

    Jun. 24, 2026

    Action Type Old Value New Value
    Added Affected [{'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'd7a8fb6f10d55a1c37b0bf8c20cca24dffd76e00', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': '21af4c030567d2e6c89bb927bc18b51fba52a400', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'dad9ebf8107955bb54bd3f9cf22591b6ff37bac1', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'a27cb7325a6c69970041c7f8541fafed5a1ea3ec', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': '7ad0e463fc7eafae2141cc38054264636f8b3e94', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'bf8e8eac7ede51dc318e06acef5a896dcbba7595', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'fcc4c043d137e7f1de4673dba1f3116e45377c67', 'versionType': 'git'}, {'status': 'affected', 'version': '81e675c227ec60a0bdcbb547dc530ebee23ff931', 'lessThan': 'f438d1786d657d57790c5d138d6db3fc9fdac392', 'versionType': 'git'}], 'programFiles': ['net/bridge/netfilter/ebtables.c'], 'defaultStatus': 'unaffected'}, {'repo': 'https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git', 'vendor': 'Linux', 'product': 'Linux', 'versions': [{'status': 'affected', 'version': '2.6.34'}, {'status': 'unaffected', 'version': '0', 'lessThan': '2.6.34', 'versionType': 'semver'}, {'status': 'unaffected', 'version': '5.10.259', 'versionType': 'semver', 'lessThanOrEqual': '5.10.*'}, {'status': 'unaffected', 'version': '5.15.210', 'versionType': 'semver', 'lessThanOrEqual': '5.15.*'}, {'status': 'unaffected', 'version': '6.1.176', 'versionType': 'semver', 'lessThanOrEqual': '6.1.*'}, {'status': 'unaffected', 'version': '6.6.143', 'versionType': 'semver', 'lessThanOrEqual': '6.6.*'}, {'status': 'unaffected', 'version': '6.12.93', 'versionType': 'semver', 'lessThanOrEqual': '6.12.*'}, {'status': 'unaffected', 'version': '6.18.35', 'versionType': 'semver', 'lessThanOrEqual': '6.18.*'}, {'status': 'unaffected', 'version': '7.0.12', 'versionType': 'semver', 'lessThanOrEqual': '7.0.*'}, {'status': 'unaffected', 'version': '7.1', 'versionType': 'original_commit_for_fix', 'lessThanOrEqual': '*'}], 'programFiles': ['net/bridge/netfilter/ebtables.c'], 'defaultStatus': 'affected'}]
    Added Description 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.
    Added Reference https://git.kernel.org/stable/c/21af4c030567d2e6c89bb927bc18b51fba52a400
    Added Reference https://git.kernel.org/stable/c/7ad0e463fc7eafae2141cc38054264636f8b3e94
    Added Reference https://git.kernel.org/stable/c/a27cb7325a6c69970041c7f8541fafed5a1ea3ec
    Added Reference https://git.kernel.org/stable/c/bf8e8eac7ede51dc318e06acef5a896dcbba7595
    Added Reference https://git.kernel.org/stable/c/d7a8fb6f10d55a1c37b0bf8c20cca24dffd76e00
    Added Reference https://git.kernel.org/stable/c/dad9ebf8107955bb54bd3f9cf22591b6ff37bac1
    Added Reference https://git.kernel.org/stable/c/f438d1786d657d57790c5d138d6db3fc9fdac392
    Added Reference https://git.kernel.org/stable/c/fcc4c043d137e7f1de4673dba1f3116e45377c67
EPSS is a daily estimate of the probability of exploitation activity being observed over the next 30 days. Following chart shows the EPSS score history of the vulnerability.