Bug 820677 (CVE-2012-2337)

Summary: CVE-2012-2337 sudo: Multiple netmask values used in Host / Host_List configuration cause any host to be allowed access
Product: [Other] Security Response Reporter: Jan Lieskovsky <jlieskov>
Component: vulnerabilityAssignee: Red Hat Product Security <security-response-team>
Status: CLOSED ERRATA QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: unspecifiedCC: dapospis, dkopecek, dspurek, security-response-team, zzhou
Target Milestone: ---Keywords: Security
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard: impact=moderate,public=20120516,reported=20120510,source=redhat,cvss2=6.8/AV:N/AC:H/Au:M/C:C/I:C/A:C,rhel-5/sudo=affected,rhel-6/sudo=affected,fedora-all/sudo=affected
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-07-16 12:26:58 EDT Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Bug Depends On: 740884, 822175, 829756, 829757, 829766    
Bug Blocks: 820682    
Attachments:
Description Flags
Proposed sudo-v1.7.x patch from Todd C.Miller
none
Proposed sudo-v1.8.x patch from Todd C.Miller none

Description Jan Lieskovsky 2012-05-10 12:32:11 EDT
A security flaw was found in the way sudo granted access for particular host, when multiple netmask values have been used in sudo's Host / Host_List configuration. Such configuration allowed unprivileged users, who were authorized by the sudoers file to run their sudo commands, to run these commands from any host regardless of the Host_List configuration (even from hosts, which were intended according to the Host_List netmask configuration not to allow execution of such commands according to the netmask).
Comment 2 Jan Lieskovsky 2012-05-10 12:35:59 EDT
This issue affects the versions of the sudo package, as shipped with Red Hat Enterprise Linux 5 and 6.

--

This issue affects the versions of the sudo package, as shipped with Fedora release of 15 and 16.
Comment 4 Jan Lieskovsky 2012-05-12 08:57:04 EDT
Created attachment 583996 [details]
Proposed sudo-v1.7.x patch from Todd C.Miller
Comment 5 Jan Lieskovsky 2012-05-12 08:58:34 EDT
Created attachment 583997 [details]
Proposed sudo-v1.8.x patch from Todd C.Miller
Comment 6 Jan Lieskovsky 2012-05-14 12:33:46 EDT
The preliminary embargo date for this issue has been set to Wednesday, 2012-05-16.
Comment 7 Jan Lieskovsky 2012-05-16 10:45:31 EDT
Upstream advisory:
[1] http://www.sudo.ws/sudo/alerts/netmask.html
Comment 8 Jan Lieskovsky 2012-05-16 10:47:23 EDT
Created sudo tracking bugs for this issue

Affects: fedora-all [bug 822175]
Comment 9 Fedora Update System 2012-05-29 06:24:11 EDT
sudo-1.8.3p1-7.fc17 has been pushed to the Fedora 17 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 22 Fedora Update System 2012-07-12 14:55:52 EDT
sudo-1.8.3p1-3.fc16 has been pushed to the Fedora 16 stable repository.  If problems still persist, please make note of it in this bug report.
Comment 23 errata-xmlrpc 2012-07-16 11:56:12 EDT
This issue has been addressed in following products:

  Red Hat Enterprise Linux 5
  Red Hat Enterprise Linux 6

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