FreeBSD up to 10.1 setlogin/getlogin Memory information disclosure
CVSS Meta Temp Score | Current Exploit Price (≈) | CTI Interest Score |
---|---|---|
4.6 | $0-$5k | 0.00 |
A vulnerability classified as problematic was found in FreeBSD up to 10.1 (Operating System). Affected by this vulnerability is the function setlogin/getlogin
. The manipulation with an unknown input leads to a information disclosure vulnerability (Memory). The CWE definition for the vulnerability is CWE-200. The product exposes sensitive information to an actor that is not explicitly authorized to have access to that information. As an impact it is known to affect confidentiality. The summary by CVE is:
The setlogin function in FreeBSD 8.4 through 10.1-RC4 does not initialize the buffer used to store the login name, which allows local users to obtain sensitive information from kernel memory via a call to getlogin, which returns the entire buffer.
The weakness was presented 11/04/2014 by Mateusz Guzik as FreeBSD-SA-14:25.setlogin as confirmed advisory (Website). The advisory is shared at freebsd.org. This vulnerability is known as CVE-2014-8476 since 10/24/2014. The exploitation appears to be easy. The attack can be launched remotely. The exploitation doesn't need any form of authentication. Technical details are known, but no exploit is available. MITRE ATT&CK project uses the attack technique T1592 for this issue. The advisory points out:
When setlogin(2) is called while setting up a new login session, the login name is copied into an uninitialized stack buffer, which is then copied into a buffer of the same size in the session structure. The getlogin(2) system call returns the entire buffer rather than just the portion occupied by the login name associated with the session. An unprivileged user can access this memory by calling getlogin(2) and reading beyond the terminating NUL character of the resulting string. Up to 16 (FreeBSD 8) or 32 (FreeBSD 9 and 10) bytes of kernel memory may be leaked in this manner for each invocation of setlogin(2). This memory may contain sensitive information, such as portions of the file cache or terminal buffers, which an attacker might leverage to obtain elevated privileges.
The vulnerability scanner Nessus provides a plugin with the ID 79066 (Debian DSA-3070-1 : kfreebsd-9 - security update), which helps to determine the existence of the flaw in a target environment. It is assigned to the family Debian Local Security Checks.
Upgrading eliminates this vulnerability.
The vulnerability is also documented in the databases at X-Force (98490) and Tenable (79066). See 67019, 67048 and 68048 for similar entries.
Product
Type
Name
Version
License
CPE 2.3
CPE 2.2
CVSSv4
VulDB CVSS-B Score: 🔍VulDB CVSS-BT Score: 🔍
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv3
VulDB Meta Base Score: 5.3VulDB Meta Temp Score: 4.6
VulDB Base Score: 5.3
VulDB Temp Score: 4.6
VulDB Vector: 🔍
VulDB Reliability: 🔍
CVSSv2
AV | AC | Au | C | I | A |
---|---|---|---|---|---|
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
💳 | 💳 | 💳 | 💳 | 💳 | 💳 |
Vector | Complexity | Authentication | Confidentiality | Integrity | Availability |
---|---|---|---|---|---|
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
unlock | unlock | unlock | unlock | unlock | unlock |
VulDB Base Score: 🔍
VulDB Temp Score: 🔍
VulDB Reliability: 🔍
NVD Base Score: 🔍
Exploiting
Name: MemoryClass: Information disclosure / Memory
CWE: CWE-200 / CWE-284 / CWE-266
ATT&CK: T1592
Local: No
Remote: Yes
Availability: 🔍
Status: Unproven
EPSS Score: 🔍
EPSS Percentile: 🔍
Price Prediction: 🔍
Current Price Estimation: 🔍
0-Day | unlock | unlock | unlock | unlock |
---|---|---|---|---|
Today | unlock | unlock | unlock | unlock |
Nessus ID: 79066
Nessus Name: Debian DSA-3070-1 : kfreebsd-9 - security update
Nessus File: 🔍
Nessus Risk: 🔍
Nessus Family: 🔍
OpenVAS ID: 703070
OpenVAS Name: Debian Security Advisory DSA 3070-1 (kfreebsd-9 - security update)
OpenVAS File: 🔍
OpenVAS Family: 🔍
Threat Intelligence
Interest: 🔍Active Actors: 🔍
Active APT Groups: 🔍
Countermeasures
Recommended: UpgradeStatus: 🔍
0-Day Time: 🔍
Timeline
10/24/2014 🔍11/04/2014 🔍
11/04/2014 🔍
11/05/2014 🔍
11/05/2014 🔍
11/06/2014 🔍
11/13/2014 🔍
10/02/2015 🔍
02/24/2022 🔍
Sources
Product: freebsd.orgAdvisory: FreeBSD-SA-14:25.setlogin
Researcher: Mateusz Guzik
Status: Confirmed
CVE: CVE-2014-8476 (🔍)
OVAL: 🔍
X-Force: 98490 - FreeBSD setlogin and getlogin information disclosure, Medium Risk
SecurityTracker: 1031169
Vulnerability Center: 53187 - FreeBSD Local Information Disclosure via a Call to Getlogin in setlogin Function, Low
SecurityFocus: 70912
Secunia: 61118 - FreeBSD "sys_getlogin()" Information Disclosure Weakness, Not Critical
See also: 🔍
Entry
Created: 11/06/2014 12:19Updated: 02/24/2022 08:00
Changes: 11/06/2014 12:19 (73), 02/03/2018 10:09 (8), 02/24/2022 08:00 (3)
Complete: 🔍
No comments yet. Languages: en.
Please log in to comment.