cve.bz

CVE-2017-18344 Out-of-bounds Read

5.5 mediumExploit referenceEPSS 3.4%Fix available

Medium (5.5). EPSS 3.4% estimated probability of exploitation activity in the next 30 days.

On this page
The timer_create syscall implementation in kernel/time/posix-timers.c in the Linux kernel before 4.14.8 doesn't properly validate the sigevent->sigev_notify field, which leads to out-of-bounds access in the show_timer function (called when /proc/$PID/timers is read). This allows userspace applications to read arbitrary kernel memory (on a kernel built with CONFIG_POSIX_TIMERS and CONFIG_CHECKPOINT_RESTORE).

Severity

CVSS 3.0

5.5 medium
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
EPSS
3.4% (unchanged from 3.4% a week ago; 3.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 89th percentile. Scored 2026-11-21. A forecast for this CVE across the internet, not for your own systems.
CWE
CWE-125 Out-of-bounds Read
Published
Modified
NVD analysis
Analyzed, since modified
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2017-18344 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2017-18344?via=ask-ai-copy and https://cve.bz/cve/CVE-2017-18344?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2017-18344 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the NVD's CPE matches.

ProductAffected
linux:linux_kernelbefore 4.14.8
canonical:ubuntu_linux12.04
canonical:ubuntu_linux14.04
redhat:mrg_realtime2.0
redhat:enterprise_linux_desktop7.0
redhat:enterprise_linux_server7.0
redhat:enterprise_linux_server_aus7.2
redhat:enterprise_linux_server_aus7.3
redhat:enterprise_linux_server_aus7.4
redhat:enterprise_linux_server_eus7.3
redhat:enterprise_linux_server_eus7.5
redhat:enterprise_linux_server_tus7.2
redhat:enterprise_linux_server_tus7.3
redhat:enterprise_linux_server_tus7.4
redhat:enterprise_linux_workstation7.0

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13, 14linux4.14.12-1DEBIAN-CVE-2017-18344
Ubuntu14.04:LTSlinux3.13.0-155.205UBUNTU-CVE-2017-18344 USN-3742-1
Ubuntu14.04:LTSlinux-aws4.4.0-1017.17UBUNTU-CVE-2017-18344
Ubuntu14.04:LTSlinux-lts-xenial4.4.0-121.145~14.04.1UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux4.4.0-121.145UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-aws4.4.0-1055.64UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-azure4.15.0-1013.13~16.04.2UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-euclid4.4.0-9029.31UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-gcp4.15.0-1014.14~16.04.1UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-hwe4.15.0-24.26~16.04.1UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-kvm4.4.0-1021.26UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-raspi24.4.0-1087.95UBUNTU-CVE-2017-18344
Ubuntu16.04:LTSlinux-snapdragon4.4.0-1090.95UBUNTU-CVE-2017-18344
4 more for Ubuntu in the JSON and on Ubuntu's page.
Red Hatenterprise_linux:7::client, enterprise_linux:7::computenode, enterprise_linux:7::workstationperf, kernel, bpftool and 15 more0:3.10.0-957.el7RHSA-2018:3083
Red Hatenterprise_linux:7::serverperf, kernel, bpftool and 22 more0:3.10.0-957.el7RHSA-2018:3083
Red Hatenterprise_linux:7::serverperf, kernel, kernel-alt and 17 more0:4.14.0-115.el7aRHSA-2018:2948
Red Hatenterprise_mrg:2:server:el6kernel-rt, kernel-rt-doc, kernel-rt-debug and 12 more1:3.10.0-693.43.1.rt56.630.el6rtRHSA-2018:3586
Red Hatrhel_aus:7.2::server, rhel_e4s:7.2::server, rhel_tus:7.2::serverperf, kernel, kernel-doc and 15 more0:3.10.0-327.76.1.el7RHSA-2018:3590
Red Hatrhel_eus:7.3::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-514.61.1.el7RHSA-2018:3591
Red Hatrhel_eus:7.3::serverperf, kernel, kernel-doc and 22 more0:3.10.0-514.61.1.el7RHSA-2018:3591
Red Hatrhel_eus:7.4::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-693.43.1.el7RHSA-2018:3540
Red Hatrhel_eus:7.4::serverperf, kernel, kernel-doc and 22 more0:3.10.0-693.43.1.el7RHSA-2018:3540
Red Hatrhel_eus:7.5::computenodeperf, kernel, kernel-doc and 15 more0:3.10.0-862.20.2.el7RHSA-2018:3459
Red Hatrhel_eus:7.5::serverperf, kernel, kernel-doc and 22 more0:3.10.0-862.20.2.el7RHSA-2018:3459
Red Hatrhel_extras_rt:7kernel-rt, kernel-rt-doc, kernel-rt-kvm and 14 more0:3.10.0-957.rt56.910.el7RHSA-2018:3096
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekernel-syms, kernel-source, kernel-default4.4.121-92.92.1SUSE-SU-2018:2344-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morekgraft-patch-SLE12-SP2_Update_241-3.7.1SUSE-SU-2018:2344-1
SUSEEnterprise Storage 4, Linux Enterprise Server 12 SP2-LTSS, Linux Enterprise Server for SAP Applications 12 SP2 and 1 morelttng-modules2.7.1-9.4.1SUSE-SU-2018:2344-1
SUSELinux Enterprise Desktop 12 SP3, Linux Enterprise Server 12 SP3, Linux Enterprise Server for SAP Applications 12 SP3kernel-syms, kernel-source, kernel-default4.4.143-94.47.1SUSE-SU-2018:2328-1
SUSELinux Enterprise High Availability Extension 12 SP2kernel-default4.4.121-92.92.1SUSE-SU-2018:2344-1
SUSELinux Enterprise High Availability Extension 12 SP3, Linux Enterprise Workstation Extension 12 SP3kernel-default4.4.143-94.47.1SUSE-SU-2018:2328-1
SUSELinux Enterprise High Availability Extension 15, Linux Enterprise Live Patching 15, Linux Enterprise Module for Legacy 15 and 1 morekernel-default4.12.14-25.6.1SUSE-SU-2018:2223-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_111-2.1SUSE-SU-2018:2413-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_161-4.5.1SUSE-SU-2018:2328-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_2, kgraft-patch-SLE12-SP3_Update_310-2.1SUSE-SU-2018:2413-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_49-2.1SUSE-SU-2018:2416-1
SUSELinux Enterprise Live Patching 12 SP3kgraft-patch-SLE12-SP3_Update_5, kgraft-patch-SLE12-SP3_Update_6, kgraft-patch-SLE12-SP3_Update_78-2.1SUSE-SU-2018:2416-1
21 more for SUSE in the JSON and on SUSE's page.

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE.

Red Hat

Red Hat rates this Important.

Red Hat's mitigation

Attached to this bugzilla is a systemtap script that will prevent opening (and therefore reading) the /proc/<process>/timers file which is used to leak information.

The SystemTap script is relatively small and efficient, broken into 3 distinct sections as follows:

--------

probe kernel.function("proc_timers_open@fs/proc/base.c").return {

// this is -EACCES

$return = -13;

message = sprintf("CVE-2017-18344 mitigation denied access to %s to %s(%d)", file_name , execname(), pid());

// print a warning message at KERN_INFO debug level

printk(6, message);

}

probe begin {

printk(6, "Mitigation for CVE-2017-18344 loaded.\n");

}

probe end {

printk(6, "Mitigation for CVE-2017-18344 unloaded.\n");

}

---------

First, the script places a probe at the return of the kernel function “proc_timers_open” when called. This modifies the return value to be EACCES which would return this value to userspace preventing this file from being opened. When the /proc/<pid>/timer file is attempted to be opened, a message will be logged to the kernel log subsystem showing the process and pid of the application attempting to access the timer file.

This file is not in widespread use at this time, although some applications may read from it to debug or understand their own timers that are set. This mitigation will not be useful in this context.

Finally, the “probe begin” and “probe end” code blocks tell systemtap to add the supplied text to the kernel log buffer via the printk function. This creates an audit trail by registering in the system logs exactly when the mitigation is loaded and unloaded. This will need to be compiled with guru mode (-g parameter) to compile.

This will need to be loaded at each boot to remain effective. Red Hat Product security recommends updating to a patched kernel when it is available.

Red Hat always seeks to provide both mitigations to disable attacks as well as the actual patches to treat the flaw. To learn more about SystemTap, and how it can be used in your management of your Red Hat systems, please refer to Using SystemTap[1] or one of our videos about it within our Customer Portal[2].

1 - https://access.redhat.com/articles/17839

2 - https://access.redhat.com/search/#/?q=systemtap

ProductPackageStateAdvisory
Red Hat Enterprise Linux 7kernel-rt-0:3.10.0-957.rt56.910.el7Fixed 2018-10-30RHSA-2018:3096
Red Hat Enterprise Linux 7kernel-alt-0:4.14.0-115.el7aFixed 2018-10-30RHSA-2018:2948
Red Hat Enterprise Linux 7kernel-0:3.10.0-957.el7Fixed 2018-10-30RHSA-2018:3083
Red Hat Enterprise Linux 7.2 Advanced Update Supportkernel-0:3.10.0-327.76.1.el7Fixed 2018-11-13RHSA-2018:3590
Red Hat Enterprise Linux 7.2 Telco Extended Update Supportkernel-0:3.10.0-327.76.1.el7Fixed 2018-11-13RHSA-2018:3590
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutionskernel-0:3.10.0-327.76.1.el7Fixed 2018-11-13RHSA-2018:3590
Red Hat Enterprise Linux 7.3 Extended Update Supportkernel-0:3.10.0-514.61.1.el7Fixed 2018-11-13RHSA-2018:3591
Red Hat Enterprise Linux 7.4 Extended Update Supportkernel-0:3.10.0-693.43.1.el7Fixed 2018-11-13RHSA-2018:3540
Red Hat Enterprise Linux 7.5 Extended Update Supportkernel-0:3.10.0-862.20.2.el7Fixed 2018-11-06RHSA-2018:3459
Red Hat Enterprise MRG 2kernel-rt-1:3.10.0-693.43.1.rt56.630.el6rtFixed 2018-11-13RHSA-2018:3586
Red Hat Enterprise Linux 5kernelNot affected
Red Hat Enterprise Linux 6kernelNot affected
Red Hat Enterprise Linux 8kernelNot affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2017-18344.

Attack patterns (CAPEC)

  • CAPEC-540 Overread Buffers Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON