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…
Check your servers for CVE-2008-4210
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2008-4210 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
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.
Exploitation
EPSS 2.16%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 82.8% of all scored CVEs. Scores of 28 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2008-4210 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2008-4210RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2008-4210Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2008-4210
trivy image --scanners vuln IMAGE | grep CVE-2008-4210
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22 kernel.org
- 32485 secunia.com · third party advisory
- http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git%3Ba=commit%3Bh=7b82dc0e64e93f430182f36b46b79fcee87d3532 git.kernel.org
- 32237 secunia.com · third party advisory
- RHSA-2008:0957 redhat.com · vendor advisory
- RHSA-2008:0972 rhn.redhat.com · vendor advisory
- SUSE-SA:2008:056 lists.opensuse.org · vendor advisory
- 33280 secunia.com · third party advisory
- DSA-1653 debian.org · vendor advisory
- 32356 secunia.com · third party advisory
- 32918 secunia.com · third party advisory
- USN-679-1 ubuntu.com · vendor advisory
13 more
- 32759 secunia.com · third party advisory
- MDVSA-2008:220 mandriva.com · vendor advisory
- 32344 secunia.com · third party advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=463661 bugzilla.redhat.com
- http://bugzilla.kernel.org/show_bug.cgi?id=8420 bugzilla.kernel.org
- http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22 kernel.org
- RHSA-2008:0973 redhat.com · vendor advisory
- RHSA-2008:0787 redhat.com · vendor advisory
- SUSE-SA:2008:051 lists.opensuse.org · vendor advisory
- 32799 secunia.com · third party advisory
- SUSE-SA:2008:057 lists.opensuse.org · vendor advisory
- SUSE-SR:2008:025 lists.opensuse.org · vendor advisory
- 33201 secunia.com · third party advisory
Other references
- 31368 securityfocus.com · vdb entry
- [oss-security] 20080924 Re: CVE request: kernel: open() call allows setgid bit when user is not in new file's group openwall.com · mailing list
- oval:org.mitre.oval:def:6386 oval.cisecurity.org · vdb entry, signature
- [oss-security] 20080924 CVE request: kernel: open() call allows setgid bit when user is not in new file's group openwall.com · mailing list
- oval:org.mitre.oval:def:9511 oval.cisecurity.org · vdb entry, signature
- linux-kernel-open-privilege-escalation(45539) exchange.xforce.ibmcloud.com · vdb entry
Source: the record CVE-2008-4210 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse