Custom Search

Thursday, March 11, 2004

OpenBSD Patching

New patch, 018_tcp.patch, applied tonight on my laptop, still running OpenBSD 3.3 with previous applicable patches applied. Here's the basic info: ------------ OpenBSD's TCP/IP stack did not impose limits on how many out-of-order TCP segments are queued in the system. If an attacker was allowed to connect to an open TCP port, he could send out-of-order TCP segments and trick the system into using all available memory buffers. Packet handling would be impaired, and new connections would fail until the the attacking TCP connection is closed. The problem is fixed in -current, 3.4-stable and 3.3-stable. Patches are available at: ------------ And, for those who might have problems following the directions in the patch, there are some good instructions at: They are as follows: From the Patch itself. Apply by doing: cd /usr/src patch -p0 < 013_tcp.patch Rebuild your kernel. Update headers. make includes Then rebuild and install sysctl: cd sbin/sysctl make depend make make install Analysis follows :- first we change our working directory to /usr/src. next we ally the patch using the patch program and redirect a patch file to it. Assuming that succeeded, rebuild and install your kernel. Now the next line is implied not given. cd /usr/src; make inludes "includes" is a target in the /usr/src/Makefile. It will install those lovely ".h" files that are needed, just as "install" is a target. Remember doing things like "make install"? Next rebuild and install sysctl. Oh don't forget to reboot at some point to have the new kernel load too. ------------ Hope the instructions may help someone along the way. I was a little in the dark about the "make includes".


Post a Comment

Links to this post:

Create a Link

<< Home