PROBLEM:        (ZPOB11462/ZUO100453, SSRT0330U)	(Patch ID: OSF350-007)
********
o  Occasionally, users will still be present in /var/adm/utmp even after
   they have logged out.  When this happens the user still appears as
   logged in when displayed by "who" or "last".

o  A potential security vulnerability has been discovered, where under certain
   circumstances users may gain unauthorized access. Digital has corrected this
   potential vulnerability.


PROBLEM:	(TKTQ42106,TKTB75167,TKTB83473)		(Patch ID: OSF350-027)
********
On systems with worldwide support and with message catalogs installed, when a 
locale is set, xdm (the workstation login screen) and the passwd command will
core dump when displaying some messages.

For xdm, the message "Too many users logged on already.  Try again later."
will cause a core dump.

For the passwd command, the message "Sorry" will cause a core dump.

The core dumps for both xdm and passwd will show the following routines
at the top of the stack:

   0 strlen() ["../../../../../src/usr/ccs/lib/libc/alpha/strlen.s":54
   1 _doprnt() ["../../../../../src/usr/ccs/lib/libc/doprnt.c":1259]
   2 vsprintf() ["../../../../../src/usr/ccs/lib/libc/vsprintf.c":103]
   3 __sia_warning() ["../../../../../src/usr/ccs/lib/libc/SIA/sia_log.c":250]


PROBLEM:	(QARs - 35249,35258,35271,3527)		(Patch ID: OSF350-080)
********	     (CLDs - STLN62255,HPXQ56EAD,HPAQ6151D,HPXQ64859)

sprintf() can add one extra uninitialized character after "%*.*f" format strings 
if the precision is zero.  

One can work around this problem by initializing the sprintf() "buffer" with the 
NULL (\0) character before calling sprintf().

csh> cat test.c
 main()
 {
    double val = 1.1;
    int    fw = 5;    /* Width of field */
    int    dp = 0;    /* Decimal Places */
    char   buf[20];

    strcpy(buf, "XXXXXX");
    sprintf(buf, "%*.*f", fw, dp, val);
    puts(buf);
 }
csh>
csh> cc test.c
csh>
csh> a.out
     1X
csh>


PROBLEM:      	(QAR 40685)				(Patch ID: OSF350-088)
********
A dataless system will hang when transitioning from single to multi-user mode.


PROBLEM:	(QAR 41702)				(Patch ID: OSF350-108)
********
Multithreaded applications run on V3.2C which use any of the get*_r() functions 
may dump core or produce incorrect results. The problem will show up only in 
code that is linked against, or dlopen()'s libc_r and makes calls to functions 
whose names match the pattern get*_r.

A program exhibiting this problem will often core-dump with a stack
trace which shows it was in one of the get*_r functions.


PROBLEM:        (SSRT0359X)                      	(Patch ID: OSF350-128)
********
A potential security vulnerability has been discovered, where under certain
circumstances, system integrity may be compromised. This may be in the form 
of improper file or privilege management. Digital has corrected this potential 
vulnerability.

        
PROBLEM:	(QAR 43844)		 		(Patch ID: OSF350-133)
********
If the 2nd argument (source array) to strncat() points to a location in memory 
where there is no null terminator between that location and the 'n'th (3rd 
argument) subsequent byte and the memory immediately following this 'n'th byte 
is not mapped, then the strncat() function may fail with a SEGV.

$ cat foo.c
#include <stdio.h>
#include <stdlib.h>
#include <sys/mman.h>
main()
{
   int len, i;
   char string1[10];
   char *p;
   char *startp;

   len = getpagesize();
   p = (char *) valloc(len*2);
   mprotect(p+len, len, PROT_NONE);

   p+=(len-5);
   startp=p;
   for(i=0;i<5;i++)
     *p++='a';

   string1[0]='\0';
   strncat(string1, startp, 5);
   printf("string1 = %s\n",string1);
}
$ cc foo.c
$ a.out
Memory fault(coredump)


PROBLEM:        (QAR 41329)		(Patch ID: OSF350-137)
********
Fix multiple processes from adding duplicate ut_id lines in the utmp file with 
duplicate ut-id keys.

This can occur on multi-processor systems when two or more users use pututline() 
with the same ut_id.


PROBLEM:	(ZUO100558)		(Patch ID: OSF350-153)
********
This patch fixes three problems:

 1)  Unsuccessful attempts to su to root were not recorded in syslog/auth.log.

 2)  Attempts to su to nonexistent user names were being recorded in 
     syslog/auth.log.

 3)  The username recorded in syslog/auth.log was recorded as root rather than 
     the users username.

This patch applies to both base level and enhanced security. The error will 
appear differently depending on whether base or enhanced security has been 
selected.
	
Beginning from a non-root account (Example: lclee)
(1) su to root using an invalid password
(2) su to a nonexistant account
(3) su to root with the correct password
	
Examine the file /var/adm/syslog.dated/<boottime>/auth.log 
tail /var/adm/syslog.dated/<boottime>/auth.log
	
If the system is running BASE security and needs the patch
(1) Mar  1 14:21:30 industrial su: BADSU lclee on /dev/ttyp0
(2) Mar  1 14:23:58 industrial su: BADSU lclee on /dev/ttyp0
(3) Mar  1 14:24:06 industrial su: SU lclee on /dev/ttyp0
	
If the system is running ENHANCED security and needs the patch
(1) no message
(2) Mar  1 14:23:58 industrial su: BADSU root on /dev/ttyp0
(3) Mar  1 14:24:06 industrial su: SU root on /dev/ttyp0
	
If the system has the patch applied (base or enhanced)
(1) Mar  1 14:22:43 industrial su: BADSU lclee on /dev/ttyp0
(2) no message
(3) Mar  1 14:24:06 industrial su: SU lclee on /dev/ttyp0


PROBLEM:	(QAR 43849, QAR 45014) (Patch ID: OSF350-154)
********
This patch fixes a problem with taso applications that set the malloc(3) 
__sbrk_override and __taso_mode tuning parameters to true.  Under these 
circumstances, malloc(3) can return ENOMEM before all of the taso address 
space is allocated.

A brief description of the taso feature can be found in the cc(3) reference page
where the -taso switch is documented. The malloc(3) tuning parameters are 
documented on the malloc(3) reference page.


PROBLEM:	(CLD MGO102122, QAR 45686) (Patch ID: OSF350-217)
********
This patch fixes a memory leak problem that occurs when strxfrm() or wcsxfrm() 
executes in a locale that allows one character to substitute for another during 
collation. An example is the de_DE.ISO8859-1 locale, in which "ss" is equivalent
to and may be substituted for the German sharp s. In such a locale, each 
invocation of strxfrm() or wcsfrm() causes some amount of heap memory to be 
leaked. When you apply this patch, the memory leak no longer occurs.


PROBLEM:	(QAR 38929)	(Patch ID: OSF350-217)
********
This patch also fixes some incorrect behavior in the __do_replacement() 
function, which is used by both strxfrm() and strcoll(). Before the fix, 
__do_replacement() might use the same string pointer for the source and 
destination strings in the strcpy() function. Results were unpredictable. In 
addition, __do_replacement() did not test the output buffer size to determine 
if the resulting string would indeed fit in the output buffer. The patch solves 
all these problems.


PROBLEM:	(QAR 45694)	(Patch ID: OSF350-222)
********
This patch fixes a problem in the fnmatch() routine's single-byte and multibyte 
versions, which incorrectly match '?' to a null character.  As a result, a 
filename pattern like "???" could match not only a filename containing "aaa", 
but also one containing "a" or "aa".  Because the find command uses fnmatch() 
for filename pattern matching, there is a chance that data files may be removed 
unintentionally.  An example is as follows:

        % find . -name 'data???' -exec rm {} \;

        This command could inadvertently remove files named "data1",
        "data10",  and so forth.

        Note that the problem fixed by this patch occurs only when you
        use locales other than the default C locale.


PROBLEM:	(HPAQ46E01)	(Patch ID: OSF350-236)
********
After patch OSF350-128 was installed, sendmail would generate a core dump with a
segmentation fault.  The stripped sendmail does not contain a symbol table so 
the core dump is hard to interpret.  

To determine whether this problem exists on your system, run the following test:
(1) On the system being tested, telnet to port 25.  
(2) Enter illegal commands and check whether sendmail generates a core dump.


PROBLEM:	(QAR 46198)	(Patch ID: OSF350-253)
********
The setlocale() function may sometimes pass a null pointer to the free() 
function. This is not harmful if site applications use the memory allocation 
package (malloc() and free() functions) bundled in the Digital UNIX C Library. 
However, if site applications use a locally developed memory allocation package 
or one included as part of a layered product, passing a null pointer to free() 
may cause the applications to fail. To avoid this problem, this patch installs a 
version of setlocale() that checks a pointer for null before passing the pointer
to free().


PROBLEM:	(BRO100738)	(Patch ID: OSF350-279)
********
When testing applications on a BSD-style device such as /dev/tty0h, the ttyslot 
function returns a number matching the index into the /var/adm/utmp file.  
However, when running the same program on an SVR4-style device such as 
/dev/lat/622, the ttyslot function always returns zero.  The problem can be 
indentified easily by running the sample test program included here.

Copy the following program to ttyslot_test.c:

#include <sys/ioctl.h>
#include <stdio.h>
#include <string.h>
#include <utmp.h>

main()
{
        printf("ttyslot() = %d\n", ttyslot());
        exit(1);
}

Error messages may vary, depending on which applications are being run. When 
connected to a system over an SVR4-style LAT device the application calls the 
ttyslot function to locate the entry in the /var/adm/utmp file. The ttyslot 
function returns zero in error because it fails to match the control terminal.  
When you connect to a system over a LAT device and make a ttyslot function call 
to locate the entry in the /var/adm/utmp file for the control terminal of the 
current process, ttyslot() returns zero in error because it fails to match the 
control terminal.


PROBLEM:	(ZUO100404)	(Patch ID: OSF350-003)
********
This problem is more obvious with ypserv, but it can occur on ypbind also. 
If there was a heavy load on a NIS server causing more than 32 connections, 
ypserv would "lose" some of them.  A "netstat -an" on the system would show 
many TCP connections in the "CLOSE_WAIT" state and ypserv would keep taking 
up more and more of physical memory.


PROBLEM:	(qar 46193)	(Patch ID: OSF350-210)
********
On the master server a push is generally done automatically when a map is built 
(cd /var/yp; make <map>). Or yppush may be called interactively.

Currently, the yppush process will print

	Transfer from <slave server> still processing ...

twice, after a delay of several minutes, and then  
pushed <map>

but the map in fact does not get transferred to the slave.
With the patched ypserv running on the slave, the "transfer ..." messages 
do not appear, and the map is in fact transferred.


PROBLEM:        (CLD-00805)     (Patch ID: OSF350-348-1)
********
A potential security vulnerability has been discovered in BIND
 (Domain Name Service), where under certain circumstances,
system integrity may be compromised.

This may be in the form of improper file or privilege management.

Digital has corrected this potential vulnerability.


PROBLEM:  ( QAR 36776 )         (Patch ID: OSF350-046)
********
Problem symptom: BIND clients cannot perform lookups when given a nameserver
address that is an interface alias address on the BIND server. The lookup hangs
for a period of time, then times out.

To reproduce the problem: ifconfig an alias address for an interface on the BIND
server.  Restart the BIND server.  Enter the alias address as the 'nameserver'
address in /etc/resolv.conf on the BIND client.  Try a name lookup (e.g. with
nslookup) on the BIND client, it will hang and eventually time out.


PROBLEM:	(HPXQ86E65, QAR 49170)	(Patch ID: OSF350-349-1)
********
This patch allows getty to accept uppercase usernames.  This makes getty
consistent with the login and telnet commands. 

Previously, getty would convert a terminal to display and accept 
only uppercase letters if a username was entered in uppercase.


PROBLEM:        (USG-03550, QAR: 46537)	(Patch ID: OSF350-398)
********
The problem occurs when a machine has a large number (hundreds) of
"getty" processes running and executes a shutdown. The machine may take
excessively long to shut down (i.e. half an hour).


PROBLEM:        (QAR 53135, QAR 44398)  (Patch ID: OSF350-412)
********
This patch fixes a TCP/IP problem that can occur with programs linked
with the libc library.  These programs may return a value of (-1)
when calling the svc_tcp() function.

This problem occurs because a return value, EINTR, is ignored in the
readtcp() and writetcp() functions.  The patch involved checking for
this return before continuing a readtcp() and writetcp().


PROBLEM:        (QAR 54708, CLD MCSM71N73)      (Patch ID: OSF350-449)
********
The printing of a string with a specified precision could result
in a segmentation fault.

In this case, the C Standard does NOT require a NULL terminated input.


FILE(s):

/sbin/arp				subset OSFCLINET350
CHECKSUM: 09471    272	RCSfile: arp.c		RCS: 4.2.7.4
/sbin/cfgmgr				subset OSFBASE350
CHECKSUM: 43393    232
/sbin/init 				subset OSFBASE350
CHECKSUM: 41958    184	RCSfile: getut.c	RCS: 4.2.22.4
/sbin/mount				subset OSFBASE350
CHECKSUM: 18754    384	RCSfile: mount.c	RCS: 4.3.40.2
                        RCSfile: mountxcdr.c    RCS: 1.1.2.4
                        RCSfile: mountxdr.c     RCS: 4.2.7.2
                        RCSfile: mountxdr_v3.c  RCS: 1.1.2.3
/sbin/route				subset OSFCLINET350
CHECKSUM: 34206    296	RCSfile: route.c	RCS: 4.2.7.4
/sbin/shutdown				subset OSFBASE350
CHECKSUM: 16617    312	RCSfile: shutdown.c	RCS: 4.3.36.2
/sbin/sysconfig				subset OSFBASE350
CHECKSUM: 44823    288	RCSfile: sysconfig.c	RCS: 4.2.12.4
/sbin/sysconfigdb			subset OSFBASE350
CHECKSUM: 27342    272	RCSfile: sysconfigdb.c	RCS: 4.2.12.7
/sbin/umount				subset OSFBASE350
CHECKSUM: 19162    256	RCSfile: umount.c	RCS: 4.2.15.2
/usr/bin/nslookup			subset OSFCLINET350
CHECKSUM: 62319    128
/usr/ccs/lib/libc.a             	subset OSFCMPLRS350
CHECKSUM: 48047   1649
/usr/ccs/lib/libc_r.a           	subset OSFPGMR350
CHECKSUM: 02301    953
/usr/lib/nls/msg/en_US.ISO8859-1/libc.cat	subset OSFBASE350
CHECKSUM: 31768     12
/usr/lib/nls/msg/en_US.ISO8859-1/nslookup.cat	subset OSFCLINET350
CHECKSUM: 61457      7
/usr/include/netdb.h			subset OSFPGMR350
CHECKSUM: 03768      8	RCSfile: netdb.h	RCS: 4.2.27.2
/usr/include/resolv.h			subset OSFPGMR350
CHECKSUM: 08628      7
/usr/include/arpa/nameser.h		subset OSFPGMR350
CHECKSUM: 13142     11
/usr/sbin/getty				subset OSFBASE350
CHECKSUM: 50070    168	RCSfile: getty.c	RCS: 4.3.24.3
/usr/shlib/libc.so              	subset OSFBASE350
CHECKSUM: 28318   1248
/usr/shlib/libc_r.so           		subset OSFBASE350
CHECKSUM: 18534    800
/usr/sbin/auditd			subset OSFBASE350
CHECKSUM: 24974    336	RCSfile: auditd.c	RCS: 1.1.6.7
/usr/sbin/rlogind			subset OSFCLINET350
CHECKSUM: 13748     32	RCSfile: rlogind.c	RCS: 4.2.27.2
/usr/sbin/shutdown              	subset OSFBASE350
CHECKSUM: 36337     32	RCSfile: shutdown.c	RCS: 4.3.36.2
/usr/sbin/ypbind                	subset OSFCLINET350
CHECKSUM: 20263    256	RCSfile: ypbind.c	RCS: 4.2.14.2 
/usr/sbin/ypserv 			subset OSFINET350
CHECKSUM: 58605     40	RCSfile: ypserv_proc.c	RCS: 4.2.11.2
