CVE-2018-8897
A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer's Manual (SDM) was mishandled in…
Check your servers for CVE-2018-8897
The Vulnpocalypse collector sends the package list of each Linux server and of its container images once a day. Vulnpocalypse shows every server where CVE-2018-8897 affects a package, with the command that installs the fix. The free plan covers one server and one domain and does not need a credit card.
Description
A statement in the System Programming Guide of the Intel 64 and IA-32 Architectures Software Developer's Manual (SDM) was mishandled in the development of some or all operating-system kernels, resulting in unexpected behavior for #DB exceptions that are deferred by MOV SS or POP SS, as demonstrated by (for example) privilege escalation in Windows, macOS, some Xen configurations, or FreeBSD, or a Linux kernel crash. The MOV to SS and POP SS instructions inhibit interrupts (including NMIs), data breakpoints, and single step trap exceptions until the instruction boundary following the next instruction (SDM Vol. 3A; section 6.8.3). (The inhibited data breakpoints are those on memory accessed by the MOV to SS or POP to SS instruction itself.) Note that debug exceptions are not inhibited by the interrupt enable (EFLAGS.IF) system flag (SDM Vol. 3A; section 2.3). If the instruction following the MOV to SS or POP to SS instruction is an instruction like SYSCALL, SYSENTER, INT 3, etc. that transfers control to the operating system at CPL < 3, the debug exception is delivered after the transfer to CPL < 3 is complete. OS kernels may not expect this order of events and may therefore experience unexpected behavior when it occurs.
Exploitation
EPSS 18.4%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 97.8% of all scored CVEs. Scores of 29 Nov 2026.
Affected products
As the CNA lists them.
| Product | Versions |
|---|---|
|
n/a
n/a
|
affected all versions
|
Is my server affected?
Find the installed version of the package (replace PACKAGE with its name) and compare it with the fixed version of your distribution. Distributions often fix a CVE in a package version of their own, so the version number of the upstream project can mislead.
Debian, Ubuntu
dpkg -l | grep -i PACKAGE
# packages whose changelog names the CVE (fixed in the installed version)
zgrep -l CVE-2018-8897 /usr/share/doc/*/changelog.Debian.gz
# Ubuntu
pro fix CVE-2018-8897RHEL, Rocky, Alma, Fedora
rpm -q PACKAGE
# lists the advisory while the fix is not installed
dnf updateinfo list --cve CVE-2018-8897Alpine
apk list --installed | grep -i PACKAGEWith Trivy, on the host and for a container image. When a package is affected, it prints the installed and the fixed version:
trivy rootfs --scanners vuln / | grep CVE-2018-8897
trivy image --scanners vuln IMAGE | grep CVE-2018-8897
Vulnpocalypse makes this comparison every day for the package lists of your servers and container images, including language packages (npm, PyPI, Go, Maven and others), and sends the command that installs the fix. Start free with one server and one domain or read how to install the collector.
References
Advisories
- RHSA-2018:1350 access.redhat.com · vendor advisory
- https://support.citrix.com/article/CTX234679 support.citrix.com
- RHSA-2018:1347 access.redhat.com · vendor advisory
- RHSA-2018:1346 access.redhat.com · vendor advisory
- RHSA-2018:1348 access.redhat.com · vendor advisory
- RHSA-2018:1354 access.redhat.com · vendor advisory
- DSA-4196 debian.org · vendor advisory
- RHSA-2018:1351 access.redhat.com · vendor advisory
- RHSA-2018:1319 access.redhat.com · vendor advisory
- DSA-4201 debian.org · vendor advisory
- https://help.ecostruxureit.com/display/public/UADCE725/Security+fixes+in+StruxureWare+Data+Center+Expert+v7.6.0 help.ecostruxureit.com
- RHSA-2018:1355 access.redhat.com · vendor advisory
13 more
- https://security.netapp.com/advisory/ntap-20180927-0002/ security.netapp.com
- RHSA-2018:1345 access.redhat.com · vendor advisory
- RHSA-2018:1349 access.redhat.com · vendor advisory
- https://portal.msrc.microsoft.com/en-US/security-guidance/advisory/CVE-2018-8897 portal.msrc.microsoft.com
- RHSA-2018:1352 access.redhat.com · vendor advisory
- RHSA-2018:1318 access.redhat.com · vendor advisory
- VU#631579 kb.cert.org · third party advisory
- RHSA-2018:1524 access.redhat.com · vendor advisory
- RHSA-2018:1353 access.redhat.com · vendor advisory
- USN-3641-2 usn.ubuntu.com · vendor advisory
- https://www.synology.com/support/security/Synology_SA_18_21 synology.com
- USN-3641-1 usn.ubuntu.com · vendor advisory
- http://www.huawei.com/en/psirt/security-advisories/huawei-sa-20190921-01-debug-en huawei.com
Exploits and proof of concept
Other references
- https://github.com/torvalds/linux/commit/d8ba61ba58c88d5207c1ba2f7d9a2280e7d03be9 github.com
- http://openwall.com/lists/oss-security/2018/05/08/4 openwall.com
- 1040849 securitytracker.com · vdb entry
- 104071 securityfocus.com · vdb entry
- [debian-lts-announce] 20180525 [SECURITY] [DLA 1383-1] xen security update lists.debian.org · mailing list
- 1040866 securitytracker.com · vdb entry
- [debian-lts-announce] 20181112 [SECURITY] [DLA 1577-1] xen security update lists.debian.org · mailing list
- [debian-lts-announce] 20180601 [SECURITY] [DLA 1392-1] linux security update lists.debian.org · mailing list
- https://support.apple.com/HT208742 support.apple.com
- https://svnweb.freebsd.org/base?view=revision&revision=333368 svnweb.freebsd.org
- https://www.freebsd.org/security/advisories/FreeBSD-SA-18:06.debugreg.asc freebsd.org
- 1040744 securitytracker.com · vdb entry
9 more
- https://www.triplefault.io/2018/05/spurious-db-exceptions-with-pop-ss.html triplefault.io
- https://bugzilla.redhat.com/show_bug.cgi?id=1567074 bugzilla.redhat.com
- https://xenbits.xen.org/xsa/advisory-260.html xenbits.xen.org
- http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=d8ba61ba58c88d5207c1ba2f7d9a2280e7d03be9 git.kernel.org
- https://patchwork.kernel.org/patch/10386677/ patchwork.kernel.org
- https://github.com/can1357/CVE-2018-8897/ github.com
- http://openwall.com/lists/oss-security/2018/05/08/1 openwall.com
- 1040861 securitytracker.com · vdb entry
- 1040882 securitytracker.com · vdb entry
Source: the record CVE-2018-8897 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST. The text of the record is shown as published. Data sources and licences.
Vulnpocalypse