CVE-2008-4210
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…
- 4.6MediumCVSS base score
- 2.2%Exploitation in 30 daysEPSS · top 18% of all CVEs
- NoKnown exploitednot in CISA's KEV catalog
- 1Public exploitsMetasploit, Nuclei and Exploit-DB
Description
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.
Public exploit
An exploit or proof of concept is public: anyone can try it against an unpatched system. The public collections list an Exploit-DB entry for it.
Show the exploits1
Exploit-DB1 entry
- Linux Kernel < 2.6.22 - 'ftruncate()'/'open()' Local Privilege Escalation (Exploit-DB entry) (opens in a new tab)
EDB-ID 6851local, linuxpublished 27 Oct 2008Verified
Modules, templates and exploits as listed by the Metasploit Framework (BSD-3-Clause), ProjectDiscovery's Nuclei templates (MIT) and the Exploit Database (GPLv2), read once a day. Where the data comes from
Timeline
ID reserved
By mitre
- 5 days later
· 5 days later
Published
- 16 years later
· 16 years later
Record updated
Changes after publication (a new score, a public exploit, EPSS crossing 1, 10 or 50 %, leaving KEV) are kept since November 2026; earlier ones are not known.
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 2.0 | Medium4.6 | AV:L/AC:L/Au:N/C:P/I:P/A:P |
- EPSS (exploitation in 30 days)
- 2.2% · top 18% of all CVEs (11 Nov 2026)
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 4.6.
Affected products
n/a
- affected n/a
References
References31
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 32485 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 31368 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
- http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git%3Ba=commit%3Bh=7b82dc0e64e93f430182f36b46b79fcee87d3532 (opens in a new tab)x_refsource_CONFIRMx_transferred
- 32237 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- RHSA-2008:0957 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2008:0972 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- [oss-security] 20080924 Re: CVE request: kernel: open() call allows setgid bit when user is not in new file's group (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- SUSE-SA:2008:056 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- oval:org.mitre.oval:def:6386 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- 33280 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- DSA-1653 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- [oss-security] 20080924 CVE request: kernel: open() call allows setgid bit when user is not in new file's group (opens in a new tab)mailing-listx_refsource_MLISTx_transferred
- 32356 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- 32918 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- USN-679-1 (opens in a new tab)vendor-advisoryx_refsource_UBUNTUx_transferred
- oval:org.mitre.oval:def:9511 (opens in a new tab)vdb-entrysignaturex_refsource_OVALx_transferred
- 32759 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- MDVSA-2008:220 (opens in a new tab)vendor-advisoryx_refsource_MANDRIVAx_transferred
- 32344 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- https://bugzilla.redhat.com/show_bug.cgi?id=463661 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://bugzilla.kernel.org/show_bug.cgi?id=8420 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22 (opens in a new tab)x_refsource_CONFIRMx_transferred
- RHSA-2008:0973 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- RHSA-2008:0787 (opens in a new tab)vendor-advisoryx_refsource_REDHATx_transferred
- SUSE-SA:2008:051 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 32799 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
- linux-kernel-open-privilege-escalation(45539) (opens in a new tab)vdb-entryx_refsource_XFx_transferred
- SUSE-SA:2008:057 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- SUSE-SR:2008:025 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- 33201 (opens in a new tab)third-party-advisoryx_refsource_SECUNIAx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- EUVD EUVD-2008-4193 (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Badge for a README or a ticket
[](https://cveledger.app/cve/CVE-2008-4210)Record last updated .