CVE-2008-4210
What it is
fs/open.c in the Linux kernel before 2.6.22 does not properly strip setuid and setgid bits when there is a write to a file, which allows local users to gain the privileges of a different group, and obtain sensitive information or possibly have unspecified other impact, by creating an executable file in a setgid directory through the (1) truncate or (2) ftruncate function in conjunction with memory-mapped I/O.
At a glance
- Exploitability
- Can be exploited locally on the machine without logging in. Limited direct impact.
- Exploit odds
- 2.2% chance of exploitation in the next 30 days (EPSS).
- Fix
- No patch or advisory is linked yet. Look at mitigations or restrict exposure.
Timeline
- PublishedDisclosed publicly on CVE.org and NVD
- Last updatedMost recent change to the record
Why it ranks here
- Exploited in the wild: no, CISA does not list it.
- Exploit odds: 2.2% in the next 30 days (EPSS).
- Severity: 4.6 MEDIUM (CVSS).
- Fix: none linked yet, which raises it.
Details
- Published
- Last modified
- Exploit probability
- 2.2% · EPSS, next 30 days
- Weakness
- CWE-264
- Record status
- Modified
Affected
- Linux Kernel ≤ 2.6.21.7
- Linux Kernel 2.2.27
- Linux Kernel 2.4.36
- Linux Kernel 2.4.36.1
- Linux Kernel 2.4.36.2
- Linux Kernel 2.4.36.3
- Linux Kernel 2.4.36.4
- Linux Kernel 2.4.36.5
Attack profile CVSS 2.0 · 4.6
- Attack vector
- Local
- Complexity
- Low
- Authentication
- None
- Confidentiality
- Partial
- Integrity
- Partial
- Availability
- Partial
Raw vector
AV:L/AC:L/Au:N/C:P/I:P/A:P
Is it in your code?
Hand this to your coding agent. It searches your project for the affected products and checks versions. Nothing leaves your machine.
Read https://cve-list.com/agent/cve/CVE-2008-4210.md and follow it. Check whether this project is affected by CVE-2008-4210. Read only. Don't change anything and don't upload my code. Tell me yes, no or not sure, with the file as proof.
References
- http://bugzilla.kernel.org/show_bug.cgi?id=8420
- http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git%3Ba=commit%3Bh=7b82dc0e64e93f430182f36b46b79fcee87d3532
- http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- http://lists.opensuse.org/opensuse-security-announce/2008-10/msg00007.html
- http://lists.opensuse.org/opensuse-security-announce/2008-11/msg00001.html
- http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00000.html
- http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00001.html
- http://rhn.redhat.com/errata/RHSA-2008-0972.html
- http://secunia.com/advisories/32237
- http://secunia.com/advisories/32344
- http://secunia.com/advisories/32356
- http://secunia.com/advisories/32485
- http://secunia.com/advisories/32759
- http://secunia.com/advisories/32799
- http://secunia.com/advisories/32918
- http://secunia.com/advisories/33201
- http://secunia.com/advisories/33280
- http://www.debian.org/security/2008/dsa-1653
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:220
- http://www.openwall.com/lists/oss-security/2008/09/24/5
- http://www.openwall.com/lists/oss-security/2008/09/24/8
- http://www.redhat.com/support/errata/RHSA-2008-0787.html
- http://www.redhat.com/support/errata/RHSA-2008-0957.html
- http://www.redhat.com/support/errata/RHSA-2008-0973.html