Bug 505983 (CVE-2009-1883) - CVE-2009-1883 kernel: missing capability check in z90crypt
Summary: CVE-2009-1883 kernel: missing capability check in z90crypt
Alias: CVE-2009-1883
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: s390
OS: Linux
Target Milestone: ---
Assignee: Red Hat Product Security
QA Contact:
Depends On: 505984 505985 505986
TreeView+ depends on / blocked
Reported: 2009-06-15 04:38 UTC by Eugene Teo (Security Response)
Modified: 2021-11-12 19:58 UTC (History)
6 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Last Closed: 2021-10-19 09:07:38 UTC

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2009:1438 0 normal SHIPPED_LIVE Important: kernel security and bug fix update 2009-09-15 08:30:27 UTC

Description Eugene Teo (Security Response) 2009-06-15 04:38:46 UTC
Solar Designer reported a missing capability check in the z90crypt driver
in the Linux kernel. This missing check could allow a local, unprivileged
user to bypass intended capability restrictions.

Comment 2 Eugene Teo (Security Response) 2009-06-15 04:51:54 UTC
Doesn't affect upstream anymore. We need to fix this in rhel-3/4.

@@ -1887,20 +1887,21 @@ z90crypt_unlocked_ioctl(struct file *fil
 				PRINTK("No longer issuing messages about depre"
 				       "cated ioctl Z90STAT_PCIXCCCOUNT.\n");
 		tempstat = get_status_PCIXCCcount();
 		if (copy_to_user((int *)arg, &tempstat, sizeof(int)) != 0)
 			ret = -EFAULT;
 	case Z90QUIESCE:
+/* AUDIT-UL: should check a capability */
 		if (current->euid != 0) {
 			PRINTK("QUIESCE fails: euid %d\n",
 			ret = -EACCES;
 		} else {
 			PRINTK("QUIESCE device from PID %d\n", PID());
 			quiesce_z90crypt = 1;

Comment 3 Eugene Teo (Security Response) 2009-06-15 04:53:18 UTC
 171 *   Z90QUIESCE (not recommended)
 172 *     Quiesce the driver.  This is intended to stop all new
 173 *     requests from being processed.  Its use is NOT recommended,
 174 *     except in circumstances where there is no other way to stop
 175 *     callers from accessing the driver.  Its original use was to
 176 *     allow the driver to be "drained" of work in preparation for
 177 *     a system shutdown.

Comment 10 errata-xmlrpc 2009-09-15 08:30:39 UTC
This issue has been addressed in following products:

  Red Hat Enterprise Linux 4

Via RHSA-2009:1438 https://rhn.redhat.com/errata/RHSA-2009-1438.html

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