Ethical Hacking Learn to find vulnerabilities before the bad guys do! Gain real world hands on hacking experience in our state of the art hacking lab. Course designed and taught by expert instructors with years of penetration testing experience. 12 student maximum in every class. Certification attempt included in every package. | Computer Forensics Training at InfoSec Institute Gain the in-demand skills of a certified computer examiner, learn to recover trace data left behind by fraud, theft, and cybercrime perpetrators. Discover the source of computer crime and abuse at your organization so that it never happens again. All of our class sizes are guaranteed to be 12 students or less to facilitate one-on-one interaction with one of our expert instructors. |

| Subject: | [UNIX] FreeBSD/NetBSD/DragonFlyBSD/TrustedBSD FireWire IOCTL Kernel Integer Overflow Information Disclousure |
|---|---|
| Date: | 16 Nov 2006 15:24:59 +0200 |
The following security advisory is sent to the securiteam mailing list, and can be found at the SecuriTeam web site: http://www.securiteam.com - - promotion The SecuriTeam alerts list - Free, Accurate, Independent. Get your security news from a reliable source. http://www.securiteam.com/mailinglist.html - - - - - - - - - FreeBSD/NetBSD/DragonFlyBSD/TrustedBSD FireWire IOCTL Kernel Integer Overflow Information Disclousure ------------------------------------------------------------------------ SUMMARY Firewire device is enabled by default in the GENERIC kernel. It defines an IOCTL function which can be malicious called passing a negative buffer length value. This value will bypass the length check (because the value is negative) and will be used in a copyout operation. DETAILS Vulnerable Systems: * FreeBSD (all versions) * NetBSD (all versions) * DragonFly (all versions) * TrustedBSD* (all versions) Description: Firewire device is enabled by default in the GENERIC kernel. It defines an IOCTL function which can be malicious called passing a negative buffer length value. This value will bypass the length check (because the value is negative) and will be used in a copyout operation. This is a kernel bug and the system can be compromised by local users and important system informations can be discloused (basically, a mem dump ;) ). Patch Availability: There is an unofficial patch released by the folks who released this advisory, at: <http://www.kernelhacking.com/bsdadv1.txt> http://www.kernelhacking.com/bsdadv1.txt Technical Details: Firewire interface can be tunned. It provides an ioctl function receiving many parameters that can be changed. The following is a code fragment from (FreeBSD - dev/firewire/fwdev.c (fw_ioctl function) || DragonFlyBSD bus/firewire/fwdev.c (fw_ioctl function) || NetBSD - dev/ieee1394/fwdev.c (FW_IOCTL function)) file: if (crom_buf->len < len) len = crom_buf->len; else crom_buf->len = len; err = copyout(ptr, crom_buf->ptr, len); We control the crom_buf->len (it's passed as argument to the ioctl function) so, passing it as a negative value will bypass this if statement (our value is minor than the default one). So, our value is used in a copyout function. ptr is defined before this copyout as: if ( fwdev == NULL ) { ... ptr = malloc(CROMSIZE, M_FW, M_WAITOK); ... } else { ptr = (void *)&fwdev->csrrom[0]; ... } This information disclousure leads to an attacker dumping all the system memory. ADDITIONAL INFORMATION For the original advisory, visit: The information has been provided as part of MoKB, by: <mailto:filipe at balestra.com.br> Filipe Balestra and <mailto:rodrigo at kernelhacking.com> Rodrigo Rubira Branco (BSDaemon). ======================================== This bulletin is sent to members of the SecuriTeam mailing list. To unsubscribe from the list, send mail with an empty subject line and body to: list-unsubscribe@securiteam.com In order to subscribe to the mailing list, simply forward this email to: list-subscribe@securiteam.com ==================== ==================== DISCLAIMER: The information in this bulletin is provided "AS IS" without warranty of any kind. In no event shall we be liable for any damages whatsoever including direct, indirect, incidental, consequential, loss of business profits or special damages.
| <Prev in Thread] | Current Thread | [Next in Thread> |
|---|---|---|
| ||
| Previous by Date: | [NT] Conxint FTP MKD DIR and GET Directory Transversal, SecuriTeam |
|---|---|
| Next by Date: | Re: [Full-disclosure] FreeBSD all versions FireWire IOCTL kernel integer overflow information disclousure, Lucas Holt |
| Previous by Thread: | [NT] Conxint FTP MKD DIR and GET Directory Transversal, SecuriTeam |
| Next by Thread: | [EXPL] Oxygen SQL Injection (Exploit, O2PHP), SecuriTeam |
| Indexes: | [Date] [Thread] [Top] [All Lists] |