CVE-2009-1897

Summary

CVECVE-2009-1897
StatePUBLISHED
Assignerredhat
Source PriorityCVE Program / NVD first with legacy fallback
Published2009-07-20 17:30:54 UTC
Updated2026-04-23 00:35:47 UTC
DescriptionThe tun_chr_poll function in drivers/net/tun.c in the tun subsystem in the Linux kernel 2.6.30 and 2.6.30.1, when the -fno-delete-null-pointer-checks gcc option is omitted, allows local users to gain privileges via vectors involving a NULL pointer dereference and an mmap of /dev/net/tun, a different vulnerability than CVE-2009-1894.

Risk And Classification

Primary CVSS: v2.0 6.9 from [email protected]

AV:L/AC:M/Au:N/C:C/I:C/A:C

Problem Types: CWE-119 | n/a

CVSS v2.0 Breakdown

Access Vector
Local
Access Complexity
Medium
Authentication
None
Confidentiality
Complete
Integrity
Complete
Availability
Complete

AV:L/AC:M/Au:N/C:C/I:C/A:C

NVD Known Affected Configurations (CPE 2.3)

TypeVendorProductVersionUpdateEditionLanguage
Operating System Linux Linux Kernel 2.6.30 All All All
Operating System Linux Linux Kernel 2.6.30 rc1 All All
Operating System Linux Linux Kernel 2.6.30 rc2 All All
Operating System Linux Linux Kernel 2.6.30 rc3 All All
Operating System Linux Linux Kernel 2.6.30 rc4 x86_32 All
Operating System Linux Linux Kernel 2.6.30 rc5 All All
Operating System Linux Linux Kernel 2.6.30 rc6 All All
Operating System Linux Linux Kernel 2.6.30 rc7-git6 All All
Operating System Linux Linux Kernel 2.6.30.1 All All All

Vendor Declared Affected Products

SourceVendorProductVersionPlatforms
CNA Na N/a affected n/a Not specified

References

ReferenceSourceLinkTags
Gmane -- Mail To News And Back Again af854a3a-2127-422b-91ae-364da2661108 article.gmane.org
InfoSec Handlers Diary Blog af854a3a-2127-422b-91ae-364da2661108 isc.sans.org Exploit
Linux Kernel "tun_char_poll()" NULL Pointer Dereference - Secunia Advisories - Vulnerability Information - Secunia.com af854a3a-2127-422b-91ae-364da2661108 secunia.com Vendor Advisory
IBM X-Force Exchange af854a3a-2127-422b-91ae-364da2661108 exchange.xforce.ibmcloud.com
kernel/git/torvalds/linux.git - Linux kernel source tree af854a3a-2127-422b-91ae-364da2661108 git.kernel.org
Bug 512284 – CVE-2009-1897 kernel: tun/tap: Fix crashes if open() /dev/net/tun and then poll() it af854a3a-2127-422b-91ae-364da2661108 bugzilla.redhat.com
archives.neohapsis.com/archives/fulldisclosure/2009-07/0246.html af854a3a-2127-422b-91ae-364da2661108 archives.neohapsis.com
oss-security - Linux 2.6.30+/SELinux/RHEL5 test kernel 0day, exploiting the unexploitable af854a3a-2127-422b-91ae-364da2661108 www.openwall.com
archives.neohapsis.com/archives/fulldisclosure/2009-07/0241.html af854a3a-2127-422b-91ae-364da2661108 archives.neohapsis.com
Webmail : Solution de messagerie professionnelle - OVHcloud- OVH af854a3a-2127-422b-91ae-364da2661108 www.vupen.com Patch, Vendor Advisory
404 Not Found af854a3a-2127-422b-91ae-364da2661108 grsecurity.net Patch
LKML: Mariusz Kozlowski: Re: PROBLEM: tun/tap crashes if open() /dev/net/tun and then poll() it. af854a3a-2127-422b-91ae-364da2661108 lkml.org Exploit
Security flaws caused by compiler optimizations af854a3a-2127-422b-91ae-364da2661108 www.redhat.com
kernel/git/torvalds/linux.git - Linux kernel source tree MITRE git.kernel.org
CVE Program record CVE.ORG www.cve.org canonical
NVD vulnerability detail NVD nvd.nist.gov canonical, analysis

Vendor Comments And Credit

OrganizationPublishedContributorStatement
Red Hat2009-09-02Tomas HogerRed Hat is aware of this issue and is tracking it via the following bug: https://bugzilla.redhat.com/bugzilla/show_bug.cgi?id=CVE-2009-1897 The flaw only affects the Red Hat Enterprise Linux 5.4 beta kernel, which includes a backport of the upstream bug fix introducing this flaw (git commit 33dccbb0). This issue did not affect the final released Red Hat Enterprise Linux 5.4 kernel. It is also possible to mitigate this flaw by ensuring that the permissions for /dev/net/tun is restricted to root only. This issue does not affect any other released kernel in any Red Hat product.

© CVE.report 2026

Use of this information constitutes acceptance for use in an AS IS condition. There are NO warranties, implied or otherwise, with regard to this information or its use. Any use of this information is at the user's risk. It is the responsibility of user to evaluate the accuracy, completeness or usefulness of any information, opinion, advice or other content. EACH USER WILL BE SOLELY RESPONSIBLE FOR ANY consequences of his or her direct or indirect use of this web site. ALL WARRANTIES OF ANY KIND ARE EXPRESSLY DISCLAIMED. This site will NOT BE LIABLE FOR ANY DIRECT, INDIRECT or any other kind of loss.

CVE, CWE, and OVAL are registred trademarks of The MITRE Corporation and the authoritative source of CVE content is MITRE's CVE web site. This site includes MITRE data granted under the following license.

Free CVE JSON API cve.report/api

CVE.report and Source URL Uptime Status status.cve.report