{"schema":"vulnpedia.research/1","cve":"CVE-2026-95821","references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/5bf0cb3eef2f9d5700d35df8e84a8cd52be47af7","tags":["patch"],"source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","origins":[{"source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","tags":["patch"],"url":"https://github.com/zephyrproject-rtos/zephyr/commit/5bf0cb3eef2f9d5700d35df8e84a8cd52be47af7"},{"source":"nvd","sourceId":"CVE-2026-95821","modified":"2026-11-29T21:17:03.097","url":"https://github.com/zephyrproject-rtos/zephyr/commit/5bf0cb3eef2f9d5700d35df8e84a8cd52be47af7"}]},{"url":"https://github.com/zephyrproject-rtos/zephyr/pull/126144","source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","origins":[{"source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","url":"https://github.com/zephyrproject-rtos/zephyr/pull/126144"},{"source":"nvd","sourceId":"CVE-2026-95821","modified":"2026-11-29T21:17:03.097","url":"https://github.com/zephyrproject-rtos/zephyr/pull/126144"}],"tags":[]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-jc9q-r4vv-8jjx","source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","origins":[{"source":"mitre","sourceId":"zephyr","modified":"2026-11-29T20:56:41.209Z","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-jc9q-r4vv-8jjx"},{"source":"nvd","sourceId":"CVE-2026-95821","modified":"2026-11-29T21:17:03.097","url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-jc9q-r4vv-8jjx"}],"tags":[]},{"source":"euvd","sourceId":"EUVD-2026-137829","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-137829","tags":["ADVISORY"],"origins":[{"source":"euvd","sourceId":"EUVD-2026-137829","tags":["ADVISORY"],"url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2026-137829"}]}],"packages":[],"pocCandidates":[],"cataloguedPoc":[],"vendorStatements":[],"sourceTimes":{"cisa-kev":"2026-12-02T08:07:57.787Z","exploitdb":"2026-12-02T08:07:57.787Z","epss":"2026-12-02T08:07:57.787Z","nuclei":"2026-12-02T08:07:57.787Z","osv-PyPI":"2026-12-02T08:08:28.417Z","osv-npm":"2026-12-02T08:09:06.481Z","osv-Maven":"2026-12-02T08:08:33.548Z","osv-Go":"2026-12-02T08:08:37.108Z","osv-crates_io":"2026-12-02T08:08:38.459Z","osv-RubyGems":"2026-12-02T08:08:39.853Z","osv-Packagist":"2026-12-02T08:08:43.257Z","osv-NuGet":"2026-12-02T08:08:44.799Z","osv-Pub":"2026-12-02T08:08:45.082Z","osv-SwiftURL":"2026-12-02T08:08:45.246Z","osv-GitHub_Actions":"2026-12-02T08:08:45.404Z","osv-_EMPTY_":"2026-12-02T08:08:50.503Z","poc-in-github":"2026-12-02T08:08:55.031Z","metasploit":"2026-12-02T08:08:56.892Z","redhat-vex":"2026-12-02T08:13:29.952Z","euvd":"2026-12-02T08:08:22.901Z","vulncheck-kev":"2026-12-02T08:08:21.627Z","zdi":"2026-12-02T08:08:18.922Z","oss-security":"2026-12-02T08:08:18.922Z","full-disclosure":"2026-12-02T08:08:18.922Z","cert-cc":"2026-12-02T08:08:18.922Z","watchtowr":"2026-12-02T08:08:18.922Z","lexfo":"2026-12-02T08:08:18.922Z","google-security-research":"2026-12-02T08:08:18.922Z","vulncheck-initial-access":"2026-12-02T08:08:18.922Z","fkie-nvd-2026":"2026-12-02T08:08:02.020Z","fkie-nvd-2025":"2026-12-02T08:08:13.945Z","ghsa":"2026-12-02T08:08:28.417Z","pysec":"2026-12-02T08:08:28.417Z","go":"2026-12-02T08:08:28.417Z","rustsec":"2026-12-02T08:08:28.417Z","primary":"2026-11-29T20:56:41.209Z","nvd":"2026-11-29T21:17:03.097"},"sourceFields":{"schema":"vulnpedia.source-fields/1","primary":{"description":"The SOCKS5 client in subsys/net/lib/socks/socks.c passes the addresses of two of socks5_tcp_connect()'s own stack variables, method_rsp and cmd_rsp, to net_context_recv() as the user data for the negotiation and CONNECT response callbacks. For a TCP context net_context_recv() reaches net_tcp_recv(), which only stores context->recv_cb and conn->recv_user_data and never removes them. On the success path zsock_connect_ctx() immediately replaces them with zsock_received_cb(), but on every error path nothing did, so the network context was left holding a pointer into a stack frame that had already been destroyed.\n\nAny remote peer acting as the proxy can arm this with a protocol-legal response: answering the method negotiation with NO ACCEPTABLE METHODS (0xFF), sending a bad version byte, returning a non-success REP in the CONNECT reply, or simply stalling until CONFIG_NET_SOCKETS_CONNECT_TIMEOUT expires all make socks5_tcp_connect() return an error while the callbacks stay installed. The dangling pointer is then dereferenced asynchronously from the networking threads: tcp_conn_close() in subsys/net/ip/tcp.c invokes context->recv_cb() on FIN, RST or timeout, and the callback memset()s through the stale pointer, while any further data on the socket reaches net_context_packet_received() and makes net_pkt_read() write peer-supplied bytes there.\n\nThe result is a write of two to four bytes (zeroes on the teardown path, peer-chosen bytes on the data path) into a stack region of the threa","published":"2026-11-29","cwe":[{"id":"CWE-825","name":"memory-safety"}],"labels":{"vendors":["zephyrproject"],"products":["zephyr"]},"ssvc":null},"nvd":{"description":"The SOCKS5 client in subsys/net/lib/socks/socks.c passes the addresses of two of socks5_tcp_connect()'s own stack variables, method_rsp and cmd_rsp, to net_context_recv() as the user data for the negotiation and CONNECT response callbacks. For a TCP context net_context_recv() reaches net_tcp_recv(), which only stores context->recv_cb and conn->recv_user_data and never removes them. On the success path zsock_connect_ctx() immediately replaces them with zsock_received_cb(), but on every error path nothing did, so the network context was left holding a pointer into a stack frame that had already been destroyed.\n\nAny remote peer acting as the proxy can arm this with a protocol-legal response: answering the method negotiation with NO ACCEPTABLE METHODS (0xFF), sending a bad version byte, returning a non-success REP in the CONNECT reply, or simply stalling until CONFIG_NET_SOCKETS_CONNECT_TIMEOUT expires all make socks5_tcp_connect() return an error while the callbacks stay installed. The dangling pointer is then dereferenced asynchronously from the networking threads: tcp_conn_close() in subsys/net/ip/tcp.c invokes context->recv_cb() on FIN, RST or timeout, and the callback memset()s through the stale pointer, while any further data on the socket reaches net_context_packet_received() and makes net_pkt_read() write peer-supplied bytes there.\n\nThe result is a write of two to four bytes (zeroes on the teardown path, peer-chosen bytes on the data path) into a stack region of the threa","published":"2026-11-29","cwe":[{"id":"CWE-825","name":"Expired Pointer Dereference"}],"labels":{"vendors":[],"products":[]},"ssvc":null}},"labels":{"vendors":["zephyrproject"],"products":["zephyr"]},"evidence":{"version":"2026-12-02T08:13:57.184Z#891ce5d957da4676e18abdb691ad28ad2b1a85dc4d06f9580c77fb2c4d682228","checkedAt":"2026-12-02T08:13:57.184Z","changedAt":"2026-12-01T08:12:50.035Z","pocChangedAt":null}}