CVE-2021-33909: Integer Overflow
An out-of-bounds write flaw was found in the Linux kernel's seqfile in the Filesystem layer. This flaw allows a local attacker with a user privilege to gain access to out-of-bound memory, leading to a system crash, leak of internal kernel information and can escalate privileges. The issue results from not validating the sizet-to-int conversion prior to performing operations. The highest threat from this vulnerability is to data integrity, confidentiality and system availability.
Other sources
An out-of-bounds write flaw was found in the seqfile in Filesystem layer, where a local attacker with a user privilege could gain access to out-of-bound memory leading to a system crash or a leak of internal kernel information. The issue results from not validating the sizet-to-int conversion prior to performing operations. The highest threat from this vulnerability is to data integrity, confidentiality and system availability.
While creating, mounting, and deleting a deep directory structure whose total path length exceeds 1GB, an unprivileged local attacker can write the 10-byte string "//deleted" to an offset of exactly -2GB-10B below the beginning of a vmalloc()ated kernel buffer.
References: https://www.openwall.com/lists/oss-security/2021/07/20/1 https://www.qualys.com/2021/07/20/cve-2021-33909/sequoia-local-privilege-escalation-linux.txt
Fix: https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=8cae8cd89f05f6de223d63e6d15e31c8ba9cf53b
— Red Hat
fs/seqfile.c in the Linux kernel 3.16 through 5.13.x before 5.13.4 does not properly restrict seq buffer allocations, leading to an integer overflow, an Out-of-bounds Write, and escalation to root by an unprivileged user, aka CID-8cae8cd89f05.
Linux Kernel could allow a local attacker to gain elevated privileges on the system, caused by an out-of-bounds write in fs/seqfile.c. By sending a specially-crafted request, an attacker could exploit this vulnerability to escalate privileges to root.
— IBM
Affected Software
Remediation
Information
Patch Available
Event History
Parent advisories
This vulnerability appears in the following advisories.
- RHSA-2021:2735
- RHSA-2021:2726
- RHSA-2021:2725
- RHSA-2021:2727
- RHSA-2021:2734
- RHSA-2021:2733
- RHSA-2021:2732
- RHSA-2021:2730
- RHSA-2021:2731
- RHSA-2021:2728
- RHSA-2021:2729
- RHSA-2021:2715
- RHSA-2021:2714
- RHSA-2021:2716
- RHSA-2021:2722
- RHSA-2021:2723
- RHSA-2021:2719
- RHSA-2021:2718
- RHSA-2021:2720
- RHSA-2021:2737
- RHSA-2021:2736
- IBM-6497499
Frequently Asked Questions
What is the severity of CVE-2021-33909?
CVE-2021-33909 is classified as a high severity vulnerability that allows local privilege escalation due to an out-of-bounds write flaw in the Linux kernel.
How do I fix CVE-2021-33909?
To mitigate CVE-2021-33909, users should update to the recommended kernel versions provided by their Linux distribution.
What impact does CVE-2021-33909 have on affected systems?
CVE-2021-33909 can lead to system crashes, leakage of internal kernel information, and privilege escalation for local attackers.
Is CVE-2021-33909 exploitable remotely?
CVE-2021-33909 is not exploitable remotely as it requires local user privileges to be exploited.
Which versions of Linux are affected by CVE-2021-33909?
CVE-2021-33909 affects various versions of the Linux kernel, specifically those prior to the patched versions listed by the respective distributions.