Stop chasing CVEs. Learn to permanently check, patch, and mitigate Linux kernel vulnerabilities using real automation scripts. Includes LKRG setup and a book that teaches you to build tools for any future zero-day.
We saw a security advisory released today for Rocky Linux (RLSA-2026:9135) regarding the kernel-rt package. While this specific patch is critical for real-time systems, treating security as a "alarm and update" cycle is exhausting.
If you are running a Rocky Linux server, you need a workflow that works for any CVE, not just this week’s. Below is your evergreen game plan to assess risk, apply fixes non-disruptively, and--most importantly--build the skills to solve the vulnerabilities that don't have a patch yet.
1. How to check if you are vulnerable (Right Now)
Don't just read the news; check your actual system. Use the Rocky Linux toolchain to verify if your specific kernel version is affected.
# Check your current kernel version uname -r # Query the RPM changelog for the specific CVE ID rpm -q --changelog kernel-core | grep -i CVE-2026-9135 # Use DNF to see if the fix is available in the repo dnf updateinfo info --cve CVE-2026-9135
If grep returns nothing, your system is vulnerable. If DNF shows an update, you are safe.
2. Automation: The "Fix It Forever" Script
Stop updating servers manually. This bash script checks for this specific CVE and applies the mitigation. It is compatible with RHEL, Rocky, AlmaLinux, and Fedora.
Save this as sec-fix.sh:
#!/bin/bash # Evergreen security patcher for Rocky Linux echo "🔒 Checking for kernel vulnerability CVE-2026-9135..." if rpm -q --changelog kernel-core | grep -q "CVE-2026-9135"; then echo "✅ System is already patched." else echo "⚠️ Vulnerability detected. Applying fix..." # Standard fix: update the kernel sudo dnf update kernel kernel-modules -y # Alternative: If you can't reboot right now, load LKRG echo "🛡️ Applying runtime kernel guard as alternative mitigation..." sudo dnf install lkrg -y sudo systemctl enable --now lkrg echo "❗ A full reboot is still required to finalize the kernel update." fi
3. Can't update right now? Do this instead.
# For Rocky Linux 9/10 sudo dnf install epel-release sudo dnf install lkrg sudo systemctl enable --now lkrg

Nenhum comentário:
Postar um comentário