5:35 PM - New mports
audio/nas, qmake, qt33, python 2.3, and python 2.4 were added to mports today. linux-thunderbird was updated.
audio/nas, qmake, qt33, python 2.3, and python 2.4 were added to mports today. linux-thunderbird was updated.
-- http://www.kernelhacking.com/rodrigo Kernel Hacking: If i really know, i can hack GPG KeyID: 5E90CA19 ________________________________________________ Message sent using UebiMiau 2.7.2
FreeBSD all versions FireWire IOCTL kernel integer overflow information disclousure 11/15/2006 Notice =================== This bug has been specially discovered for the Month of Kernel Bugs and to the Hackers to Hackers Conference III (http://www.h2hc.org.br/en/). 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 lenght value. This value will bypass the lenght check (because the value is negative) and will be used in a copyout operation. Systems Affected =================== FreeBSD all versions NetBSD all versions DragonFly all versions TrustedBSD* all versions Impact =================== 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 ;) ) Explanation =================== Firewire interface can be tunned. It provides an ioctl function receiving many parameters that can be changed. The follow 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 lead an attacker dump all the system memory. Solution =================== Attached in this advisory a patch for the FreeBSD 5.5 (it's pretty simple, so, just need to be little changed to the other BSD's) Timelife =================== 11/15/2006 - Advisory Public Disclousure (sorry for the developers, but we are just respecting the Month of Kernel Bugs Timelife) Acknowledgments =================== Filipe Balestra <filipe@balestra.com.br> and Rodrigo Rubira Branco (BSDaemon) <rodrigo@kernelhacking.com> for the discovering, analysis and patch. Contact Information =================== You can reach the authors of this advisory by mail or visiting some websites: http://www.balestra.com.br -> Personal Website of Filipe http://www.risesecurity.org -> RISE Security Research (Rodrigo is member of the RISE Security Team) http://www.kernelhacking.com/rodrigo -> Personal Website of Rodrigo References =================== http://www.kernelhacking.com/bsdadv1.txt -> Actual version of the advisory http://www.risesecurity.org/RISE-2006002.txt -> Related issue Disclaimer (taken from teso-team) =================== This advisory does not claim to be complete or to be usable for any purpose. Especially information on the vulnerable systems may be inaccurate or wrong. The supplied exploit is not to be used for malicious purposes, but for educational purposes only. This advisory is free for open distribution in unmodified form.
--- dev/firewire/fwdev.c.origFri Oct 13 13:12:49 2006 +++ dev/firewire/fwdev.cFri Oct 13 13:13:42 2006 @@ -712,7 +712,7 @@ out: else len = fwdev->rommax - CSRROMOFF + 4; } -if (crom_buf->len < len) +if (crom_buf->len < len && crom_buf->len > 0) len = crom_buf->len; else crom_buf->len = len;
Python 2.2 was just added to mports. We now have 2.1 and 2.2 working on MidnightBSD. The 2.1 port makes a symlink to /usr/local/bin/python but the 2.2 port does not. If you use a port that requires python like subversion, you will need to manually add the symlink if you choose to use python 2.2
OpenSSH port was updated to 4.5p1. Anyone concerned about the possible security issue can install this port.
A new version of OpenSSH was released. We are researching the need to update the version in base. The fix list states that there were bugs in solaris and a potential security hole that requires additional interference to compromise.
There have been several additions to ports. One of the most recent additions is xinetd.
I've isolated the problem with OpenSSH. OpenSSH 4.4p1 requires strtonum. Archite commited it 2 months ago, but he forgot to add it to stdlib.h :)
As such, the function didn't have a correct prototype and caused the function which reads /etc/ssh/moduli to always hit its error handler.
The mport version now appears to work properly. I'll try base later.
Our first OpenGL game is working under MidnightBSD. Enemy Territory was running with the nvidia freebsd binary driver tonight at about 70fps @ 1024 x 768 on a GeForce 7300 pcie card while compiling gcc on a dual core 2.66 Pentium D.
For ET fans, there appears to be some kick issues on the server I tested tonight. It could be a cvar violation in relation to "linux" checks. I need to sleep so I won't be investigating it further tonight.
The system is running a kernel from late yesterday prior to the last few commits with SSE.
On a side note, I noticed the generic ide controller detection is picking up the single pci channel on my intel motherboard but not the drives connected to it. There is more information on this in the forum under general hardware support.
ata, fdc, kbdmux, usb, mpt, atkbd, vge, random, pci, and ahb.
Phil's been hard at work with mports lately. In the last few days he's imported postgresql, php5, aide, mhash, php5-mysql, mplayer, mplayer-skins, xvid, mail/spamd, www/neon, pwgen, bitlbee, postgresql-plruby, p5-DBD-pg, and postgresql-docs.
I'm also added linux-firefox and linux-firefox-devel updates.
I've spent a good part of the day updating support for various hardware devices. MidnightBSD now supports Intel ICH8 sata chipsets including the version found on the Intel DP965LT Motherboard. Fixes were imported for usb, atkbd, kbdmux, and kbd. The mpt driver used by several LSI SCSI and Fibre Channel controllers was udated, although it has not be extensively tested yet.
If you purchase a newer system with an unsupported PATA controller like that included with the above mentioned intel board, you can install MidnightBSD using a USB cd/dvd drive. There are some issues with some usb devices and midnightbsd. If you have difficulty, try booting a freebsd 6.2 beta cd. You can install freebsd and then build and install midnightbsd from source. Remember the kernel will not sync well with userland so you must do an installworld before rebooting. You can always install the kernel and boot off kernel.old to installworld if you wish to test first. I'm hoping the new USB driver updates might help with this problem. I've noticed it with a Pioneer DVD burner which is also known to be a bit odd in OS X and Windows.
I started working on ata tonight. src might be broken on and off during the weekend as i work on it.
Archite is working on mtree and security scripts.
Wintellect has been commiting some ports. Cherokee was added on the 11th. OpenBox and xli were commited earlier in the week.
Development has slowed down this week. Most commiters are quite busy right now. I'm personally still working on getting MidnightBSD to support my new computer.
location: Home
music: All Apologies - MTV Unplugged in New York - Nirvana