]> git.michaelhowe.org Git - packages/o/openafs.git/commit
OPENAFS-SA-2018-002 ptserver: prevent PR_IDToName information leak
authorMark Vitale <mvitale@sinenomine.net>
Mon, 25 Jun 2018 22:03:12 +0000 (18:03 -0400)
committerBenjamin Kaduk <kaduk@mit.edu>
Sun, 9 Sep 2018 23:34:25 +0000 (18:34 -0500)
commitc8c8682bb0e84ee5289fac3063119ae524773f61
tree1cf9e509673b55a0b144d063af03965198b36522
parente819a011a9842e640d54a4e6ccc70d1935c39827
OPENAFS-SA-2018-002 ptserver: prevent PR_IDToName information leak

SPR_IDToName does not completely initialize the return array of names,
and thus leaks information from ptserver memory:

- up to 62 bytes per requested id (PR_MAXNAMELEN 64 - 'a\0')

Use calloc to ensure that all memory sent on the wire is initialized,
preventing the information leak.

[kaduk@mit.edu: switch to calloc; update commit message]

(cherry picked from commit 70b0136d552a0077d3fae68f3aebacd985abd522)

Change-Id: I787fc26ecb6fa64b17f8579198793903bc4eb16d
src/ptserver/ptprocs.c