{"id":"CVE-2026-5066","revision":"7849fed173d64d1883d2aa99159d28d6","records":[{"revision":"7849fed173d64d1883d2aa99159d28d6","observedAt":"2026-10-23T15:48:27.903+00:00","statement":{"source":"cve-program","id":"CVE-2026-5066","aliases":[],"title":"net: sockets: tls: Potential out-of-bounds write/read in socket_op_vtable::connect function","description":"A potential out-of-bounds write/read exists in the TLS socket connect path of the network sockets subsystem (subsys/net/lib/sockets/sockets_tls.c). When the TLS session cache is enabled, tls_session_store() and tls_session_restore() memcpy the caller-supplied address into a fixed-size buffer using the caller-controlled addrlen value without validating it against the destination size. struct net_sockaddr is an opaque type, so an application can pass an addrlen larger than sizeof(struct net_sockaddr) (for example 128 bytes into a 24-byte stack buffer), causing the memcpy to read and write past the end of the address memory used by the TLS session cache. This out-of-bounds write can lead to a crash and denial of service, and potentially to arbitrary code execution.","state":0,"publishedAt":"2026-06-04T20:31:25.63+00:00","modifiedAt":"2026-10-15T22:10:24.916+00:00","affected":[{"ecosystem":"Vendor product","name":"Zephyr","ranges":[],"versions":[],"rawVersionEvidence":"{\n                    \"defaultStatus\": \"unaffected\",\n                    \"packageName\": \"Zephyr\",\n                    \"product\": \"Zephyr\",\n                    \"repo\": \"https://github.com/zephyrproject-rtos/zephyr\",\n                    \"vendor\": \"zephyrproject-rtos\",\n                    \"versions\": [\n                        {\n                            \"lessThan\": \"3.7.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"*\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"lessThan\": \"4.2.2\",\n                            \"status\": \"affected\",\n                            \"version\": \"4.0.0\",\n                            \"versionType\": \"git\"\n                        },\n                        {\n                            \"lessThan\": \"4.3.1\",\n                            \"status\": \"affected\",\n                            \"version\": \"4.3.0\",\n                            \"versionType\": \"git\"\n                        }\n                    ]\n                }"}],"metrics":[{"system":"CVSS 3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","score":6.3,"severity":"MEDIUM"}],"references":["https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wgrc-jrf6-24f3"],"sourceUrl":"https://www.cve.org/CVERecord?id=CVE-2026-5066","license":"CVE Program Terms of Use","key":"cve-program:CVE-2026-5066","identifiers":["CVE-2026-5066"]},"retained":false,"historicalAffected":[]}],"coverage":[]}