Skip to content
KitploitKITPLOIT
ToolsBlog
Submit
ToolsBlog
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.

··Feeds·Contact·Privacy·© 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.

View Repository

Most Popular

View all →

Discover the most used tools by our community.

Explore all tools

Browse our collection of tools

View all tools →
Website
3 months agoNot yet reviewed
Share

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:

root@kitploit:~
/etc/apt/sources.list

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

Ubuntu 22.04 (Jammy)

root@kitploit:~
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)

root@kitploit:~
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)

root@kitploit:~
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

root@kitploit:~
sudo apt update

Step 3: Full Kernel and kmod Update (Recommended)

root@kitploit:~
sudo apt install --only-upgrade kmod linux-generic

Step 4: Checking the Installation Status

root@kitploit:~
dpkg -l | egrep 'kmod|linux-generic|linux-image-generic|linux-headers-generic'

Step 5: Rebooting the System (Required)

root@kitploit:~
sudo reboot

Checking the Active Kernel Version After Reboot

root@kitploit:~
uname -r

Updating Only kmod (Temporary Solution)

root@kitploit:~
sudo apt update
sudo apt install --only-upgrade kmod

Complete One-Step Command (Recommended for Servers)

root@kitploit:~
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