copyright
|
disclaimer
|
privacy
|
contact
HOME
About
AusCERT
Membership
Contact Us
PKI Services
Publications
Sec. Bulletins
Conferences
News & Media
Services
Web Log
Site Map
Site Help
Member login
Login »
Become a member »
Home
»
Security Bul...
»
By Operating...
»
UNIX (all)
» ESB-2006.0717 -- [FreeBSD] -- FreeBSD i386_set_ldt I...
ESB-2006.0717 -- [FreeBSD] -- FreeBSD i386_set_ldt Integer Signedness and Overflow Vulnerabilities
Date:
29 September 2006
Click here for printable version
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 =========================================================================== AUSCERT External Security Bulletin Redistribution ESB-2006.0717 -- [FreeBSD] FreeBSD i386_set_ldt Integer Signedness and Overflow Vulnerabilities 29 September 2006 =========================================================================== AusCERT Security Bulletin Summary --------------------------------- Product: FreeBSD 5.X Publisher: iDEFENSE Impact: Denial of Service Access: Existing Account CVE Names: CVE-2006-4178 CVE-2006-4172 Original Bulletin: http://www.idefense.com/intelligence/vulnerabilities/display.php?id=415 http://www.idefense.com/intelligence/vulnerabilities/display.php?id=414 - --------------------------BEGIN INCLUDED TEXT-------------------- FreeBSD i386_set_ldt Integer Signedness Vulnerability iDefense Security Advisory 09.23.06 http://www.idefense.com/intelligence/vulnerabilities/ Sep 23, 2006 I. BACKGROUND FreeBSD is a modern operating system for x86, amd64, Alpha, IA-64, PC-98 and SPARC architectures. It's based on the UNIX operating system, BSD, which was created at the University of California, Berkeley. More information can be obtained from the FreeBSD Project web site at http://www.FreeBSD.org/ II. DESCRIPTION Local exploitation of an integer signedness vulnerability in version 5.4 of FreeBSD allows attackers to create a denial of service condition. The i386_set_ldt() call is provided to allow user-land programs to dynamically manage the per-process local descriptor table. Due to the use of signed integers and a lack of proper input validation, a situation can occur in the kernel where bzero is called with a very large size parameter. The affected code follows. 415 int error = 0, i; 416 int largest_ld; .. 449 largest_ld = uap->start + uap->num; 450 if (largest_ld > pldt->ldt_len) 451 largest_ld = pldt->ldt_len; 452 i = largest_ld - uap->start; 453 bzero(&((union descriptor *)(pldt->ldt_base))[uap->start], 454 sizeof(union descriptor) * i); As seen on lines 415 and 416, the 'i' and 'largest_ld' variables are both signed integers. On line 449, uap->start and uap->num are added together. It should be noted that both of these variables are user controlled and are not checked properly. On line 452, 'i' can be set to a negative value which causes the bzero on line 453 to be called with a very large length parameter. Invalid memory access will result in a kernel panic. III. ANALYSIS Exploitation of this vulnerability would result in a denial of service condition on the affected host. IV. DETECTION iDefense has confirmed the existence of this problem in FreeBSD 5.5. It is suspected that versions as early as 5.2 are also affected. V. WORKAROUND iDefense is not aware of any workarounds for this issue. VI. VENDOR RESPONSE "The policy of the FreeBSD Security Team is to not issue security advisories for local denial of service attacks; since we have not been able to demonstrate that this bug can result in anything more severe than a denial of service, we will not be issuing a security advisory relating to this problem. It is possible that an Errata Notice will be issued concerning this problem." VII. CVE INFORMATION The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2006-4178 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org), which standardizes names for security problems. VIII. DISCLOSURE TIMELINE 08/16/2006 Initial vendor notification 08/16/2006 Initial vendor response 09/23/2006 Public disclosure IX. CREDIT The discoverer of this vulnerability wishes to remain anonymous. Get paid for vulnerability research http://www.idefense.com/methodology/vulnerability/vcp.php Free tools, research and upcoming events http://labs.idefense.com/ X. LEGAL NOTICES Copyright © 2006 iDefense, Inc. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please email customerservice@idefense.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. FreeBSD i386_set_ldt Integer Overflow Vulnerability iDefense Security Advisory 09.23.06 http://www.idefense.com/intelligence/vulnerabilities/ Sep 23, 2006 I. BACKGROUND FreeBSD is a modern operating system for x86, amd64, Alpha, IA-64, PC-98 and SPARC architectures. It's based on the UNIX operating system, BSD, which was created at the University of California, Berkeley. More information can be obtained from the FreeBSD Project web site at http://www.FreeBSD.org/ II. DESCRIPTION Local exploitation of a input validation error in the FreeBSD Project's i386_set_ldt() kernel implementation could allow attackers to create a kernel panic, leading to a denial of service condition on the affected computer. III. ANALYSIS Exploitation of this vulnerability would result in a denial of service condition on the affected host. There is a potential for arbitrary code execution in kernel context due to the way this function manipulates kernel heap memory. IV. DETECTION iDefense has confirmed the existence of this problem in FreeBSD 5.5. It is suspected that versions as early as 5.2 are also affected. V. WORKAROUND iDefense is not aware of any workaround for this issue. VI. VENDOR RESPONSE "It appears that the problem you have discovered was fixed in revision 1.96 of src/sys/i386/i386/sys_machdep.c on March 23, 2005, after being found by the Coverity Prevent analysis tool; the commit message at the time documented this as a local denial of service bug. The policy of the FreeBSD Security Team is that local denial of service bugs not be treated as security issues; it is possible that this problem will be corrected in a future Erratum." VII. CVE INFORMATION The Common Vulnerabilities and Exposures (CVE) project has assigned the name CVE-2006-4172 to this issue. This is a candidate for inclusion in the CVE list (http://cve.mitre.org), which standardizes names for security problems. VIII. DISCLOSURE TIMELINE 08/16/2006 Initial vendor notification 08/16/2006 Initial vendor response 09/23/2006 Public disclosure IX. CREDIT The discoverer of this vulnerability wishes to remain anonymous. Get paid for vulnerability research http://www.idefense.com/methodology/vulnerability/vcp.php Free tools, research and upcoming events http://labs.idefense.com/ X. LEGAL NOTICES Copyright © 2006 iDefense, Inc. Permission is granted for the redistribution of this alert electronically. It may not be edited in any way without the express written consent of iDefense. If you wish to reprint the whole or any part of this alert in any other medium other than electronically, please email customerservice@idefense.com for permission. Disclaimer: The information in the advisory is believed to be accurate at the time of publishing based on currently available information. Use of the information constitutes acceptance for use in an AS IS condition. There are no warranties with regard to this information. Neither the author nor the publisher accepts any liability for any direct, indirect, or consequential loss or damage arising from use of, or reliance on, this information. - --------------------------END INCLUDED TEXT-------------------- You have received this e-mail bulletin as a result of your organisation's registration with AusCERT. The mailing list you are subscribed to is maintained within your organisation, so if you do not wish to continue receiving these bulletins you should contact your local IT manager. If you do not know who that is, please send an email to auscert@auscert.org.au and we will forward your request to the appropriate person. NOTE: Third Party Rights This security bulletin is provided as a service to AusCERT's members. As AusCERT did not write the document quoted above, AusCERT has had no control over its content. The decision to follow or act on information or advice contained in this security bulletin is the responsibility of each user or organisation, and should be considered in accordance with your organisation's site policies and procedures. AusCERT takes no responsibility for consequences which may arise from following or acting on information or advice contained in this security bulletin. NOTE: This is only the original release of the security bulletin. It may not be updated when updates to the original are made. If downloading at a later date, it is recommended that the bulletin is retrieved directly from the author's website to ensure that the information is still current. Contact information for the authors of the original document is included in the Security Bulletin above. If you have any questions or need further information, please contact them directly. Previous advisories and external security bulletins can be retrieved from: http://www.auscert.org.au/render.html?cid=1980 If you believe that your computer system has been compromised or attacked in any way, we encourage you to let us know by completing the secure National IT Incident Reporting Form at: http://www.auscert.org.au/render.html?it=3192 =========================================================================== Australian Computer Emergency Response Team The University of Queensland Brisbane Qld 4072 Internet Email: auscert@auscert.org.au Facsimile: (07) 3365 7031 Telephone: (07) 3365 4417 (International: +61 7 3365 4417) AusCERT personnel answer during Queensland business hours which are GMT+10:00 (AEST). On call after hours for member emergencies only. =========================================================================== -----BEGIN PGP SIGNATURE----- Comment: http://www.auscert.org.au/render.html?it=1967 iQCVAwUBRRyCMyh9+71yA2DNAQLS9gP+OnLsAr+FfL8fNcT6Ftb24zpEbe2vpV85 o2fcEz0VqsehRKbFUhcP6UMeGU2LrMsLK1B6U0WxmUejiCcUb0gI4FtozkV4tcpu 3ZukxtgaUKrPl9nRAoH+oSSakUGQY6GclpbLvzFlqgIx67ZBy6pLmZcYNEM09u7V YDFDtpEgiyI= =Ov9Y -----END PGP SIGNATURE-----
Comments? Click here
http://www.auscert.org.au/render.html?cid=20&it=6809