Cloudanix VulnDB

CVE-2015-8787

Critical · 9.8

CVSS

9.8

EPSS

9.2%

Published

Feb 8, 2016

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

A problem in the core of the Linux operating system could let attackers crash computers by sending certain network messages, potentially disrupting services until the system software is updated.

Exploitation
Remote Unauthenticated
Attacker needs
None
Complexity
Low
Impact
Denial Of Service
Component
OS kernel
Class
Memory Corruption
Remediation
Upgrade
Effort
Medium
Patch risk
Medium

What it actually does

Remote attackers can trigger a NULL pointer dereference in nf_nat_redirect_ipv4 by sending crafted IPv4 packets to an incompletely configured network interface, resulting in kernel panic or potential further memory corruption impact.

Why it matters to the business

Unpatched systems face risk of sudden crashes and service outages from network traffic; while no active exploitation campaigns are recorded, the high severity and kernel-wide exposure affect availability of any Linux-based infrastructure handling IPv4 NAT.

How an attack unfolds

An attacker identifies a Linux system with an interface using nf_nat_redirect but lacking full configuration, then transmits specially formed IPv4 packets that reach the vulnerable netfilter path, dereferencing a NULL pointer and crashing the kernel.

How to fix it

Upgrade the Linux kernel to version 4.4 or later on all affected systems; apply the fix referenced in the commit that resolved the related issue CVE-2003-1604 in the netfilter redirect path; where immediate patching is impossible, disable or fully configure NAT redirect features on exposed interfaces.

How to confirm the fix worked

Verify kernel version is 4.4 or newer; confirm absence of the vulnerable nf_nat_redirect_ipv4 implementation in net/netfilter/nf_nat_redirect.c; perform controlled packet tests against test interfaces to ensure no crash occurs.

Typical attack path

  1. Scan for reachable Linux hosts exposing IPv4 interfaces with NAT redirect enabled but incomplete setup
  2. Craft and transmit specific IPv4 packets targeting the nf_nat_redirect_ipv4 code path
  3. Trigger NULL pointer dereference causing immediate kernel panic and system crash

How to detect it

Inspect kernel logs and crash dumps for oops or panic messages referencing nf_nat_redirect_ipv4 or netfilter NULL dereference around the time of unexpected reboots; correlate with network flow logs showing inbound IPv4 packets to interfaces using NAT redirect.

  • nf_nat_redirect_ipv4
  • NULL pointer dereference.*net/netfilter/nf_nat_redirect.c
  • kernel: general protection fault.*nf_nat_redirect

What your security team should do

  • Prioritize kernel upgrades to 4.4+ across all Linux fleets given the remote unauthenticated attack surface
  • Audit network configurations to ensure no interfaces use incomplete NAT redirect setups
  • Monitor kernel logs for NULL dereference oops in netfilter modules as part of routine crash analysis

The record

The nf_nat_redirect_ipv4 function in net/netfilter/nf_nat_redirect.c in the Linux kernel before 4.4 allows remote attackers to cause a denial of service (NULL pointer dereference and system crash) or possibly have unspecified other impact by sending certain IPv4 packets to an incompletely configured interface, a related issue to CVE-2003-1604.

Affected packages

Ecosystem Package Introduced Fixed
Debian:11 linux 0 4.3.5-1
Debian:12 linux 0 4.3.5-1
Debian:13 linux 0 4.3.5-1
Ubuntu:14.04:LTS linux-aws 0 4.4.0-1002.2
Ubuntu:14.04:LTS linux-lts-vivid 0 3.19.0-49.55~14.04.1
Ubuntu:14.04:LTS linux-lts-wily 0 4.2.0-27.32~14.04.1
Ubuntu:14.04:LTS linux-lts-xenial 0 4.4.0-13.29~14.04.1
Ubuntu:16.04:LTS linux 0 4.4.0-2.16
Ubuntu:16.04:LTS linux-aws 0 4.4.0-1001.10
Ubuntu:16.04:LTS linux-gke 0 4.4.0-1003.3
Ubuntu:16.04:LTS linux-hwe 0 4.8.0-36.36~16.04.1
Ubuntu:16.04:LTS linux-raspi2 0 4.4.0-1003.4
Ubuntu:16.04:LTS linux-snapdragon 0 4.4.0-1012.12

Related vulnerabilities