Bug 585094 (CVE-2010-1437)
Summary: | CVE-2010-1437 kernel: keyrings: find_keyring_by_name() can gain the freed keyring | ||||||
---|---|---|---|---|---|---|---|
Product: | [Other] Security Response | Reporter: | Eugene Teo (Security Response) <eteo> | ||||
Component: | vulnerability | Assignee: | David Howells <dhowells> | ||||
Status: | CLOSED ERRATA | QA Contact: | |||||
Severity: | high | Docs Contact: | |||||
Priority: | high | ||||||
Version: | unspecified | CC: | arozansk, bhu, davej, dhoward, dhowells, jolsa, jpirko, kmcmartin, lgoncalv, lwang, rcvalle, tcallawa, vgoyal, williams | ||||
Target Milestone: | --- | Keywords: | Security | ||||
Target Release: | --- | ||||||
Hardware: | All | ||||||
OS: | Linux | ||||||
Whiteboard: | |||||||
Fixed In Version: | Doc Type: | Bug Fix | |||||
Doc Text: | Story Points: | --- | |||||
Clone Of: | Environment: | ||||||
Last Closed: | 2013-03-26 16:23:01 UTC | Type: | --- | ||||
Regression: | --- | Mount Type: | --- | ||||
Documentation: | --- | CRM: | |||||
Verified Versions: | Category: | --- | |||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||
Cloudforms Team: | --- | Target Upstream Version: | |||||
Embargoed: | |||||||
Bug Depends On: | 585095, 585096, 585097, 585098, 585099, 585100, 585101 | ||||||
Bug Blocks: | |||||||
Attachments: |
|
Description
Eugene Teo (Security Response)
2010-04-23 06:37:29 UTC
http://www.gossamer-threads.com/lists/linux/kernel/1216391 https://patchwork.kernel.org/patch/94038/ From David Howells, doing the following ought to work too: for ((i=0; i<100000; i++)); do keyctl session wibble /bin/true || break; done Created attachment 410377 [details]
Fix race between finding a keyring by name and destroying a dead keyring
This patch will apply to and fix RHEL-4, RHEL-5 and RHEL-6.
Note that the window in which the race can happen is very small, which makes it very hard to reproduce.
(In reply to comment #5) > Fix race between finding a keyring by name and destroying a dead keyring > > This patch will apply to and fix RHEL-4, RHEL-5 and RHEL-6. I take that back about RHEL-4 - though the patch will apply, it won't compile as RHEL-4 doesn't have atomic_inc_not_zero(). The patch has gone in upstream: http://git.kernel.org/?p=linux/kernel/git/torvalds/linux-2.6.git;a=commit;h=cea7daa3589d6b550546a8c8963599f7c1a3ae5c (In reply to comment #5) > Created an attachment (id=410377) [details] > Fix race between finding a keyring by name and destroying a dead keyring > > This patch will apply to and fix RHEL-4, RHEL-5 and RHEL-6. > > Note that the window in which the race can happen is very small, which makes it > very hard to reproduce. David, if you haven't already done this, please post the patches to rhkernel-list for review. Thanks. I've posted the RHEL-6 version, and Vitaly has posted patches for RHEL-4.9 and RHEL-5.6. kernel-2.6.33.5-112.fc13 has been submitted as an update for Fedora 13. http://admin.fedoraproject.org/updates/kernel-2.6.33.5-112.fc13 kernel-2.6.32.14-127.fc12 has been submitted as an update for Fedora 12. http://admin.fedoraproject.org/updates/kernel-2.6.32.14-127.fc12 kernel-2.6.33.5-112.fc13 has been pushed to the Fedora 13 stable repository. If problems still persist, please make note of it in this bug report. Statement: This issue did not affect the version of Linux kernel as shipped with Red Hat Enterprise Linux 3. Future kernel updates in Red Hat Enterprise Linux 4, 5 and Red Hat Enterprise MRG will address this issue. kernel-2.6.32.14-127.fc12 has been pushed to the Fedora 12 stable repository. If problems still persist, please make note of it in this bug report. This issue has been addressed in following products: Red Hat Enterprise Linux 4 Via RHSA-2010:0474 https://rhn.redhat.com/errata/RHSA-2010-0474.html This issue has been addressed in following products: Red Hat Enterprise Linux 5 Via RHSA-2010:0504 https://rhn.redhat.com/errata/RHSA-2010-0504.html This issue has been addressed in following products: MRG for RHEL-5 Via RHSA-2010:0631 https://rhn.redhat.com/errata/RHSA-2010-0631.html |