CVE-2009-1897
The 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…
Check your servers for CVE-2009-1897
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-2009-1897 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
The 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.
Exploitation
EPSS 1.52%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 74.9% of all scored CVEs. Scores of 30 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-2009-1897 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2009-1897RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2009-1897Alpine
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-2009-1897
trivy image --scanners vuln IMAGE | grep CVE-2009-1897
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
- 35839 secunia.com · third party advisory
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=3c8a9c63d5fd738c261bd0ceece04d9c8357ca13 git.kernel.org
- https://bugzilla.redhat.com/show_bug.cgi?id=512284 bugzilla.redhat.com
Other references
- ADV-2009-1925 vupen.com · vdb entry
- http://isc.sans.org/diary.html?storyid=6820 isc.sans.org
- http://grsecurity.net/~spender/cheddar_bay.tgz grsecurity.net
- [oss-security] 20090717 Linux 2.6.30+/SELinux/RHEL5 test kernel 0day, exploiting the unexploitable openwall.com · mailing list
- 20090716 Re: Linux 2.6.30+/SELinux/RHEL5 test kernel 0day, exploiting the unexploitable archives.neohapsis.com · mailing list
- linux-kernel-tunchrpoll-code-execution(51803) exchange.xforce.ibmcloud.com · vdb entry
- [netdev] 20090409 Oops in tun: bisected to Limit amount of queued packets per device article.gmane.org · mailing list
- [linux-kernel] 20090706 Re: PROBLEM: tun/tap crashes if open() /dev/net/tun and then poll() it. lkml.org · mailing list
- 20090716 Linux 2.6.30+/SELinux/RHEL5 test kernel 0day, exploiting the unexploitable archives.neohapsis.com · mailing list
- https://www.redhat.com/en/blog/security-flaws-caused-compiler-optimizations redhat.com
Source: the record CVE-2009-1897 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