{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2026-5066","id":"CVE-2026-5066","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_so","descriptionLong":"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.","published":"2026-06-04T20:31:25.630Z","updated":"2026-10-28T02:31:12.706758751Z","reserved":"2026-03-27T22:19:50.768Z","status":"Analyzed","rejected":false,"assigner":"zephyr","metric":{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"zephyr"},"metrics":[{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"zephyr"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"zephyrproject.org"},{"version":"3.1","score":8.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H","rating":"high","source":"NVD"},{"version":"3.1","score":6.3,"vector":"CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L","rating":"medium","source":"OSV"}],"rating":"medium","products":["zephyrproject-rtos Zephyr"],"affectedProducts":[{"vendor":"zephyrproject-rtos","product":"Zephyr","defaultStatus":"unaffected","versions":[{"lessThan":"3.7.2","status":"affected","version":"*","versionType":"git"},{"lessThan":"4.2.2","status":"affected","version":"4.0.0","versionType":"git"},{"lessThan":"4.3.1","status":"affected","version":"4.3.0","versionType":"git"}],"platforms":[]}],"packages":[],"cwes":["CWE-787"],"aliases":["GHSA-wgrc-jrf6-24f3"],"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-wgrc-jrf6-24f3","tags":["exploit","Exploit","Patch","Vendor Advisory","advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/5xxx/CVE-2026-5066.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5066","tags":["advisory"]},{"url":"https://github.com/zephyrproject-rtos/zephyr","tags":["package"]}],"patchReferenced":true,"fixAvailable":true,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"no","technicalImpact":"partial"},"epss":0.0032,"epssPercentile":0.25497,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2026-5066","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-5066","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2026-5066","ok":true,"note":"0 packages"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2026-5066","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}