
Framework modular Bash para auditar CVE-2026-31431 (CopyFail) y CVEs relacionados del kernel Linux en distros RPM-based (AlmaLinux, Rocky, CentOS Stream 8/9/10)
| CVE | Subsystem | Type | CVSS | Severity |
|---|
| CVE-2026-31431 (CopyFail) | crypto/algif_aead | LPE | 7.8 | CRITICAL |
| CVE-2026-31533 | net/tls | Remote UAF | 9.8 | CRITICAL |
| CVE-2026-31508 | net/openvswitch | OVS LPE | 8.8 | HIGH |
| CVE-2026-23231 | netfilter/nf_tables | UAF | 7.0 | HIGH |
| CVE-2026-23183 | cgroup/dmem | NULL deref DoS | 6.2 | MEDIUM |
| CVE-2025-71238 | scsi/qla2xxx | double-free | 7.0 | HIGH |
kernelsec/
├── kernelsec-main.sh # Main orchestrator
├── lib/
│ ├── 00-globals.sh # Constants, flags, CVE DB
│ ├── 01-logger.sh # Structured JSONL logger
│ ├── 02-detect.sh # Read-only detection
│ ├── 03-impact.sh # Impact analysis on apps
│ └── 04-remediate.sh # Guided remediation
├── tests/
│ ├── test-logger.sh
│ ├── test-detect.sh
│ └── test-remediate.sh
└── reports/
Audit (no root) → Impact analysis (root+lsof) → Remediation (root+confirmation)
reboot under no circumstances--assumeno (dry-run) firsteval with external inputrm -rf without prior validation of the non-empty pathSee BATCH_PLAN.md for the complete 6-batch roadmap.
# Audit (no root)
bash kernelsec/kernelsec-main.sh --audit
# Full dry-run
bash kernelsec/kernelsec-main.sh --dry-run --verbose
# Guided remediation (requires root)
sudo bash kernelsec/kernelsec-main.sh --remediate --cve CVE-2026-31431
shellcheck (development)rpm / uname / lsof (runtime)