
DaemonSet с реализацией временной меры для митигации уязвимости Copy Fail (CVE-2026-31431)
DaemonSets for fixing vulnerabilities of the Copy Fail family on all worker nodes of MKS clusters.
CVE ID: CVE-2026-31431
CVE Link: https://nvd.nist.gov/vuln/detail/CVE-2026-31431
Attack Vector and Severity Level according to CVSS v.3.1:
Score: 7.8 HIGH
Vector: CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
Brief Description:
Copy Fail (CVE-2026-31431) is a logical vulnerability in the cryptographic API subsystem of the Linux kernel that allows a regular system user to gain superuser (root) privileges. The PoC works on all major Linux distributions released since 2017 and up to the patch release.
Features:
The DaemonSet runs a container on each worker node of the cluster:
/etc/modprobe.d/disable-algif.confrmmod algif_aead if the module is loadedwget https://raw.githubusercontent.com/selectel/mks-copy-fail-mitigation/refs/heads/main/copy-fail-mitigation-daemonset.yaml
Or clone the repository:
git clone https://github.com/selectel/mks-copy-fail-mitigation.git
cd mks-copy-fail-mitigation
kubectl apply -f copy-fail-mitigation-daemonset.yaml
# Check DaemonSet status
kubectl get daemonset -n kube-system cve-2026-31431-mitigation
# Get list of pods
kubectl -n kube-system get pods -l app=cve-2026-31431-mitigation -o wide
# Logs of initContainer
kubectl -n kube-system logs -l app=cve-2026-31431-mitigation -c mitigation
kubectl delete -f copy-fail-mitigation-daemonset.yaml
CVE ID: CVE-2026-43284, CVE-2026-43500
CopyFail2: without a separate CVE ID
CVE Links:
Brief Description:
Dirty Flag / CopyFail2 — vulnerabilities in the IPsec subsystem of the Linux kernel (modules esp4, esp6 and rxrpc), allowing a local unprivileged user to gain superuser (root) privileges.
Features:
The DaemonSet runs a container on each worker node of the cluster:
lsmod whether the modules esp4, esp6, rxrpc are loaded/etc/modprobe.d/disable-esp-rxrpc.conf with rules install esp4/esp6/rxrpc /bin/falsermmod for each module if it is loadedlsmodwget https://raw.githubusercontent.com/selectel/mks-copy-fail-mitigation/refs/heads/main/dirty-flag-copyfail2-mitigation-daemonset.yaml
Or clone the repository:
git clone https://github.com/selectel/mks-copy-fail-mitigation.git
cd mks-copy-fail-mitigation
kubectl apply -f dirty-flag-copyfail2-mitigation-daemonset.yaml
# Check DaemonSet status
kubectl get daemonset -n kube-system dirty-flag-copyfail2-mitigation
# Get list of pods
kubectl -n kube-system get pods -l app=dirty-flag-copyfail2-mitigation -o wide
# Logs of initContainer
kubectl -n kube-system logs -l app=dirty-flag-copyfail2-mitigation -c mitigation
kubectl delete -f dirty-flag-copyfail2-mitigation-daemonset.yaml