FreeBSD "sendfile" Information Disclosure Security Issue
Secunia Advisory: SA28928
Release Date: 2008-02-14
Popularity: 4,752 views

Critical:
Not critical
Impact: Exposure of sensitive information
Where: Local system
Solution Status: Vendor Patch

OS:FreeBSD 5.x
FreeBSD 6.x

Subscribe: Instant alerts on relevant vulnerabilities

CVE reference:CVE-2008-0777


Description:
A security issue has been reported in FreeBSD, which potentially can be exploited by malicious, local users to disclose sensitive information.

The problem is that the "sendfile" system call does not check the file descriptor access flags before sending data from a file. This can be exploited to e.g. open a write-only file and send the data even if a user has no read access.

Successful exploitation requires that the target file is write-only.

Solution:
Update FreeBSD or apply patches.

2008-02-14 11:45:00 UTC (RELENG_7, 7.0-PRERELEASE)
2008-02-14 11:45:41 UTC (RELENG_7_0, 7.0-RELEASE)
2008-02-14 11:46:08 UTC (RELENG_6, 6.3-STABLE)
2008-02-14 11:46:41 UTC (RELENG_6_3, 6.3-RELEASE-p1)
2008-02-14 11:47:06 UTC (RELENG_6_2, 6.2-RELEASE-p11)
2008-02-14 11:47:39 UTC (RELENG_6_1, 6.1-RELEASE-p23)
2008-02-14 11:49:39 UTC (RELENG_5, 5.5-STABLE)
2008-02-14 11:50:28 UTC (RELENG_5_5, 5.5-RELEASE-p19)

-- Patches --

FreeBSD 6.2, 6.3, and 7.0:
http://security.FreeBSD.org/patches/SA-08:03/sendfile.patch
http://security.FreeBSD.org/patches/SA-08:03/sendfile.patch.asc

FreeBSD 6.1:
http://security.FreeBSD.org/patches/SA-08:03/sendfile61.patch
http://security.FreeBSD.org/patches/SA-08:03/sendfile61.patch.asc

FreeBSD 5.5:
http://security.FreeBSD.org/patches/SA-08:03/sendfile55.patch
http://security.FreeBSD.org/patches/SA-08:03/sendfile55.patch.asc

Provided and/or discovered by:
Kostik Belousov

Original Advisory:
http://security.freebsd.org/advisories/FreeBSD-SA-08:03.sendfile.asc


Track this Secunia Advisory
Customers of the Secunia Vulnerability Intelligence solutions will automatically receive updates when new information regarding this advisory is released.

Read more about our Vulnerability Intelligence solutions and what they can do for you and your company.

About this Secunia Advisory
Please note: The information that this Secunia Advisory is based on comes from a third party unless stated otherwise.

Secunia collects, validates, and verifies all vulnerability reports issued by security research groups, vendors, and others.
  
Latest Advisories

Send Feedback to Secunia
If you have new information regarding this Secunia advisory or a product in our database, please send it to us using either our web form or email us at vuln@secunia.com.

Ideas, suggestions, and other feedback are most welcome.

Most Popular - 3 Hours

1. phpBB "gen_rand_string()" Predictable RNG Weakness // 89 views
2. Adobe Flash Player Multiple Vulnerabilities // 78 views
3. Sun Java JDK / JRE Multiple Vulnerabilities // 39 views
4. VLC Media Player Multiple Vulnerabilities // 35 views
5. IBM DB2 Multiple Vulnerabilities // 35 views
6. Microsoft Office Two Code Execution Vulnerabilities // 28 views
7. Microsoft Word Malformed Object Pointer Vulnerability // 27 views
8. libpng "png_push_read_zTXt()" Off-By-One Vulnerability // 27 views
9. Linux Kernel "listxattr" Memory Corruption and CHRP Denial of Service // 27 views
10. Silentum LoginSys Multiple Cross-site Scripting Vulnerabilities // 25 views