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
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.
- Published
- Sep 29, 2008
- Updated
- Jun 16, 2026
- EPSS
- 2.1% · 81th percentile
- CWE
- CWE-264
Sign in to follow · You’ll be notified if a followed record enters KEV, gets an exploit or is updated.
Report tools
Action score
19
Monitor
Low priority for now.
- CVSS
- 18 / 40 · 4.6 / 10
- CISA KEV
- 0 / 30 · Not listed
- EPSS
- 1 / 30 · 2.1%
Affected systems
| Vendor | Product | CPE |
|---|---|---|
| linux | linux kernel | cpe:2.3:o:linux:linux_kernel |
Affected versions
NVD version ranges (for catalog products). Add the product to your stack with a version and matching uses these.
- linux linux kernelup to 2.6.21.7 inclusive
- linux linux kernel2.2.27
- linux linux kernel2.4.36
- linux linux kernel2.4.36.1
- linux linux kernel2.4.36.2
- linux linux kernel2.4.36.3
- linux linux kernel2.4.36.4
- linux linux kernel2.4.36.5
- linux linux kernel2.4.36.6
- linux linux kernel2.6
- linux linux kernel2.6.18
- linux linux kernel2.6.19.4
- linux linux kernel2.6.19.5
- linux linux kernel2.6.19.6
- linux linux kernel2.6.19.7
- linux linux kernel2.6.20.16
- linux linux kernel2.6.20.17
- linux linux kernel2.6.20.18
- linux linux kernel2.6.20.19
- linux linux kernel2.6.20.20
Package-level exposure
OSV and GitHub Advisory data: ecosystem, package and range. SBOM matching uses this table.
| Ecosystem | Package | Affected range | Fix |
|---|---|---|---|
| Debian:4.0 | fai-kernels | before 1.17+etch.22etch3 | 1.17+etch.22etch3 |
| Debian:4.0 | linux-2.6 | before 2.6.18.dfsg.1-22etch3 | 2.6.18.dfsg.1-22etch3 |
| Debian:4.0 | user-mode-linux | before 2.6.18-1um-2etch.22etch3 | 2.6.18-1um-2etch.22etch3 |
| Red Hat:enterprise_linux:2.1::as | kernel | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel | before 0:2.4.18-e.67 | 0:2.4.18-e.67 |
| Red Hat:enterprise_linux:2.1::as | kernel-BOOT | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-debug | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-doc | before 0:2.4.18-e.67 | 0:2.4.18-e.67 |
| Red Hat:enterprise_linux:2.1::as | kernel-doc | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-enterprise | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-headers | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-smp | before 0:2.4.18-e.67 | 0:2.4.18-e.67 |
| Red Hat:enterprise_linux:2.1::as | kernel-smp | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-source | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:2.1::as | kernel-source | before 0:2.4.18-e.67 | 0:2.4.18-e.67 |
| Red Hat:enterprise_linux:2.1::as | kernel-summit | before 0:2.4.9-e.74 | 0:2.4.9-e.74 |
| Red Hat:enterprise_linux:3::as | kernel | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-BOOT | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-debuginfo | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-doc | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-hugemem | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-hugemem-unsupported | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-smp | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
| Red Hat:enterprise_linux:3::as | kernel-smp-unsupported | before 0:2.4.21-58.EL | 0:2.4.21-58.EL |
+32
Same product
linux: all recordsOther highest-scoring records for the same primary product.
- CVE-2022-0847A flaw was found in the way the "flags" member of the new pipe buffer structure was lacking proper initialization in copy_page_to_iter_pipe KEV89Now
- CVE-2021-22555Heap Out-Of-Bounds Write in Netfilter IP6T_SO_SET_REPLACEKEV85Now
- CVE-2016-5195Race condition in mm/gup.c in the Linux kernel 2.x through 4.x before 4.8.3 allows local users to gain privileges by leveraging incorrect haKEV83Now
- CVE-2019-13272In the Linux kernel before 5.1.17, ptrace_link in kernel/ptrace.c mishandles the recording of the credentials of a process that wants to creKEV77This week
- CVE-2013-6282The (1) get_user and (2) put_user API functions in the Linux kernel before 3.5.5 on the v6k and v7 ARM platforms do not validate certain addKEV77This week
- CVE-2013-2094The perf_swevent_init function in kernel/events/core.c in the Linux kernel before 3.8.9 uses an incorrect integer data type, which allows loKEV77This week
Remediation
Which version to upgrade to
Fix versions compiled from the vendor, package registries and Microsoft. Verify the vendor's note before upgrading.
| Product / package | Fixed version | Source |
|---|---|---|
| debian:fai-kernels | 1.17+etch.22etch3 · Debian:4.0 | Package registry (OSV) |
| debian:linux-2.6 | 2.6.18.dfsg.1-22etch3 · Debian:4.0 | Package registry (OSV) |
| debian:user-mode-linux | 2.6.18-1um-2etch.22etch3 · Debian:4.0 | Package registry (OSV) |
| red hat:kernel | 0:2.4.18-e.67 · Red Hat:enterprise_linux:2.1::as | Package registry (OSV) |
| red hat:kernel-debug | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-debug-debuginfo | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-debug-devel | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-debuginfo | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-debuginfo-common | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-doc | 0:2.4.18-e.67 · Red Hat:enterprise_linux:2.1::as | Package registry (OSV) |
| red hat:kernel-PAE | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-PAE-debuginfo | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-PAE-devel | 0:2.6.18-92.1.18.el5 · Red Hat:enterprise_linux:5::client | Package registry (OSV) |
| red hat:kernel-smp | 0:2.4.18-e.67 · Red Hat:enterprise_linux:2.1::as | Package registry (OSV) |
| red hat:kernel-source | 0:2.4.18-e.67 · Red Hat:enterprise_linux:2.1::as | Package registry (OSV) |
Exploit status
Proof of concept available
A public proof of concept or detection signature exists. Exploit knowledge is out there; don't delay patching.
Evidence
- Exploit-DB entry ×1
Noroxi does not host or link to exploit code. Metasploit module names and Nuclei template ids are shown (names, not code); Exploit-DB entries and PoC repositories are given as counts only.
| Source | Kind | Date |
|---|---|---|
| Exploit-DB entry | local | 2008-10-27 |
Research context
For pentesters and researchers: attack profile, score disagreement, timeline, patch commits, credits, variant and chain candidates, bug bounty scope. All derived from existing data; no exploit code.
Timeline
From publication to today: proof of concept, Metasploit module, CISA KEV and fix record. Dates are as reported by the sources.
- Published
- First PoC+27 d
- TodaySep 30, 2026+6575 d
FIRST EPSS daily score; only changes of 0.01 or more are recorded (step chart).
Patch and commit links
Commit, PR and diff links among the references. A starting point for patch-diffing and variant hunting; fixes, not exploits.
No commit or PR link among the references.
Credits
All researchersFinders, reporters and analysts named in the CNA record. Click a name for that researcher’s other records.
No credits in the CNA record.
Variant candidates
Same product, same weakness class, within 18 months. If the patch missed the root cause, the sibling bug is here.
No nightly-computed relations.
Chain candidates
An authentication bypass and a privilege-requiring bug in the same product, published close together: combined they may become an unauthenticated path.
—
Bug bounty scope
No known public program.
Source: bounty-targets-data (public HackerOne, Bugcrowd, Intigriti, YesWeHack listings).
Technical details
Attack conditions
- No special conditions are required; it is repeatable.
If successful
- Confidentiality
- P · data can be read
- Integrity
- P · data or configuration can be modified
- Availability
- P · the service can be disrupted
- Attack complexity
- Low
- Confidentiality impact
- P
- Integrity impact
- P
- Availability impact
- P
Weakness class (CWE)
CWE-264 · Permissions, Privileges, and Access ControlsCVSS vector
AV:L/AC:L/Au:N/C:P/I:P/A:P
nvd-primary
Attack context
MITRE CAPEC attack patterns and ATT&CK techniques for this weakness class (CWE). A starting point for detection rules and threat hunting.
MITRE has no CAPEC/ATT&CK mapping for this CWE.
Noroxi analysis
No Noroxi analysis for this record yet
We don't hand-write analysis for all 385,000+ vulnerabilities; that wouldn't be honest. For notable, high-impact vulnerabilities our team writes the mechanism, detection and remediation steps.
We use this product, ask for helpChange log
- Fix✗ → ✓
For records you follow, these changes also arrive as notifications. →
References
- rhn.redhat.com/errata/RHSA-2008-0972.html
- bugzilla.kernel.org/show_bug.cgi?id=8420
- git.kernel.org/?p=linux/kernel/git/stable/linux-2.6.26.y.git%3Ba=commit%3Bh=7b82dc0e64e93f430182f36b46b79fcee87d3532
- kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- lists.opensuse.org/opensuse-security-announce/2008-10/msg00007.html
- lists.opensuse.org/opensuse-security-announce/2008-11/msg00001.html
- lists.opensuse.org/opensuse-security-announce/2008-12/msg00000.html
- lists.opensuse.org/opensuse-security-announce/2008-12/msg00001.html
- secunia.com/advisories/32237
- secunia.com/advisories/32344
- secunia.com/advisories/32356
- secunia.com/advisories/32485
- secunia.com/advisories/32759
- secunia.com/advisories/32799
- secunia.com/advisories/32918
- secunia.com/advisories/33201
- secunia.com/advisories/33280
- www.debian.org/security/2008/dsa-1653
- www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.22
- www.mandriva.com/security/advisories?name=MDVSA-2008:220
Vendor advisories and official records. Exploit/PoC links are deliberately left out.