{"id":"CVE-2023-31129","published":"2023-05-08T20:51:14Z","modified":"2025-01-29T14:30:14Z","title":"Contiki-NG missing NULL pointer check in IPv6 neighbor discovery","vendor":"contiki-ng","product":"contiki-ng","tier":"tail","description":{"text":"The Contiki-NG operating system versions 4.8 and prior can be triggered to dereference a NULL pointer in the message handling code for IPv6 router solicitiations. Contiki-NG contains an implementation of IPv6 Neighbor Discovery (ND) in the module `os/net/ipv6/uip-nd6.c`. The ND protocol includes a message type called Router Solicitation (RS), which is used to locate routers and update their address information via the SLLAO (Source Link-Layer Address Option). If the indicated source address changes, a given neighbor entry is set to the STALE state.\n\nThe message handler does not check for RS messages with an SLLAO that indicates a link-layer address change that a neighbor entry can actually be created for the indicated address. The resulting pointer is used without a check, leading to the dereference of a NULL pointer of type `uip_ds6_nbr_t`.\n\nThe problem has been patched in the `develop` branch of Contiki-NG, and will be included in the upcoming 4.9 release. As a workaround, users can apply Contiki-NG pull request #2271 to patch the problem directly.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00644,"percentile":0.51832,"provenance":"source"},"cwes":[{"id":"CWE-476","name":"NULL Pointer Dereference"}],"references":[{"url":"https://github.com/contiki-ng/contiki-ng/security/advisories/GHSA-x29r-5qjg-75mq","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/contiki-ng/contiki-ng/pull/2271","tags":["x_refsource_MISC"]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":10.37},{"name":"CVSS severity","points":5.25}]},"vendorSlug":"contiki-ng","affectedVersions":[{"vendor":"contiki-ng","product":"contiki-ng","versions":["<= 4.8"]}],"ssvc":{"exploitation":"none","automatable":"yes","technicalImpact":"partial","timestamp":"2025-01-29T14:30:04.885107Z","from":"CISA ADP","provenance":"source"},"euvd":{"id":"EUVD-2023-35453","exploited":false,"provenance":"source"}}