Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 209889 (CVE-2008-0216) - sys-freebsd/freebsd-lib < 6.2-r4 ptsname and script pty information disclosure (CVE-2008-{0216,0217})
Summary: sys-freebsd/freebsd-lib < 6.2-r4 ptsname and script pty information disclosur...
Status: RESOLVED FIXED
Alias: CVE-2008-0216
Product: Gentoo Security
Classification: Unclassified
Component: Vulnerabilities (show other bugs)
Hardware: All Linux
: High trivial (vote)
Assignee: Gentoo Security
URL:
Whiteboard: ~3 [noglsa]
Keywords:
Depends on:
Blocks:
 
Reported: 2008-02-12 17:59 UTC by Robert Buchholz (RETIRED)
Modified: 2008-07-06 18:05 UTC (History)
1 user (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robert Buchholz (RETIRED) gentoo-dev 2008-02-12 17:59:31 UTC
CVE-2008-0216 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0216):
  The ptsname function in FreeBSD 6.0 through 7.0-PRERELEASE does not properly
  verify that a certain portion of a device name is associated with a pty of a
  user who is calling the pt_chown function, which might allow local users to
  read data from the pty from another user.
Comment 1 Robert Buchholz (RETIRED) gentoo-dev 2008-02-12 18:02:51 UTC
CVE-2008-0217 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0217):
  The script program in FreeBSD 5.0 through 7.0-PRERELEASE invokes openpty,
  which creates a pseudo-terminal with world-readable and world-writable
  permissions when it is not run as root, which allows local users to read data
  from the terminal of the user running script.
Comment 2 Robert Buchholz (RETIRED) gentoo-dev 2008-02-12 18:03:49 UTC
BSD herd, please advise and bump.
Comment 3 Sune Kloppenborg Jeppesen (RETIRED) gentoo-dev 2008-02-26 20:40:21 UTC
BSD herd, please advise and bump.
Comment 4 Alexis Ballier gentoo-dev 2008-05-17 21:59:22 UTC
(In reply to comment #0)
> CVE-2008-0216 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0216):
>   The ptsname function in FreeBSD 6.0 through 7.0-PRERELEASE does not properly
>   verify that a certain portion of a device name is associated with a pty of a
>   user who is calling the pt_chown function, which might allow local users to
>   read data from the pty from another user.
> 

patched in freebsd-lib-6.2-r4
Comment 5 Alexis Ballier gentoo-dev 2008-05-17 22:18:21 UTC
(In reply to comment #1)
> CVE-2008-0217 (http://nvd.nist.gov/nvd.cfm?cvename=CVE-2008-0217):
>   The script program in FreeBSD 5.0 through 7.0-PRERELEASE invokes openpty,
>   which creates a pseudo-terminal with world-readable and world-writable
>   permissions when it is not run as root, which allows local users to read data
>   from the terminal of the user running script.
> 

actually the openpty function is patched too in freebsd-lib-6.2-r4

as far as I understand it, the script program doesn't need any modification
Comment 6 Pierre-Yves Rofes (RETIRED) gentoo-dev 2008-07-06 18:05:03 UTC
thanks, closing.