Bug 458652 (CVE-2008-3524)
Summary: | CVE-2008-3524 initscripts: possible system files removal via malicious symlink in /var/{lock,run} | ||
---|---|---|---|
Product: | [Other] Security Response | Reporter: | Jan Lieskovsky <jlieskov> |
Component: | vulnerability | Assignee: | Red Hat Product Security <security-response-team> |
Status: | CLOSED ERRATA | QA Contact: | |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | unspecified | CC: | k.georgiou, notting, rh-bugzilla |
Target Milestone: | --- | Keywords: | Security |
Target Release: | --- | ||
Hardware: | All | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2008-09-29 08:15:36 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | 458504 | ||
Bug Blocks: |
Description
Jan Lieskovsky
2008-08-11 11:38:00 UTC
Low security issue (requires malicious daemon with privileges to write into /var/run directory), affecting all versions of the initscripts package as shipped with Red Hat Enterprise Linux 2.1, 3, 4 and 5. Bill could you provide your opinion to this issue and if it is worthy to fix (to include the fix into the initscripts packages as shipped with RHEL*). afais, RHEL is *not* affected. This bug was introduced in F9 first by http://git.fedorahosted.org/git/?p=initscripts.git;a=commitdiff;h=b8fbfde343e39337bcbddc33cab0bc30ee4fb0e3 Sadly enough, some Fedora packages create world-writable subdirectories in /var/run, so they allow any local unprivileged user to take advantage of this flaw without having to exploit a flaw in any daemon service. Bill, may I ask what was the motivation behind using -L? Not using it should solve the issue and yet do the cleanup properly. Or is anything missed if -L is omitted what should be deleted? There was a reason, as it was even added in a separate commit after the first one. But I'm not recalling what it was. I can always just remove it, push a test update, and see what breaks. It certainly works in smoke testing. It looks like the change referenced by Enrico was done to make sure socket and symlink files in /var/{lib,run} are removed, which was not done with -type f. Along with '-type f' -> '! -type d' change, -L was added. Any file that exists in /var/{lib,run} should have a non-symlink path to it, so we do not seem to need to follow symlinks. initscripts-8.76.3-1 has been submitted as an update for Fedora 9. http://admin.fedoraproject.org/updates/initscripts-8.76.3-1 initscripts-8.76.3-1 has been pushed to the Fedora 9 stable repository. If problems still persist, please make note of it in this bug report. This issue was addressed in: Fedora: https://admin.fedoraproject.org/updates/F9/FEDORA-2008-7667 |