MCPcopy Create free account
hub / github.com/bsauce/kernel-exploit-factory / genlmsg_close

Function genlmsg_close

CVE-2022-2639/exploit.c:298–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

296}
297
298void genlmsg_close(int sockfd) {
299 if (sockfd >= 0)
300 close(sockfd);
301}
302// ovsmsg_send() —— construct vulnerable nlmsghdr -> genlmsghdr -> nlattr packet and send
303int ovsmsg_send(int sockfd, uint16_t nlmsg_type, uint32_t nlmsg_pid,
304 uint8_t genl_cmd, uint8_t genl_version,

Callers 1

init_nl_sockFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected