SardinhaNews

CVE-2017-16995

High🧨 Metasploit📦 Exploit-DB

Published: 12/27/2017 · Modified: 06/17/2026

CVSS 3.1ⓘ7.8
EPSSⓘ30.1%
VPR (Tenable)9.6

Description

The check_alu_op function in kernel/bpf/verifier.c in the Linux kernel through 4.4 allows local users to cause a denial of service (memory corruption) or possibly have unspecified other impact by leveraging incorrect sign extension.

Exploitation

Requires: local access, privileged account · Does not require: user interaction, special target conditions

How it is exploited

Exploitation method

  • The attacker needs local access to the target system, with a session or code already running on the host.
  • The attacker triggers the BPF (Berkeley Packet Filter) mechanism through calls that exploit the incorrect sign extension in the check_alu_op function of the BPF verifier.
  • The incorrect sign check allows the verifier to be bypassed, resulting in arbitrary kernel read/write.
  • With arbitrary kernel read/write, the attacker can corrupt memory (denial of service) or achieve unspecified other impacts, such as privilege escalation.

Am I affected? (applicability)

  • The Linux kernel in use is prior to version 4.14.8 (as per the Metasploit module) or within the 'through 4.4' range indicated by NVD; verify the exact kernel version on the host.
  • The system is compiled with BPF support.
  • Unprivileged access to BPF is permitted, i.e., kernel.unprivileged_bpf_disabled is not set to 1.
  • The attacker has a local account with low privileges that allows executing code on the host.

Does not require: user interaction, special target conditions.

Mitigation and detection

  • Apply the vendor fix for the Linux kernel (update to a corrected version).
  • Set kernel.unprivileged_bpf_disabled to 1 to prevent unprivileged BPF access.
  • Restrict local access to the host to trusted users only.

Impact if exploited

Kernel memory corruption (denial of service) or possible privilege escalation and unspecified other impacts, compromising system integrity and confidentiality.

Confidentiality: highIntegrity: highAvailability: high

Community reports (unverified): PoC 8

References and technical detail

The “Requires/Does not require” line and the confidentiality, integrity and availability impact come from the official CVSS vector. Method, applicability and mitigation are an automatic summary of the NVD description, public exploitation sources (Metasploit, Nuclei, Exploit-DB) and the CVE record via CIRCL (advisories and fixed version), linked under “References and technical detail”. Community reports come from CIRCL sightings and are unverified.

Affected products

  • linux · linux_kernel
  • debian · debian_linux
  • canonical · ubuntu_linux

Weakness type (CWE)

In the news

Timeline on SardinhaNews

References