kernel: out-of-bounds access in the show_timer function in kernel/time/posix-timers.c
Published Jul 26, 2018
7.1
HIGHCVSS 3.0
EPSS 3.44%
Description
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).
Affected products
No data.
Configuration 1
- < 4.14.8
Configuration 2
- 12.04
- 14.04
Configuration 3
- 2.0
- 7.0
- 7.0
- 7.2
- 7.3
- 7.4
- 7.3
- 7.5
- 7.2
- 7.3
- 7.4
- 7.0
No data.
Red Hat Enterprise Linux 7
kernel-0:3.10.0-957.el7
Fixed · RHSA-2018:3083
Red Hat Enterprise Linux 7
kernel-alt-0:4.14.0-115.el7a
Fixed · RHSA-2018:2948
Red Hat Enterprise Linux 7
kernel-rt-0:3.10.0-957.rt56.910.el7
Fixed · RHSA-2018:3096
Red Hat Enterprise Linux 7.2 Advanced Update Support
kernel-0:3.10.0-327.76.1.el7
Fixed · RHSA-2018:3590
Red Hat Enterprise Linux 7.2 Telco Extended Update Support
kernel-0:3.10.0-327.76.1.el7
Fixed · RHSA-2018:3590
Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions
kernel-0:3.10.0-327.76.1.el7
Fixed · RHSA-2018:3590
Red Hat Enterprise Linux 7.3 Extended Update Support
kernel-0:3.10.0-514.61.1.el7
Fixed · RHSA-2018:3591
Red Hat Enterprise Linux 7.4 Extended Update Support
kernel-0:3.10.0-693.43.1.el7
Fixed · RHSA-2018:3540
Red Hat Enterprise Linux 7.5 Extended Update Support
kernel-0:3.10.0-862.20.2.el7
Fixed · RHSA-2018:3459
Red Hat Enterprise MRG 2
kernel-rt-1:3.10.0-693.43.1.rt56.630.el6rt
Fixed · RHSA-2018:3586
Red Hat Enterprise Linux 5
kernel
Not affected
Red Hat Enterprise Linux 6
kernel
Not affected
Red Hat Enterprise Linux 8
kernel
Not affected
| Product | Package | State | Advisory |
|---|---|---|---|
| Red Hat Enterprise Linux 7 | kernel-0:3.10.0-957.el7 | Fixed | RHSA-2018:3083 |
| Red Hat Enterprise Linux 7 | kernel-alt-0:4.14.0-115.el7a | Fixed | RHSA-2018:2948 |
| Red Hat Enterprise Linux 7 | kernel-rt-0:3.10.0-957.rt56.910.el7 | Fixed | RHSA-2018:3096 |
| Red Hat Enterprise Linux 7.2 Advanced Update Support | kernel-0:3.10.0-327.76.1.el7 | Fixed | RHSA-2018:3590 |
| Red Hat Enterprise Linux 7.2 Telco Extended Update Support | kernel-0:3.10.0-327.76.1.el7 | Fixed | RHSA-2018:3590 |
| Red Hat Enterprise Linux 7.2 Update Services for SAP Solutions | kernel-0:3.10.0-327.76.1.el7 | Fixed | RHSA-2018:3590 |
| Red Hat Enterprise Linux 7.3 Extended Update Support | kernel-0:3.10.0-514.61.1.el7 | Fixed | RHSA-2018:3591 |
| Red Hat Enterprise Linux 7.4 Extended Update Support | kernel-0:3.10.0-693.43.1.el7 | Fixed | RHSA-2018:3540 |
| Red Hat Enterprise Linux 7.5 Extended Update Support | kernel-0:3.10.0-862.20.2.el7 | Fixed | RHSA-2018:3459 |
| Red Hat Enterprise MRG 2 | kernel-rt-1:3.10.0-693.43.1.rt56.630.el6rt | Fixed | RHSA-2018:3586 |
| Red Hat Enterprise Linux 5 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 6 | kernel | Not affected | n/a |
| Red Hat Enterprise Linux 8 | kernel | Not affected | n/a |
No package ranges for this CVE.
Remediation
Red Hat 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
Metrics
No CVSS v4.0 score for this CVE.
No CVSS v3.1 score for this CVE.
CVSS:3.0/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:N
1 other source (Red Hat) ▾
CVSS:3.0/AV:L/AC:L/PR:N/UI:N/S:C/C:H/I:N/A:N
AV:L/AC:L/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 (27 key points)
Flat stretches are collapsed; showing up to 120 newest points.
| Date | Score | Percentile | Model |
|---|---|---|---|
| Oct 1, 2026 | 3.44% (0.03443) | 88.60th | v5 (v2026.06.15) |
| Jun 15, 2026 | 3.26% (0.03255) | 86.69th | v5 (v2026.06.15) |
| Mar 22, 2026 | 11.90% (0.11900) | 93.66th | v4 (v2025.03.14) |
| Feb 18, 2026 | 13.20% (0.13197) | 93.97th | v4 (v2025.03.14) |
| Feb 9, 2026 | 12.12% (0.12117) | 93.63th | v4 (v2025.03.14) |
| Dec 28, 2025 | 10.16% (0.10164) | 92.86th | v4 (v2025.03.14) |
| Dec 27, 2025 | 9.14% (0.09140) | 92.44th | v4 (v2025.03.14) |
| Oct 28, 2025 | 10.16% (0.10164) | 92.77th | v4 (v2025.03.14) |
| Oct 27, 2025 | 9.14% (0.09140) | 92.33th | v4 (v2025.03.14) |
| Oct 7, 2025 | 10.16% (0.10164) | 92.83th | v4 (v2025.03.14) |
| Oct 1, 2025 | 11.30% (0.11302) | 93.30th | v4 (v2025.03.14) |
| Sep 6, 2025 | 9.37% (0.09371) | 92.48th | v4 (v2025.03.14) |
| Sep 3, 2025 | 10.40% (0.10404) | 92.98th | v4 (v2025.03.14) |
| Jun 3, 2025 | 9.27% (0.09267) | 92.33th | v4 (v2025.03.14) |
| Jun 1, 2025 | 7.47% (0.07468) | 91.32th | v4 (v2025.03.14) |
| Mar 17, 2025 | 9.32% (0.09317) | 92.17th | v4 (v2025.03.14) |
| Dec 12, 2024 | 0.10% (0.00096) | 42.12th | v3 (v2023.03.01) |
| Jul 20, 2023 | 0.10% (0.00096) | 39.61th | v3 (v2023.03.01) |
| Mar 7, 2023 | 0.08% (0.00082) | 33.36th | v3 (v2023.03.01) |
| Mar 6, 2023 | 4.55% (0.04547) | 88.83th | v2 (v2022.01.01) |
| Apr 1, 2022 | 4.55% (0.04547) | 87.72th | v2 (v2022.01.01) |
| Mar 12, 2022 | 4.55% (0.04547) | 74.53th | v2 (v2022.01.01) |
| Feb 4, 2022 | 4.21% (0.04209) | 69.86th | v2 (v2022.01.01) |
| Feb 3, 2022 | 13.21% (0.13208) | 89.07th | v1 |
| Jan 6, 2022 | 13.21% (0.13208) | 88.94th | v1 |
| Sep 1, 2021 | 13.21% (0.13208) | 96.01th | v1 |
| Apr 14, 2021 | 13.21% (0.13208) | 0.00th | v1 |
References (19)
- http://www.securityfocus.com/bid/104909 vdb-entryx_refsource_BIDThird Party AdvisoryVDB Entry
- http://www.securitytracker.com/id/1041414 vdb-entryx_refsource_SECTRACKThird Party AdvisoryVDB Entry
- https://access.redhat.com/errata/RHSA-2018:2948 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3083 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3096 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3459 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3540 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3586 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3590 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/errata/RHSA-2018:3591 vendor-advisoryx_refsource_REDHATThird Party Advisory
- https://access.redhat.com/security/cve/CVE-2017-18344 Vendor Advisory
- https://bugzilla.redhat.com/show_bug.cgi?id=1610958 Issue Tracking
- https://cdn.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.14.8 x_refsource_MISCThird Party Advisory
- https://github.com/torvalds/linux/commit/cef31d9af908243421258f1df35a4a644604efbe x_refsource_MISCPatchThird Party Advisory
- https://nvd.nist.gov/vuln/detail/CVE-2017-18344
- https://usn.ubuntu.com/3742-1/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://usn.ubuntu.com/3742-2/ vendor-advisoryx_refsource_UBUNTUThird Party Advisory
- https://www.cve.org/CVERecord?id=CVE-2017-18344
- https://www.exploit-db.com/exploits/45175/ exploitx_refsource_EXPLOIT-DBThird Party AdvisoryVDB Entry
Change history (0)
No recorded changes yet.