Skip to content
OpenAdvisories
Unscored Public exploit CVE-2008-4210 EUVD-2008-4193GHSA-4hj9-rwwj-2hgv

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 lo…

Published Sep 29, 2008 · Updated Aug 7, 2024 · Assigned by mitre

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.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 4.0 fai-kernels 1.17+etch.22etch3 DSA-1653-1
Debian 4.0 linux-2.6 2.6.18.dfsg.1-22etch3 DSA-1653-1
Debian 4.0 user-mode-linux 2.6.18-1um-2etch.22etch3 DSA-1653-1
ReleasePackageFixed inAdvisory
RHEL 5 kernel +12 2.6.18-92.1.18.el5 RHSA-2008:0957
RHEL 4 kernel +10 2.6.9-78.0.8.EL RHSA-2008:0972
RHEL 3 kernel +8 2.4.21-58.EL RHSA-2008:0973
RHEL 2 kernel +8 2.4.9-e.74 RHSA-2009:0001, RHSA-2008:0787

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Exploit-DB 1

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 6

References