CVE-2010-4258
The do_exit function in kernel/exit.c in the Linux kernel before 2.6.36.2 does not properly handle a KERNEL_DS get_fs value, which…
Check your servers for CVE-2010-4258
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-2010-4258 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 do_exit function in kernel/exit.c in the Linux kernel before 2.6.36.2 does not properly handle a KERNEL_DS get_fs value, which allows local users to bypass intended access_ok restrictions, overwrite arbitrary kernel memory locations, and gain privileges by leveraging a (1) BUG, (2) NULL pointer dereference, or (3) page fault, as demonstrated by vectors involving the clear_child_tid feature and the splice system call.
Exploitation
EPSS 2.66%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 86.4% of all scored CVEs. Scores of 29 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-2010-4258 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2010-4258RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2010-4258Alpine
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-2010-4258
trivy image --scanners vuln IMAGE | grep CVE-2010-4258
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
- 43056 secunia.com · third party advisory
- SUSE-SA:2011:004 lists.opensuse.org · vendor advisory
- 42778 secunia.com · third party advisory
- http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git%3Ba=commit%3Bh=33dd94ae1ccbfb7bf0fb6c692bc3d1c4269e6177 git.kernel.org
- 42801 secunia.com · third party advisory
- SUSE-SA:2011:002 lists.opensuse.org · vendor advisory
- FEDORA-2010-18983 lists.fedoraproject.org · vendor advisory
- SUSE-SA:2011:001 lists.opensuse.org · vendor advisory
- 42932 secunia.com · third party advisory
- SUSE-SA:2011:007 lists.opensuse.org · vendor advisory
- http://www.kernel.org/pub/linux/kernel/v2.6/ChangeLog-2.6.36.2 kernel.org
- SUSE-SA:2011:005 lists.opensuse.org · vendor advisory
7 more
- http://code.google.com/p/chromium-os/issues/detail?id=10234 code.google.com
- http://googlechromereleases.blogspot.com/2011/01/chrome-os-beta-channel-update.html googlechromereleases.blogspot.com
- SUSE-SA:2011:008 lists.opensuse.org · vendor advisory
- MDVSA-2011:029 mandriva.com · vendor advisory
- 42745 secunia.com · third party advisory
- 43291 secunia.com · third party advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=659567 bugzilla.redhat.com
Other references
- [oss-security] 20101202 CVE request: kernel: failure to revert address limit override in OOPS error path openwall.com · mailing list
- [oss-security] 20101202 kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- http://blog.nelhage.com/2010/12/cve-2010-4258-from-dos-to-privesc/ blog.nelhage.com
- [oss-security] 20101209 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- 20101207 Linux kernel exploit archives.neohapsis.com · mailing list
- ADV-2011-0124 vupen.com · vdb entry
- [linux-kernel] 20101201 [PATCH v2] do_exit(): Make sure we run with get_fs() == USER_DS. marc.info · mailing list
- ADV-2010-3321 vupen.com · vdb entry
- [oss-security] 20101208 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- ADV-2011-0298 vupen.com · vdb entry
- [oss-security] 20101209 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- ADV-2011-0375 vupen.com · vdb entry
7 more
- [linux-kernel] 20101201 Re: [PATCH v2] do_exit(): Make sure we run with get_fs() == USER_DS. lkml.org · mailing list
- ADV-2011-0012 vupen.com · vdb entry
- [oss-security] 20101202 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- [oss-security] 20101202 Re: CVE request: kernel: failure to revert address limit override in OOPS error path openwall.com · mailing list
- [oss-security] 20101208 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
- ADV-2011-0213 vupen.com · vdb entry
- [oss-security] 20101208 Re: kernel: Dangerous interaction between clear_child_tid, set_fs(), and kernel oopses openwall.com · mailing list
Source: the record CVE-2010-4258 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