{"uuid": "124c0bc2-3f85-43eb-98f0-ac671164472c", "vulnerability_lookup_origin": "1a89b78e-f703-45f3-bb86-59eb712668bd", "author": "9f56dd64-161d-43a6-b9c3-555944290a09", "vulnerability": "CVE-2020-7457", "type": "seen", "source": "https://github.com/rapid7/metasploit-framework/blob/master/modules/exploits/freebsd/local/ip6_setpktopt_uaf_priv_esc.rb", "content": "{\"actions\": [], \"aliases\": [], \"arch\": \"x64\", \"author\": [\"Andy Nguyen\", \"bcoles \"], \"autofilter_ports\": [], \"autofilter_services\": [], \"check\": true, \"default_credential\": false, \"description\": \"This module exploits a race and use-after-free vulnerability in the\\n          FreeBSD kernel IPv6 socket handling. A missing synchronization lock\\n          in the `IPV6_2292PKTOPTIONS` option handling in `setsockopt` permits\\n          racing `ip6_setpktopt` access to a freed `ip6_pktopts` struct.\\n\\n          This exploit overwrites the `ip6po_pktinfo` pointer of a `ip6_pktopts`\\n          struct in freed memory to achieve arbitrary kernel read/write.\\n\\n          This module has been tested successfully on:\\n\\n          FreeBSD 9.0-RELEASE #0 (amd64);\\n          FreeBSD 9.1-RELEASE #0 r243825 (amd64);\\n          FreeBSD 9.2-RELEASE #0 r255898 (amd64);\\n          FreeBSD 9.3-RELEASE #0 r268512 (amd64);\\n          FreeBSD 12.0-RELEASE r341666 (amd64); and\\n          FreeBSD 12.1-RELEASE r354233 (amd64).\", \"disclosure_date\": \"2020-07-07\", \"fullname\": \"exploit/freebsd/local/ip6_setpktopt_uaf_priv_esc\", \"is_install_path\": true, \"mod_time\": \"2026-04-22 11:59:31 +0000\", \"name\": \"FreeBSD ip6_setpktopt Use-After-Free Privilege Escalation\", \"needs_cleanup\": true, \"notes\": {\"Reliability\": [\"repeatable-session\"], \"SideEffects\": [\"artifacts-on-disk\", \"ioc-in-logs\"], \"Stability\": [\"crash-os-restarts\"]}, \"path\": \"/modules/exploits/freebsd/local/ip6_setpktopt_uaf_priv_esc.rb\", \"platform\": \"BSD\", \"post_auth\": false, \"rank\": 500, \"ref_name\": \"freebsd/local/ip6_setpktopt_uaf_priv_esc\", \"references\": [\"CVE-2020-7457\", \"EDB-48644\", \"PACKETSTORM-158341\", \"URL-https://hackerone.com/reports/826026\", \"URL-https://bsdsec.net/articles/freebsd-announce-freebsd-security-advisory-freebsd-sa-20-20-ipv6\", \"URL-https://www.freebsd.org/security/patches/SA-20:20/ipv6.patch\", \"URL-https://github.com/freebsd/freebsd/blob/master/sys/netinet6/ip6_var.h\", \"URL-https://github.com/freebsd/freebsd/blob/master/sys/netinet6/ip6_output.c\"], \"rport\": null, \"session_types\": [\"shell\"], \"targets\": [\"Automatic\", \"FreeBSD 9.0-RELEASE #0\", \"FreeBSD 9.1-RELEASE #0 r243825\", \"FreeBSD 9.2-RELEASE #0 r255898\", \"FreeBSD 9.3-RELEASE #0 r268512\", \"FreeBSD 12.0-RELEASE r341666\", \"FreeBSD 12.1-RELEASE r354233\"], \"type\": \"exploit\"}", "creation_timestamp": "2026-09-08T06:48:18.641069Z"}