CVE-2026-31705 - Critical Vulnerability in Linux Kernel
A critical vulnerability has been identified in the Linux kernel, affecting multiple versions.

// on this page (8)
Introduction
A critical vulnerability has been identified in the Linux kernel, related to the handling of extended attribute (EA) entries in the smb2_get_ea() function. This flaw can lead to an out-of-bounds write, compromising system security.
What happened?
The vulnerability lies in how the smb2_get_ea() function applies 4-byte alignment padding after writing each EA entry. The issue arises because the bounds check on the buffer is performed before the data copy, but the alignment padding is executed unconditionally afterward, without checking the remaining buffer space. This can result in writing additional bytes beyond the buffer limit, affecting adjacent kernel memory.
How does the vulnerability work?
When the EA value exactly fills the remaining buffer, the function attempts to write additional bytes to ensure alignment. If the buffer is already full, this can cause an overwrite in unauthorized memory areas, leading to unexpected behavior or even the execution of malicious code.
What is the real impact?
The impact of this vulnerability is considered critical, as it may allow an attacker to write data to unauthorized memory areas, potentially compromising the integrity and confidentiality of the system. Systems running affected versions of the Linux kernel are at risk, especially in environments where unauthorized access is a concern.
Which versions are affected?
- linux kernel ≥ 5.15.145 < 5.16
- linux kernel ≥ 6.1.71 < 6.2
- linux kernel ≥ 6.6 < 6.6.136
- linux kernel ≥ 6.7 < 6.12.84
- linux kernel ≥ 6.13 < 6.18.25
- linux kernel ≥ 6.19 < 7.0.2
How to fix
- Check your current version of the Linux kernel.
- Update to a patched version of the kernel as indicated in the vendor's release notes.
- Reboot the system after the update to ensure changes take effect.
- Monitor kernel security advisories for future updates and patches.
Mitigation until you update
While unable to apply the update, consider restricting access to the system and monitoring for suspicious activities. Additionally, disable services using the smb2_get_ea() function if they are not necessary.
Conclusion
It is crucial for system administrators and store owners to update the Linux kernel to prevent exploitation of this critical vulnerability. System security depends on applying patches and maintaining constant vigilance against potential threats.
// Fontes
- NVD — CVE-2026-31705 nvd.nist.gov ↗
- CVE.org — CVE-2026-31705 cve.org ↗
- Linux kernel (git) git.kernel.org ↗
- Linux kernel (git) (patch) git.kernel.org ↗
- Linux kernel (git) (patch) git.kernel.org ↗
- Linux kernel (git) (patch) git.kernel.org ↗
- Linux kernel (git) (patch) git.kernel.org ↗
- Linux kernel (git) git.kernel.org ↗
- Linux kernel (git) (patch) git.kernel.org ↗