---
title: "CVE-2016-4557\n    | Ubuntu"
description: Ubuntu is an open source software operating system that runs from the
  desktop, to the cloud, to all your internet connected things.
url: https://ubuntu.com/security/CVE-2016-4557?format=md
keywords: index, follow
---

# CVE-2016-4557

Publication date 5 May 2016

Last updated 4 July 2026

---

Ubuntu priority

**High**

[Why this priority?](https://ubuntu.com/security/cves/about#priority )

## Cvss 3 Severity Score

**7.8 · High**

[Score breakdown](https://ubuntu.com/security/CVE-2016-4557?format=md#impact-score)

Toggle side navigation

## 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.

### From the Ubuntu Security Team

Jann Horn discovered that the extended Berkeley Packet Filter (eBPF)
implementation in the Linux kernel did not properly reference count file
descriptors, leading to a use-after-free. A local unprivileged attacker
could use this to gain administrative privileges.

[Read the notes from the security team](https://ubuntu.com/security/CVE-2016-4557?format=md#notes)

## Status

Show unmaintained releases

| Package | Ubuntu Release | Status |
| --- | --- | --- |
| linux | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Fixed 4.4.0-22.39 |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not affected |
| linux-armadaxp | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not affected |
| linux-aws | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not affected |
| 12.04 LTS precise | Not in release |
| linux-flo | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-gke | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-goldfish | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-grouper | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-hwe | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-hwe-edge | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-linaro-omap | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-linaro-shared | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-linaro-vexpress | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-lts-quantal | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-lts-raring | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-lts-saucy | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-lts-trusty | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not affected |
| linux-lts-utopic | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-lts-vivid | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-lts-wily | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-lts-xenial | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Fixed 4.4.0-22.39~14.04.1 |
| 12.04 LTS precise | Not in release |
| linux-maguro | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-mako | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-manta | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-qcm-msm | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Ignored end of life |
| linux-raspi2 | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Fixed 4.4.0-1010.12 |
| 15.10 wily | Not affected |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-snapdragon | 16.10 yakkety | Not affected |
| 16.04 LTS xenial | Fixed 4.4.0-1013.14 |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not in release |
| linux-ti-omap4 | 16.10 yakkety | Not in release |
| 16.04 LTS xenial | Not in release |
| 15.10 wily | Not in release |
| 14.04 LTS trusty | Not in release |
| 12.04 LTS precise | Not affected |

---

* [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)
* [What do statuses mean?](https://ubuntu.com/security/cves/about#statuses)
* [Patch details](https://ubuntu.com/security/CVE-2016-4557?format=md#patch-details)

## Notes

---

### [jdstrand](https://launchpad.net/~jdstrand)

android kernels (flo, goldfish, grouper, maguro, mako and manta) are
not supported on the Ubuntu Touch 14.10 and earlier preview kernels
linux-lts-saucy no longer receives official support
linux-lts-quantal no longer receives official support

---

### [sbeattie](https://launchpad.net/~sbeattie)

affects 4.4 kernels only
introduced in 0246e64d9a5f, but made exploitable by 1be7f75d1668

### Patch details

For informational purposes only. We recommend not to cherry-pick updates. [How can I get the fixes?](https://ubuntu.com/security/cves/about#security)

| Package | Patch details |
| --- | --- |
| linux | * Introduced by   [1be7f75](https://git.kernel.org/linus/1be7f75d1668d6296b80bf35dcf6762393530afc),   fixed by   [8358b02](https://git.kernel.org/linus/8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7) |

## Severity score breakdown

CVSS version:
CVSS v3.0

**Base score**

7.8 · High

* Base metrics

  | Parameter | Value |
  | --- | --- |
  | Attack vector | Local |
  | Attack complexity | Low |
  | Privileges required | Low |
  | User interaction | None |
  | Scope | Unchanged |
  | Confidentiality impact | High |
  | Integrity impact | High |
  | Availability impact | High |
* Scores

  | Parameter | Value |
  | --- | --- |
  | Base score | 7.8 · High |
  | Exploitability score | - |
  | Impact score | - |

**Vector:** CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H

## References

* [MITRE](https://cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2016-4557)
* [NVD](https://nvd.nist.gov/vuln/detail/CVE-2016-4557)
* [Launchpad](https://launchpad.net/bugs/cve/CVE-2016-4557)
* [Debian](https://security-tracker.debian.org/tracker/CVE-2016-4557)

### Related Ubuntu Security Notices (USN)

+ [USN-2965-3](https://usn.ubuntu.com/USN-2965-3)
+ Linux kernel (Raspberry Pi 2) vulnerabilities
+ 6 May 2016

+ [USN-2965-4](https://usn.ubuntu.com/USN-2965-4)
+ Linux kernel (Qualcomm Snapdragon) vulnerability
+ 6 May 2016

+ [USN-2965-1](https://usn.ubuntu.com/USN-2965-1)
+ Linux kernel vulnerabilities
+ 6 May 2016

+ [USN-2965-2](https://usn.ubuntu.com/USN-2965-2)
+ Linux kernel (Xenial HWE) vulnerabilities
+ 6 May 2016

### Other references

* <https://bugs.chromium.org/p/project-zero/issues/detail?id=808>
* <https://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7>
* <http://www.openwall.com/lists/oss-security/2016/05/06/7>
* <https://www.cve.org/CVERecord?id=CVE-2016-4557>
