systemd: mishandling of the current keyboard mode check leading to passwords being disclosed in cleartext to attacker
Published May 17, 2019
4.3
MEDIUMCVSS 3.1
EPSS 2.48%
Description
systemd 242 changes the VT1 mode upon a logout, which allows attackers to read cleartext passwords in certain circumstances, such as watching a shutdown, or using Ctrl-Alt-F1 and Ctrl-Alt-F2. This occurs because the KDGKBMODE (aka current keyboard mode) check is mishandled.
Affected products
No data.
Configuration 1
- 242
Configuration 2
- n/a
Configuration 3
- n/a
- n/a
No data.
Red Hat Enterprise Linux 7
systemd
Not affected
Red Hat Enterprise Linux 8
systemd
Will not fix
Red Hat Enterprise Linux 9
systemd
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | systemd | Not affected | n/a |
| Red Hat Enterprise Linux 8 | systemd | Will not fix | n/a |
| Red Hat Enterprise Linux 9 | systemd | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat statement
This vulnerability is rated as moderate rather than important because its exploitation requires specific local conditions that limit its impact and accessibility. The issue arises only under scenarios where user home directories become inaccessible, causing the login process to expose password input on a virtual terminal (VT1). To exploit this, an attacker needs local physical access (AV:P) or authenticated remote access (such as through SSH) to the system, and direct user interaction is necessary (UI:R) to actively switch between virtual terminals using `Ctrl+Alt+F1` and `Ctrl+Alt+F2`. Furthermore, the vulnerability is confined to compromising the confidentiality of password inputs (C:H), with no effect on the system's integrity (I:N) or availability (A:N). It does not grant elevated privileges, modify system state, or interfere with ongoing system operations. The combination of requiring physical proximity, specific environmental conditions, and manual toggling significantly reduces the likelihood and broader exploitability of this vulnerability, thus categorizing it as moderate severity rather than important. Further complications occur in this issue: the initial fix provided by upstream introduced a regression and was reverted. In the process of managing a new fix, other contributory issues were reported against Xorg and Plymouth. Plymouth's issue was resolved. The ostensible fix versions of systemd (v243) and Plymouth (v0.9.4) are both fixed in RHEL-9, therefore RHEL-9 has been determined to be Not Affected by this flaw. Because of uncertainties and unknowns surrounding the purported fixes, the issue will not be corrected in RHEL-8.
Metrics
No CVSS v4.0 score for this CVE.
CVSS:3.1/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
CVSS:3.0/AV:P/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N
AV:N/AC:M/Au:N/C:P/I:N/A:N
This CVE is not in the KEV list.
No CISA SSVC assessment for this CVE yet.
Estimated probability of exploitation in the wild in the next 30 days (FIRST EPSS). As of Oct 1, 2026.
Score over time
2021–2026- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Percentile over time
- EPSS v1
- EPSS v2
- EPSS v3
- EPSS v4
- EPSS v5
Table of values (17 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 2.48% (0.02478) | 83.99th | v5 (v2026.06.15) |
| Jun 15, 2026 | 2.48% (0.02478) | 82.42th | v5 (v2026.06.15) |
| Mar 17, 2025 | 0.34% (0.00338) | 54.41th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.12% (0.00121) | 48.04th | v3 (v2023.03.01) |
| Oct 25, 2024 | 0.12% (0.00121) | 47.36th | v3 (v2023.03.01) |
| May 10, 2024 | 1.75% (0.01745) | 87.86th | v3 (v2023.03.01) |
| Nov 8, 2023 | 1.42% (0.01415) | 84.98th | v3 (v2023.03.01) |
| Oct 12, 2023 | 0.90% (0.00899) | 80.88th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.94% (0.00944) | 80.74th | v3 (v2023.03.01) |
| Mar 6, 2023 | 1.11% (0.01108) | 55.18th | v2 (v2022.01.01) |
| Sep 17, 2022 | 1.11% (0.01108) | 53.57th | v2 (v2022.01.01) |
| Apr 1, 2022 | 1.11% (0.01108) | 51.54th | v2 (v2022.01.01) |
| Feb 4, 2022 | 1.11% (0.01108) | 29.61th | v2 (v2022.01.01) |
| Feb 3, 2022 | 1.45% (0.01454) | 32.67th | v1 |
| Jan 6, 2022 | 1.45% (0.01454) | 31.96th | v1 |
| Sep 1, 2021 | 1.45% (0.01454) | 71.88th | v1 |
| Apr 14, 2021 | 1.45% (0.01454) | 0.00th | v1 |
References (10)
- http://www.securityfocus.com/bid/108389 vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry
- https://access.redhat.com/security/cve/CVE-2018-20839 Vendor Advisory
- https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1803993 x_refsource_MISCIssue TrackingThird Party Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1716955 Issue Tracking
- https://github.com/systemd/systemd/commit/9725f1a10f80f5e0ae7d9b60547458622aeb322f x_refsource_MISCPatch
- https://github.com/systemd/systemd/pull/12378 x_refsource_MISCIssue TrackingPatch
- https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E mailing-listx_refsource_MLISTMailing List
- https://nvd.nist.gov/vuln/detail/CVE-2018-20839
- https://security.netapp.com/advisory/ntap-20190530-0002/ x_refsource_CONFIRMThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2018-20839
| Link | Providers | Tags |
|---|---|---|
| http://www.securityfocus.com/bid/108389 | vdb-entryx_refsource_BIDBroken LinkThird Party AdvisoryVDB Entry | |
| https://access.redhat.com/security/cve/CVE-2018-20839 | Vendor Advisory | |
| https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1803993 | x_refsource_MISCIssue TrackingThird Party Advisory | |
| https://bugzilla.redhat.com/show_bug.cgi?id=1716955 | Issue Tracking | |
| https://github.com/systemd/systemd/commit/9725f1a10f80f5e0ae7d9b60547458622aeb322f | x_refsource_MISCPatch | |
| https://github.com/systemd/systemd/pull/12378 | x_refsource_MISCIssue TrackingPatch | |
| https://lists.apache.org/thread.html/rf9fa47ab66495c78bb4120b0754dd9531ca2ff0430f6685ac9b07772%40%3Cdev.mina.apache.org%3E | mailing-listx_refsource_MLISTMailing List | |
| https://nvd.nist.gov/vuln/detail/CVE-2018-20839 | ||
| https://security.netapp.com/advisory/ntap-20190530-0002/ | x_refsource_CONFIRMThird Party Advisory | |
| https://www.cve.org/CVERecord?id=CVE-2018-20839 |
Change history (0)
No recorded changes yet.