Bug 798293 - (CVE-2012-1090) CVE-2012-1090 kernel: cifs: dentry refcount leak when opening a FIFO on lookup leads to panic on unmount
CVE-2012-1090 kernel: cifs: dentry refcount leak when opening a FIFO on looku...
Status: CLOSED ERRATA
Product: Security Response
Classification: Other
Component: vulnerability (Show other bugs)
unspecified
All Linux
medium Severity medium
: ---
: ---
Assigned To: Red Hat Product Security
impact=moderate,public=20120223,repor...
: Security
Depends On: 781893 798295 798296 798298
Blocks: 798300
  Show dependency treegraph
 
Reported: 2012-02-28 09:52 EST by Petr Matousek
Modified: 2015-02-16 10:52 EST (History)
23 users (show)

See Also:
Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of:
Environment:
Last Closed: 2013-04-04 07:10:51 EDT
Type: ---
Regression: ---
Mount Type: ---
Documentation: ---
CRM:
Verified Versions:
Category: ---
oVirt Team: ---
RHEL 7.3 requirements from Atomic Host:


Attachments (Terms of Use)

  None (edit)
Description Petr Matousek 2012-02-28 09:52:04 EST
The cifs code will attempt to open files on lookup under certain circumstances. What happens though if we find that the file we opened was actually a FIFO or other special file? Currently, the open filehandle just ends up being leaked leading to a dentry refcount mismatch and oops on umount.

An user with access to samba share could use this flaw to crash the systems of users that have access to the same samba share.

Introduced by:
http://git.kernel.org/linus/a6ce4932fbdbcd8f8e8c6df76812014351c32892

Proposed upstream patch:
http://thread.gmane.org/gmane.linux.kernel.cifs/5526
Comment 4 Petr Matousek 2012-02-28 10:11:44 EST
Statement:

This issue did not affect the Linux kernel as shipped with Red Hat Enterprise
Linux 4 and 5 as they did not backport the commit 
a6ce4932fbdbcd8f8e8c6df76812014351c32892 that introduced this issue. This issue did not affect the Linux kernel as shipped with Red Hat Enterprise MRG 2. This has been addressed in Red Hat Enterprise Linux 6 via https://rhn.redhat.com/errata/RHSA-2012-0481.html.
Comment 5 Kurt Seifried 2012-02-28 11:10:04 EST
Added CVE-2012-1090 as per http://www.openwall.com/lists/oss-security/2012/02/28/4
Comment 6 Fedora Update System 2012-03-06 14:39:17 EST
kernel-2.6.42.9-1.fc15 has been pushed to the Fedora 15 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 7 Eugene Teo (Security Response) 2012-04-15 21:08:42 EDT
Upstream commit:
http://git.kernel.org/linus/5bccda0ebc7c0331b81ac47d39e4b920b198b2cd
Comment 8 errata-xmlrpc 2012-04-17 14:56:58 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 6

Via RHSA-2012:0481 https://rhn.redhat.com/errata/RHSA-2012-0481.html

Note You need to log in before you can comment on or make changes to this bug.