CVE-2015-3245

Description

It was found that libuser, as used by the chfn userhelper functionality, did not properly filter out newline characters in GECOS fields. A local, authenticated user could use this flaw to corrupt the /etc/passwd file, resulting in a denial-of-service on the system.

Déclaration

Red Hat Enterprise Linux 5 is now in Production 3 Phase of the support and maintenance life cycle. This vulnerability has been rated as having Moderate security impact and is not currently planned to be addressed in future updates. For additional information, refer to the Red Hat Enterprise Linux Life Cycle: https://access.redhat.com/support/policy/updates/errata/.

Mesure d'atténuation

Add pam_warn and pam_deny rules to /etc/pam.d/chfn and /etc/pam.d/chsh to prevent non-root users from using this functionality. With these edits, the files should contain:

#%PAM-1.0
auth sufficient pam_rootok.so
auth required pam_warn.so
auth required pam_deny.so
auth include system-auth
account include system-auth
password include system-auth
session include system-auth

Afterwards, attempts by unprivileged users to use chfn and chsh (and the respective functionality in the userhelper program) will fail, and will be logged (by default in /var/log/secure).

Détails du score du système commun d'évaluation des vulnérabilités (CVSS)

Info alert:Important note

CVSS scores for open source components depend on vendor-specific factors (e.g. version or build chain). Therefore, Red Hat's score and impact rating can be different from NVD and other vendors. Red Hat remains the authoritative CVE Naming Authority (CNA) source for its products and services (see Red Hat classifications).

Répartition des scores CVSS v2

Red HatNVDcve.org
Score de base1.72.1N/A
Vecteur d'attaqueLocalLocalN/A
Complexité d'accèsLowLowN/A
AuthentificationSingleNoneN/A
Impact sur la confidentialitéNoneNoneN/A
Impact sur l'intégritéNoneNoneN/A
Impact sur la disponibilitéPartialPartialN/A

Vecteur

Red Hat: AV:L/AC:L/Au:S/C:N/I:N/A:P

NVD: AV:L/AC:L/Au:N/C:N/I:N/A:P

Comprendre la Défaillance (CWE)

Confidentiality,Integrity,Availability,Other

Technical Impact: Execute Unauthorized Code or Commands; Alter Execution Logic; DoS: Crash, Exit, or Restart

Remerciements

Red Hat would like to thank Qualys for reporting this issue.

Questions fréquemment posées

Vous souhaitez recevoir des notifications d'errata ? Signez ici.