CWE
190
Advisory Published
CVE Published
Updated

CVE-2011-1593: Integer Overflow

First published: Tue Apr 19 2011(Updated: )

A signedness issue has been found in next_pidmap() function when the "last" parameter is negative as next_pidmap() just quietly accepted whatever "last" pid that was passed in, which is not all that safe when one of the users is /proc. Setting f_pos to negative value when accessing /proc via readdir()/getdents() resulted in sign extension of this value when map pointer was being constructed. This later lead to #GP becasue the final pointer was not cannonical (x86_64). map = &amp;pid_ns-&gt;pidmap[(last + 1)/BITS_PER_PAGE]; ffffffff810ac3b4: 48 63 f6 movslq %esi,%rsi &lt;- sign extension (f_pos+-) ffffffff810ac3b7: 81 e2 ff 7f 00 00 and $0x7fff,%edx ffffffff810ac3bd: 48 c1 ee 0f shr $0xf,%rsi ffffffff810ac3c1: 48 c1 e6 04 shl $0x4,%rsi ffffffff810ac3c5: 48 8d 5c 37 08 lea 0x8(%rdi,%rsi,1),%rbx ... if (unlikely(!map-&gt;page)) ffffffff810ac3cc: 48 8b 7b 08 mov 0x8(%rbx),%rdi &lt;- #GP Only x86_64 architecture seems to be vulnerable to this particular issue (tested ppc64, s390x, ia64). Reference: <a href="http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/93c1088451fd3522/4a28ecb7f755a88d?#4a28ecb7f755a88d">http://groups.google.com/group/fa.linux.kernel/browse_thread/thread/93c1088451fd3522/4a28ecb7f755a88d?#4a28ecb7f755a88d</a> Upstream commit: <a href="http://git.kernel.org/linus/c78193e9">http://git.kernel.org/linus/c78193e9</a> <a href="http://git.kernel.org/linus/d8bdc59f">http://git.kernel.org/linus/d8bdc59f</a> Acknowledgements: Red Hat would like to thank Robert Swiecki for reporting this issue.

Credit: secalert@redhat.com secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Linux Linux kernel<2.6.38.4
Redhat Enterprise Linux Server=5.0
Redhat Enterprise Linux Workstation=5.0
Redhat Enterprise Linux=5.0
Redhat Enterprise Linux Desktop=5.0
Redhat Enterprise Linux Eus=5.6
Redhat Enterprise Linux Aus=5.6
Canonical Ubuntu Linux=8.04
debian/linux-2.6

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2024 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203