Skip to content
KitploitKITPLOIT
ToolsExploitsBlog
Log in
Submit
ToolsExploitsBlog
Submit

Hacking, PenTest, and Cybersecurity Tools for Your Security Arsenal!

Kitploit is a directory of hacking, cybersecurity, and pentesting tools. Discover the latest project updates to find vulnerabilities, analyze systems, automate testing, and strengthen your security.

FeedsContactPrivacy© 2026 Kitploit

Tool Directory

Categories

View all categories
Loading categories
ubuntu-cve-2026-31431-mitigation — دستورالعمل‌های کاهش ریسک و به‌روزرسانی برای CVE-2026-31431 در سیستم‌های اوبونتو، شامل مراحل ارتقاء کرنل و kmod. | Kitploit
Tools/GitHubGitHub/mrmtwoj/ubuntu-cve-2026-31431-mitigation
Cloud Infrastructure SecurityVulnerability AnalysisConfiguration AuditingLearning & EducationCurated Resources
GitHubmrmtwoj/ubuntu-cve-2026-31431-mitigation

ubuntu-cve-2026-31431-mitigation

دستورالعمل‌های کاهش ریسک و به‌روزرسانی برای CVE-2026-31431 در سیستم‌های اوبونتو، شامل مراحل ارتقاء کرنل و kmod.

Share
View RepositoryWebsite
356 months agoNot yet reviewed

Complete Guide to Updating the Kernel and kmod in Ubuntu to Fix Security Vulnerabilities (CVE)

CVE-2026-31431

This vulnerability, also known as Copy Fail, is a logic bug in the Linux kernel that occurs in the AF_ALG / algif_aead path. According to the discloser, an unprivileged local user can cause the Linux kernel to perform a controlled 4-byte write into the page cache of a readable file. As a result, the in-memory version of the file becomes corrupted, while the file on disk remains intact. This guide has been prepared specifically for system administrators and the technical community in Iran and includes:

  • Configuring appropriate Mirrors
  • Updating kmod
  • Updating the kernel
  • Verifying the installation
  • Safe system reboot

Step 1: Configuring Ubuntu Repositories (Mirrors)

Edit the following file:

/etc/apt/sources.list

Then, depending on your Ubuntu version, replace it with one of the sections below.

Ubuntu 22.04 (Jammy)

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu jammy-security main restricted universe multiverse

deb https://mirror.arvancloud.ir/ubuntu jammy main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu jammy-updates main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu jammy-security main restricted universe multiverse

deb https://mirror.iranserver.com/ubuntu jammy main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu jammy-updates main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu jammy-security main restricted universe multiverse

Ubuntu 20.04 (Focal)

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu focal-security main restricted universe multiverse

deb https://mirror.arvancloud.ir/ubuntu focal main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu focal-updates main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu focal-security main restricted universe multiverse

deb https://mirror.iranserver.com/ubuntu focal main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu focal-updates main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu focal-security main restricted universe multiverse

Ubuntu 24.04 (Noble)

deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-updates main restricted universe multiverse
deb https://mirrors.tuna.tsinghua.edu.cn/ubuntu noble-security main restricted universe multiverse

deb https://mirror.arvancloud.ir/ubuntu noble main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu noble-updates main restricted universe multiverse
deb https://mirror.arvancloud.ir/ubuntu noble-security main restricted universe multiverse

deb https://mirror.iranserver.com/ubuntu noble main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu noble-updates main restricted universe multiverse
deb https://mirror.iranserver.com/ubuntu noble-security main restricted universe multiverse

Step 2: Updating the Package List

sudo apt update

Step 3: Full Kernel and kmod Update (Recommended)

sudo apt install --only-upgrade kmod linux-generic

Step 4: Checking the Installation Status

dpkg -l | egrep 'kmod|linux-generic|linux-image-generic|linux-headers-generic'

Step 5: Rebooting the System (Required)

sudo reboot

Checking the Active Kernel Version After Reboot

uname -r

Updating Only kmod (Temporary Solution)

sudo apt update
sudo apt install --only-upgrade kmod

Complete One-Step Command (Recommended for Servers)

sudo apt update && sudo apt install --only-upgrade kmod linux-generic -y && sudo reboot

Important Notes:

  1. A reboot is required for the new kernel to take effect.
  2. linux-generic is a metapackage that installs the latest stable kernel.
  3. Updating only kmod may be temporary; to fully fix kernel vulnerabilities, be sure to update the kernel as well.
  4. Before updating on Production servers, perform testing in a test environment.

Prepared by A Cyber - acyber.ir

Download Tool

Most Popular

View all →

Discover the most used tools by our community.

  • 1

    OsintHunter

    letox4/osinthunter

    🎯 The ultimate OSINT toolkit: investigation graph, confidence scoring, alias families, map, timeline and reports. 49 modules, 400+ sites, no API keys required.

    891
  • 2

    ghostlock-app

    yukonga/ghostlock-app

    GhostLock One-Tap Execution App (CVE-2026-43499)

    547
  • 3

    ARTEX

    baarai/artex

    LLM multi-agent autonomous penetration testing platform with planner/worker agents, asset and exploration graphs, MITM traffic recording, and vulnerability retesting.

    369
  • 4

    redforge

    cybersecurity91/redforge

    Browser-side red team toolkit with 102 offline tools for recon, payload generation, credential attacks, crypto, encoding and engagement reporting.

    366
  • 5

    looking-glass

    anonghosty/looking-glass

    CSIRT platform that ingests Shadowserver reports into MongoDB and replays them as interactive maps, analysis, findings, advisories and executive dashboards.

    309
  • 6

    CyberStrikeAI

    ed1s0nz/cyberstrikeai

    The system of action for AI-native cybersecurity—where intent becomes governed execution, evidence becomes operational memory, and every operation improves the next.

    282

Explore all tools

Browse our collection of tools

View all tools →