Skip to content
OpenAdvisories
Unscored Public exploit CVE-2016-4557 EUVD-2016-5544GHSA-3wq8-wfw2-w4xm

The replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c in the Linux kernel before 4.5.5 does not properly maintain an fd data st…

Published May 23, 2016 · Updated Aug 6, 2024 · Assigned by mitre

Description

The replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c in the Linux kernel before 4.5.5 does not properly maintain an fd data structure, which allows local users to gain privileges or cause a denial of service (use-after-free) via crafted BPF instructions that reference an incorrect file descriptor.

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 linux 4.5.3-1 —
Debian 13 linux 4.5.3-1 —
Debian 12 linux 4.5.3-1 —
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS linux 4.4.0-22.39 USN-2965-1
Ubuntu 16.04 LTS linux-raspi2 4.4.0-1010.12 USN-2965-3
Ubuntu 16.04 LTS linux-snapdragon 4.4.0-1013.14 USN-2965-4
Ubuntu 14.04 LTS linux-lts-xenial 4.4.0-22.39~14.04.1 USN-2965-2
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed kernel-source 4.8.13-1.1 openSUSE-SU-2024:10128-1

Public exploits

Exploit or proof-of-concept code for this vulnerability is publicly available, which lowers the bar for attackers. Treat it as a reason to patch sooner.

Third-party code, not reviewed by us. Public PoCs are sometimes fake or contain malware. Read the code first and run it only in an isolated lab, against systems you are authorised to test.

Metasploit 1 module

Sources: PoC-in-GitHub, Metasploit Framework, Exploit-DB — updated daily. Only links are listed; no exploit code is hosted here.

Advisories 5

References