Vulnerabilities > CVE-2008-1628 - Improper Restriction of Operations Within the Bounds of A Memory Buffer vulnerability in Linux Audit
Attack vector
LOCAL Attack complexity
MEDIUM Privileges required
SINGLE Confidentiality impact
PARTIAL Integrity impact
PARTIAL Availability impact
PARTIAL Summary
Stack-based buffer overflow in the audit_log_user_command function in lib/audit_logging.c in Linux Audit before 1.7 might allow remote attackers to execute arbitrary code via a long command argument. NOTE: some of these details are obtained from third party information. Additional information can be found at: http://www.securityfocus.com/bid/28524/info http://www.frsirt.com/english/advisories/2008/1052
Vulnerable Configurations
Part | Description | Count |
---|---|---|
Application | 1 |
Common Weakness Enumeration (CWE)
Common Attack Pattern Enumeration and Classification (CAPEC)
- Buffer Overflow via Environment Variables This attack pattern involves causing a buffer overflow through manipulation of environment variables. Once the attacker finds that they can modify an environment variable, they may try to overflow associated buffers. This attack leverages implicit trust often placed in environment variables.
- Overflow Buffers Buffer Overflow attacks target improper or missing bounds checking on buffer operations, typically triggered by input injected by an attacker. As a consequence, an attacker is able to write past the boundaries of allocated buffer regions in memory, causing a program crash or potentially redirection of execution as per the attackers' choice.
- Client-side Injection-induced Buffer Overflow This type of attack exploits a buffer overflow vulnerability in targeted client software through injection of malicious content from a custom-built hostile service.
- Filter Failure through Buffer Overflow In this attack, the idea is to cause an active filter to fail by causing an oversized transaction. An attacker may try to feed overly long input strings to the program in an attempt to overwhelm the filter (by causing a buffer overflow) and hoping that the filter does not fail securely (i.e. the user input is let into the system unfiltered).
- MIME Conversion An attacker exploits a weakness in the MIME conversion routine to cause a buffer overflow and gain control over the mail server machine. The MIME system is designed to allow various different information formats to be interpreted and sent via e-mail. Attack points exist when data are converted to MIME compatible format and back.
Nessus
NASL family Gentoo Local Security Checks NASL id GENTOO_GLSA-200807-14.NASL description The remote host is affected by the vulnerability described in GLSA-200807-14 (Linux Audit: Buffer overflow) A stack-based buffer overflow has been reported in the audit_log_user_command() function in the file lib/audit_logging.c when processing overly long arguments. Impact : A local attacker could execute a specially crafted command on the host running Linux Audit, possibly resulting in the execution of arbitrary code with the privileges of the user running Linux Audit. Workaround : There is no known workaround at this time. last seen 2020-06-01 modified 2020-06-02 plugin id 33780 published 2008-08-01 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/33780 title GLSA-200807-14 : Linux Audit: Buffer overflow NASL family SuSE Local Security Checks NASL id SUSE_AUDIT-5212.NASL description A bug in the audit_log_user_command() function could lead to a buffer overflow. No program in openSUSE uses that function. Third-party applications could be affected though (CVE-2008-1628). last seen 2020-06-01 modified 2020-06-02 plugin id 32076 published 2008-04-28 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/32076 title openSUSE 10 Security Update : audit (audit-5212) NASL family Mandriva Local Security Checks NASL id MANDRIVA_MDVSA-2008-083.NASL description Joe Nall reported a stack-based buffer overflow in Audit last seen 2020-06-01 modified 2020-06-02 plugin id 37139 published 2009-04-23 reporter This script is Copyright (C) 2009-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/37139 title Mandriva Linux Security Advisory : audit (MDVSA-2008:083) NASL family Fedora Local Security Checks NASL id FEDORA_2008-3012.NASL description This release fixes the init script headers to not provide LSB info. This was causing audit to start too late. It also fixes a problem where saddr fields were not being decoded correctly on avc events in ausearch. This also fixes a buffer overflow in audit_log_user_command that is caught by FORTIFY_SOURCE, resulting in an application crash. sudo is the only application known to use this vulnerable function. Note that Tenable Network Security has extracted the preceding description block directly from the Fedora security advisory. Tenable has attempted to automatically clean and format it as much as possible without introducing additional issues. last seen 2020-06-01 modified 2020-06-02 plugin id 31825 published 2008-04-11 reporter This script is Copyright (C) 2008-2019 Tenable Network Security, Inc. source https://www.tenable.com/plugins/nessus/31825 title Fedora 8 : audit-1.6.8-4.fc8 (2008-3012)
Statements
contributor | Mark J Cox |
lastmodified | 2008-04-04 |
organization | Red Hat |
statement | This issue did not affect the audit packages as shipped with Red Hat Enterprise Linux 4. Red Hat is not treating this issue as a security vulnerability for Red Hat Enterprise Linux 5 as no application used the affected interface, and the only result is a controlled application termination as the overflow is detected by the FORTIFY_SOURCE protection mechanism. We plan to address this as non-security bug fix in updated audit packages for Red Hat Enterprise Linux 5.2. For further details, please see: https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2008-1628 |
References
- http://lists.opensuse.org/opensuse-security-announce/2008-04/msg00011.html
- http://people.redhat.com/sgrubb/audit/ChangeLog
- http://secunia.com/advisories/29617
- http://secunia.com/advisories/29754
- http://secunia.com/advisories/29957
- http://secunia.com/advisories/31316
- http://security.gentoo.org/glsa/glsa-200807-14.xml
- http://www.mandriva.com/security/advisories?name=MDVSA-2008:083
- http://www.securityfocus.com/bid/28524
- http://www.securitytracker.com/id?1019824
- http://www.vupen.com/english/advisories/2008/1052/references
- https://exchange.xforce.ibmcloud.com/vulnerabilities/41576
- https://www.redhat.com/archives/fedora-package-announce/2008-April/msg00200.html
- https://www.redhat.com/archives/linux-audit/2008-March/msg00138.html