
Kernel LPE PoC & Mitigation Toolkit - ROSN-LR5-Full (CVE-2026-31431)
Offensive and defensive tool for the CVE-2026-31431 vulnerability on Linux systems.
It combines a local privilege escalation (LPE) proof of concept with utilities to review and temporarily mitigate the AF_ALG-based attack vector.
⚖️ EXCLUSIVE ETHICAL USE: This software is distributed solely for educational and security auditing purposes. It should only be run on systems you own or have explicit authorization to test. The author is not responsible for misuse.
os.splice() and zlib decompression over /usr/bin/su.algif_aead module./etc/modprobe.d/disable-algif.conf.install algif_aead /bin/false.rmmod.sudo or wheel./usr/bin/su.sudo).Clone the repository and enter the directory:
git clone https://github.com/ROSNLR5/MitigationToolkit-ROSN-LR5-Full.git
cd MitigationToolkit-ROSN-LR5-Full
chmod +x rosnlr5_full.py
Run the script with Python 3:
python3 rosnlr5_full.py
The main menu offers four options:
Inside option 3 you will find:
algif_aead module is available/loaded and whether the lock file exists./etc/modprobe.d/disable-algif.conf and unloads the module. Requires sudo.sudo.The temporary mitigation does not replace a kernel patch. It only blocks the loading of the vulnerable module while the system is updated.
After applying the mitigation, it is recommended to update the kernel with the official patches from your distribution.
This project is distributed without an explicit license. The code is provided "as is", without warranties. Use is at your own risk and you must comply with local laws.
ROSN LR5 – understanding and containing CVE 2026 31431