{"id":"CVE-2016-4557","published":"2016-05-23T10:00:00Z","modified":"2024-08-06T00:32:25Z","title":"The replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c in the Linux kernel before 4.5.5 does not properly…","vendor":null,"product":null,"tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.10202,"percentile":0.95782,"provenance":"source"},"cwes":[],"references":[{"url":"https://bugs.debian.org/823603","tags":["x_refsource_CONFIRM"]},{"url":"http://lists.opensuse.org/opensuse-security-announce/2016-06/msg00044.html","tags":["vendor-advisory","x_refsource_SUSE"]},{"url":"https://bugzilla.redhat.com/show_bug.cgi?id=1334307","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/torvalds/linux/commit/8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7","tags":["x_refsource_CONFIRM"]},{"url":"http://www.kernel.org/pub/linux/kernel/v4.x/ChangeLog-4.5.5","tags":["x_refsource_CONFIRM"]},{"url":"https://bugs.chromium.org/p/project-zero/issues/detail?id=808","tags":["x_refsource_MISC"]},{"url":"http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7","tags":["x_refsource_CONFIRM"]},{"url":"http://www.openwall.com/lists/oss-security/2016/05/06/4","tags":["mailing-list","x_refsource_MLIST"]},{"url":"https://www.exploit-db.com/exploits/40759/","tags":["exploit","x_refsource_EXPLOIT-DB"]}],"priority":{"score":24.2,"factors":[{"name":"EPSS percentile","points":19.16},{"name":"Public exploit code","points":5.0}]},"exploitSources":{"exploitdb":{"count":2,"earliest":"2016-05-04"},"metasploit":[{"name":"Linux BPF doubleput UAF Privilege Escalation","module":"exploit/linux/local/bpf_priv_esc","type":"exploit","disclosureDate":"2016-05-04","url":"https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/linux/local/bpf_priv_esc.rb"}],"first":{"date":"2016-05-04","source":"Exploit-DB","url":"https://www.exploit-db.com/exploits/39772"},"provenance":"source"},"summary":{"text":"The replace_map_fd_with_map_ptr function in kernel/bpf/verifier.c of the Linux kernel, before version 4.5.5, does not properly maintain an fd data structure. An attacker with local access can craft BPF instructions that reference an incorrect file descriptor, which can lead to a use-after-free that allows privilege escalation or denial of service.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T06:54:01Z"},"euvd":{"id":"EUVD-2016-5544","exploited":false,"provenance":"source"},"exploits":[{"id":39772,"url":"https://www.exploit-db.com/exploits/39772","title":"Linux Kernel 4.4.x (Ubuntu 16.04) - 'double-fdput()' bpf(BPF_PROG_LOAD) Privilege Escalation","date":"2016-05-04","verified":true,"provenance":"source"},{"id":40759,"url":"https://www.exploit-db.com/exploits/40759","title":"Linux Kernel 4.4 (Ubuntu 16.04) - 'BPF' Local Privilege Escalation (Metasploit)","date":"2016-11-14","verified":true,"provenance":"source"}],"exploitRefs":["https://www.exploit-db.com/exploits/40759/"],"lineage":{"familyId":"fam-cve-2016-4557-family-cve-2016-4557","children":[{"from":"CVE-2016-4557","to":"CVE-2016-4558","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["kernel/bpf/verifier.c"],"commits":["https://github.com/torvalds/linux/commit/8358b02bf67d3a5d8a825070e1aa73f25fb2e4c7","https://github.com/torvalds/linux/commit/92117d8443bc5afacc8d5ba82e541946310f106e"],"basis":"shared function","functions":["verifier_env"]}]}]}}