Cloudanix VulnDB

CVE-2017-5669

High · 7.8

CVSS

7.8

EPSS

0.4%

Published

Feb 24, 2017

CISA due date

—

Cloudanix analysis

Schedule a fix SSVC: Track

A flaw in the Linux kernel lets local users bypass memory protections and gain higher access rights on the computer.

Chainable
Exploitation
Local Privilege
Attacker needs
Low Privilege
Complexity
Low
Impact
Privilege Gain
Component
OS kernel
Class
Privilege Escalation
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

The flaw in do_shmat allows a local process to calculate an address via rounding that maps page zero, bypassing mmap's protection mechanism when invoked through crafted shmget and shmat calls from a privileged context.

Why it matters to the business

Local attackers can gain elevated privileges on Linux systems, potentially leading to full host compromise, data access, or persistence that disrupts operations and increases breach risk.

How an attack unfolds

An attacker with local shell access crafts shmget and shmat system calls that exploit the unchecked rounding in shmat to map page zero, bypassing intended mmap restrictions and enabling further privilege escalation within the kernel.

How to fix it

Update the Linux kernel to a version containing commit 95e91b831f87ac8e1f8ed50c14d709089b4e01b8 or later; rebuild and reboot affected systems with the patched kernel.

How to confirm the fix worked

Confirm the running kernel includes commit 95e91b831f87ac8e1f8ed50c14d709089b4e01b8 via git log or version string checks; test that shmat calls no longer permit page-zero mappings in privileged contexts.

Typical attack path

  1. Gain local user access on the target system
  2. Identify or create a privileged context for IPC operations
  3. Issue crafted shmget call to allocate shared memory segment
  4. Invoke shmat with parameters that trigger the rounding flaw to map page zero
  5. Leverage the resulting mapping to bypass protections and escalate privileges

How to detect it

Review system call audit logs for unusual shmget or shmat invocations from non-standard processes; examine kernel logs around IPC operations for anomalous address mappings or page-zero references.

What your security team should do

  • Prioritize kernel upgrades across all affected Linux deployments to the fixed commit
  • Audit systems for local privilege-escalation vectors and restrict unnecessary IPC usage
  • Monitor for post-patch stability and schedule validation testing
  • Review and harden local user permissions to limit exploitation opportunities

The record

The do_shmat function in ipc/shm.c in the Linux kernel through 4.9.12 does not restrict the address calculated by a certain rounding operation, which allows local users to map page zero, and consequently bypass a protection mechanism that exists for the mmap system call, by making crafted shmget and shmat system calls in a privileged context.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 4.9.13-1
Debian:12 linux 0 4.9.13-1
Debian:13 linux 0 4.9.13-1
Debian:7 linux 0 3.2.86-1
Debian:8 linux 0 3.16.39-1+deb8u2
SUSE:Linux Enterprise Desktop 12 SP1 kernel-default 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Desktop 12 SP1 kernel-source 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Desktop 12 SP1 kernel-syms 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Desktop 12 SP1 kernel-xen 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Live Patching 12 kgraft-patch-SLE12-SP1_Update_15 0 1-4.1
SUSE:Linux Enterprise Module for Public Cloud 12 kernel-ec2 0 3.12.61-52.72.1
SUSE:Linux Enterprise Module for Public Cloud 12 kernel-ec2 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-default 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-ec2 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-pae 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-source 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-syms 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-trace 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Point of Sale 11 SP3 kernel-xen 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Real Time 11 SP4 kernel-rt 0 3.0.101.rt130-69.5.1
SUSE:Linux Enterprise Real Time 11 SP4 kernel-rt_trace 0 3.0.101.rt130-69.5.1
SUSE:Linux Enterprise Real Time 11 SP4 kernel-source-rt 0 3.0.101.rt130-69.5.1
SUSE:Linux Enterprise Real Time 11 SP4 kernel-syms-rt 0 3.0.101.rt130-69.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-bigsmp 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-default 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-ec2 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-pae 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-source 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-syms 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-trace 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP3-LTSS kernel-xen 0 3.0.101-0.47.106.5.1
SUSE:Linux Enterprise Server 11 SP4 kernel-bigmem 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-default 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-ec2 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-pae 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-ppc64 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-source 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-syms 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-trace 0 3.0.101-100.1
SUSE:Linux Enterprise Server 11 SP4 kernel-xen 0 3.0.101-100.1
SUSE:Linux Enterprise Server 12 SP1 kernel-default 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server 12 SP1 kernel-source 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server 12 SP1 kernel-syms 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server 12 SP1 kernel-xen 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server 12-LTSS kernel-default 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server 12-LTSS kernel-source 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server 12-LTSS kernel-syms 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server 12-LTSS kernel-xen 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server 12-LTSS kgraft-patch-SLE12_Update_21 0 1-2.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-bigmem 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-default 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-ec2 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-pae 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-ppc64 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-source 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-syms 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-trace 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 11 SP4 kernel-xen 0 3.0.101-100.1
SUSE:Linux Enterprise Server for SAP Applications 12 kernel-default 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server for SAP Applications 12 kernel-source 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server for SAP Applications 12 kernel-syms 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server for SAP Applications 12 kernel-xen 0 3.12.61-52.72.1
SUSE:Linux Enterprise Server for SAP Applications 12 kgraft-patch-SLE12_Update_21 0 1-2.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 kernel-default 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 kernel-source 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 kernel-syms 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Server for SAP Applications 12 SP1 kernel-xen 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Software Development Kit 11 SP4 kernel-docs 0 3.0.101-100.2
SUSE:Linux Enterprise Software Development Kit 12 SP1 kernel-docs 0 3.12.74-60.64.40.4
SUSE:Linux Enterprise Software Development Kit 12 SP1 kernel-obs-build 0 3.12.74-60.64.40.1
SUSE:Linux Enterprise Workstation Extension 12 SP1 kernel-default 0 3.12.74-60.64.40.1
Ubuntu:14.04:LTS linux 0 3.13.0-142.191
Ubuntu:14.04:LTS linux-aws 0 4.4.0-1002.2
Ubuntu:14.04:LTS linux-azure 0 4.15.0-1023.24~14.04.1
Ubuntu:14.04:LTS linux-lts-xenial 0 4.4.0-75.96~14.04.1
Ubuntu:16.04:LTS linux 0 4.4.0-75.96
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1016.25
Ubuntu:16.04:LTS linux-aws-hwe 0 4.15.0-1030.31~16.04.1
Ubuntu:16.04:LTS linux-azure 0 4.11.0-1009.9
Ubuntu:16.04:LTS linux-gcp 0 4.10.0-1004.4
Ubuntu:16.04:LTS linux-gke 0 4.4.0-1012.12
Ubuntu:16.04:LTS linux-hwe 0 4.10.0-27.30~16.04.2
Ubuntu:16.04:LTS linux-hwe 0 4.10.0-32.36~16.04.1
Ubuntu:16.04:LTS linux-kvm 0 4.4.0-1004.9
Ubuntu:16.04:LTS linux-oem 0 4.13.0-1008.9
Ubuntu:16.04:LTS linux-oracle 0 4.15.0-1007.9~16.04.1
Ubuntu:16.04:LTS linux-raspi2 0 4.4.0-1054.61
Ubuntu:16.04:LTS linux-snapdragon 0 4.4.0-1057.61
Ubuntu:18.04:LTS linux 0 4.13.0-16.19
Ubuntu:18.04:LTS linux-aws-5.4 0 5.4.0-1018.18~18.04.1
Ubuntu:18.04:LTS linux-azure 0 No fix
Ubuntu:18.04:LTS linux-azure-4.15 0 4.15.0-1082.92
Ubuntu:18.04:LTS linux-azure-5.4 0 5.4.0-1020.20~18.04.1
Ubuntu:18.04:LTS linux-gcp 0 No fix
Ubuntu:18.04:LTS linux-gcp-4.15 0 4.15.0-1071.81
Ubuntu:18.04:LTS linux-gcp-5.4 0 5.4.0-1019.19~18.04.2
Ubuntu:18.04:LTS linux-hwe 0 No fix
Ubuntu:18.04:LTS linux-hwe-5.4 0 5.4.0-37.41~18.04.1
Ubuntu:18.04:LTS linux-hwe-edge 0 No fix
Ubuntu:18.04:LTS linux-ibm-5.4 0 5.4.0-1010.11~18.04.2
Ubuntu:18.04:LTS linux-oem 0 No fix
Ubuntu:18.04:LTS linux-oracle 0 4.15.0-1007.9
Ubuntu:18.04:LTS linux-oracle-5.4 0 5.4.0-1019.19~18.04.1
Ubuntu:18.04:LTS linux-raspi-5.4 0 5.4.0-1013.13~18.04.1
Ubuntu:18.04:LTS linux-raspi2 0 4.13.0-1005.5
Ubuntu:18.04:LTS linux-snapdragon 0 4.4.0-1077.82
Ubuntu:20.04:LTS linux 0 5.4.0-9.12
Ubuntu:20.04:LTS linux-aws 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-aws-5.15 0 5.15.0-1014.18~20.04.1
Ubuntu:20.04:LTS linux-azure 0 5.4.0-1006.6
Ubuntu:20.04:LTS linux-azure-5.15 0 5.15.0-1007.8~20.04.1
Ubuntu:20.04:LTS linux-azure-fde 0 No fix
Ubuntu:20.04:LTS linux-azure-fde-5.15 0 5.15.0-1019.24~20.04.1.1
Ubuntu:20.04:LTS linux-bluefield 0 5.4.0-1007.10
Ubuntu:20.04:LTS linux-gcp 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-gcp-5.15 0 5.15.0-1006.9~20.04.1
Ubuntu:20.04:LTS linux-gke 0 No fix
Ubuntu:20.04:LTS linux-gkeop 0 5.4.0-1008.9
Ubuntu:20.04:LTS linux-gkeop-5.15 0 5.15.0-1003.5~20.04.2
Ubuntu:20.04:LTS linux-hwe-5.15 0 5.15.0-33.34~20.04.1
Ubuntu:20.04:LTS linux-ibm 0 5.4.0-1003.4
Ubuntu:20.04:LTS linux-ibm-5.15 0 5.15.0-1033.36~20.04.1
Ubuntu:20.04:LTS linux-intel-iotg-5.15 0 5.15.0-1003.5~20.04.1
Ubuntu:20.04:LTS linux-iot 0 5.4.0-1001.3
Ubuntu:20.04:LTS linux-kvm 0 5.4.0-1004.4
Ubuntu:20.04:LTS linux-lowlatency-hwe-5.15 0 5.15.0-33.34~20.04.1
Ubuntu:20.04:LTS linux-oracle 0 5.4.0-1005.5
Ubuntu:20.04:LTS linux-oracle-5.15 0 5.15.0-1007.9~20.04.1
Ubuntu:20.04:LTS linux-raspi 0 5.4.0-1007.7
Ubuntu:20.04:LTS linux-raspi2 0 No fix
Ubuntu:20.04:LTS linux-riscv 0 No fix
Ubuntu:20.04:LTS linux-riscv-5.15 0 5.15.0-1015.17~20.04.1
Ubuntu:20.04:LTS linux-xilinx-zynqmp 0 5.4.0-1020.24
Ubuntu:22.04:LTS linux 0 5.13.0-19.19
Ubuntu:22.04:LTS linux-aws 0 5.13.0-1005.6
Ubuntu:22.04:LTS linux-aws-6.8 0 6.8.0-1009.9~22.04.2
Ubuntu:22.04:LTS linux-azure 0 5.13.0-1006.7
Ubuntu:22.04:LTS linux-azure-6.8 0 6.8.0-1008.8~22.04.1
Ubuntu:22.04:LTS linux-azure-fde 0 5.15.0-1019.24.1
Ubuntu:22.04:LTS linux-gcp 0 5.13.0-1005.6
Ubuntu:22.04:LTS linux-gcp-6.8 0 6.8.0-1010.11~22.04.1
Ubuntu:22.04:LTS linux-gke 0 5.15.0-1002.2
Ubuntu:22.04:LTS linux-gkeop 0 5.15.0-1001.2
Ubuntu:22.04:LTS linux-hwe-6.8 0 6.8.0-38.38~22.04.1
Ubuntu:22.04:LTS linux-ibm 0 5.15.0-1002.2
Ubuntu:22.04:LTS linux-intel-iot-realtime 0 No fix
Ubuntu:22.04:LTS linux-intel-iot-realtime 0 5.15.0-1021.26
Ubuntu:22.04:LTS linux-intel-iotg 0 5.15.0-1004.6
Ubuntu:22.04:LTS linux-kvm 0 5.13.0-1004.4
Ubuntu:22.04:LTS linux-lowlatency 0 5.15.0-22.22
Ubuntu:22.04:LTS linux-lowlatency-hwe-6.8 0 6.8.0-38.38.1~22.04.2
Ubuntu:22.04:LTS linux-nvidia 0 5.15.0-1005.5
Ubuntu:22.04:LTS linux-nvidia-6.5 0 6.5.0-1004.4
Ubuntu:22.04:LTS linux-nvidia-6.8 0 6.8.0-1008.8~22.04.1
Ubuntu:22.04:LTS linux-oracle 0 5.13.0-1008.10
Ubuntu:22.04:LTS linux-oracle-6.8 0 6.8.0-1006.6~22.04.3
Ubuntu:22.04:LTS linux-raspi 0 5.13.0-1008.9
Ubuntu:22.04:LTS linux-realtime 0 No fix
Ubuntu:22.04:LTS linux-riscv 0 No fix
Ubuntu:22.04:LTS linux-riscv-6.8 0 6.8.0-38.38.1~22.04.1
Ubuntu:22.04:LTS linux-xilinx-zynqmp 0 5.15.0-1022.26
Ubuntu:22.04:LTS:for:NVIDIA:BlueField linux-bluefield 0 5.15.0-1011.13
Ubuntu:24.04:LTS linux 0 6.5.0-9.9
Ubuntu:24.04:LTS linux-aws 0 6.5.0-1008.8
Ubuntu:24.04:LTS linux-azure 0 6.5.0-1007.7
Ubuntu:24.04:LTS linux-azure-6.11 0 No fix
Ubuntu:24.04:LTS linux-gcp 0 6.5.0-1007.7
Ubuntu:24.04:LTS linux-gcp-6.11 0 No fix
Ubuntu:24.04:LTS linux-gke 0 6.8.0-1003.5
Ubuntu:24.04:LTS linux-gkeop 0 6.8.0-1001.3
Ubuntu:24.04:LTS linux-hwe-6.11 0 No fix
Ubuntu:24.04:LTS linux-ibm 0 6.5.0-1009.9
Ubuntu:24.04:LTS linux-lowlatency 0 6.5.0-9.9.1
Ubuntu:24.04:LTS linux-lowlatency-hwe-6.11 0 No fix
Ubuntu:24.04:LTS linux-nvidia 0 6.8.0-1007.7
Ubuntu:24.04:LTS linux-nvidia-lowlatency 0 6.8.0-1009.9.1
Ubuntu:24.04:LTS linux-oem-6.11 0 6.11.0-1007.7
Ubuntu:24.04:LTS linux-oem-6.8 0 6.8.0-1003.3
Ubuntu:24.04:LTS linux-oracle 0 6.5.0-1010.10
Ubuntu:24.04:LTS linux-raspi 0 6.5.0-1005.7
Ubuntu:24.04:LTS linux-raspi-realtime 0 No fix
Ubuntu:24.04:LTS linux-raspi-realtime 0 6.7.0-2001.1
Ubuntu:24.04:LTS linux-realtime 0 6.8.0-1008.19
Ubuntu:24.04:LTS linux-riscv 0 6.5.0-9.9.1
Ubuntu:24.10 linux 0 6.8.0-31.31
Ubuntu:24.10 linux-aws 0 6.8.0-1008.8
Ubuntu:24.10 linux-azure 0 6.8.0-1007.7
Ubuntu:24.10 linux-gcp 0 6.8.0-1007.7
Ubuntu:24.10 linux-lowlatency 0 6.8.0-31.31.1
Ubuntu:24.10 linux-oracle 0 6.8.0-1005.5
Ubuntu:24.10 linux-raspi 0 6.8.0-1004.4
Ubuntu:24.10 linux-realtime 0 6.11.0-1001.1
Ubuntu:24.10 linux-riscv 0 6.8.0-31.31.1
Ubuntu:Pro:14.04:LTS linux-lts-vivid 0 No fix
Ubuntu:Pro:16.04:LTS linux-euclid 0 No fix
Ubuntu:Pro:16.04:LTS linux-flo 0 No fix
Ubuntu:Pro:16.04:LTS linux-goldfish 0 No fix
Ubuntu:Pro:16.04:LTS linux-mako 0 No fix
Ubuntu:Pro:18.04:LTS linux-azure 0 No fix
Ubuntu:Pro:18.04:LTS linux-gcp 0 No fix

Related vulnerabilities