{"id":"CVE-2026-53921","summary":"odhcpd: Stack buffer overflow in DHCPv6 IA reply serialization (2 independent sites)","details":"odhcpd is the DHCPv6, DHCPv4, and router-advertisement server used by OpenWrt. Prior to version 25.12, odhcpd's DHCPv6 IA response handler writes past the end of a fixed 512-byte stack buffer (pdbuf) when a single DHCPv6 REQUEST carries enough IA options to nearly exhaust the reply space. Two independent overflow sites exist in the same call chain, both reachable from the network via a single unauthenticated UDP packet. odhcpd runs as root on OpenWrt; embedded targets often lack stack canaries and ASLR, making code execution realistic. This issue has been patched in version 25.12.","aliases":["GHSA-7fwx-hhrg-3496"],"modified":"2026-10-31T07:04:49.495902353Z","published":"2026-10-23T13:20:30.249Z","database_specific":{"unresolved_ranges":[{"extracted_events":[{"range":[{"fixed":"25.12"}],"source":"AFFECTED_FIELD","strategy":"StringRangeExpression"}]},{"extracted_events":[{"source":"DESCRIPTION","range":[{"fixed":"25.12"},{"fixed":"25.12"}]}]}],"cna_assigner":"GitHub_M","cwe_ids":["CWE-121"],"osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53921.json"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/53xxx/CVE-2026-53921.json"},{"type":"ADVISORY","url":"https://github.com/openwrt/odhcpd/security/advisories/GHSA-7fwx-hhrg-3496"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-53921"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/0320032ae313452f3c8cb8725c621dd06c36dc03"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/03dacc23356b5789842b9d1bba0200fd005e35f3"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/2a42d34c3615e2449ca273f673eee7c429d819a9"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/6634b7a3c79c41a27687925c98c35c8aea2f2b5a"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/d168c27fb6a55a07ac4c888e09ff2f41e263d7b7"},{"type":"FIX","url":"https://github.com/openwrt/odhcpd/commit/d329a15413387027453644cd363dca06ade28328"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://github.com/openwrt/odhcpd","events":[{"introduced":"0"},{"fixed":"0320032ae313452f3c8cb8725c621dd06c36dc03"},{"fixed":"03dacc23356b5789842b9d1bba0200fd005e35f3"},{"fixed":"2a42d34c3615e2449ca273f673eee7c429d819a9"},{"fixed":"6634b7a3c79c41a27687925c98c35c8aea2f2b5a"},{"fixed":"d168c27fb6a55a07ac4c888e09ff2f41e263d7b7"},{"fixed":"d329a15413387027453644cd363dca06ade28328"}],"database_specific":{"extracted_events":[{"range":[{"fixed":"0320032ae313452f3c8cb8725c621dd06c36dc03"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"03dacc23356b5789842b9d1bba0200fd005e35f3"}]},{"source":"REFERENCES_COMMIT","range":[{"fixed":"2a42d34c3615e2449ca273f673eee7c429d819a9"}]},{"range":[{"fixed":"6634b7a3c79c41a27687925c98c35c8aea2f2b5a"}],"source":"REFERENCES_COMMIT"},{"range":[{"fixed":"d168c27fb6a55a07ac4c888e09ff2f41e263d7b7"}],"source":"REFERENCES_COMMIT"},{"source":"REFERENCES_COMMIT","range":[{"fixed":"d329a15413387027453644cd363dca06ade28328"}]}]}}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-53921.json","vanir_signatures":[{"signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/d329a15413387027453644cd363dca06ade28328","target":{"file":"src/dhcpv6-ia.c","function":"build_ia"},"deprecated":false,"digest":{"function_hash":"9099185628977254717979877965896175308","length":5788},"id":"CVE-2026-53921-229019dd","signature_type":"Function"},{"digest":{"function_hash":"324332590498826916293339512195297924922","length":8472},"id":"CVE-2026-53921-2e9c6740","signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/0320032ae313452f3c8cb8725c621dd06c36dc03","target":{"file":"src/dhcpv6-ia.c","function":"dhcpv6_ia_handle_IAs"},"deprecated":false},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/03dacc23356b5789842b9d1bba0200fd005e35f3","target":{"file":"src/dhcpv6-ia.c","function":"dhcpv6_ia_handle_IAs"},"deprecated":false,"digest":{"length":8620,"function_hash":"242559609946673135406253259097100944367"},"id":"CVE-2026-53921-498674c5"},{"signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/6634b7a3c79c41a27687925c98c35c8aea2f2b5a","target":{"function":"dhcpv6_ia_handle_IAs","file":"src/dhcpv6-ia.c"},"deprecated":false,"digest":{"function_hash":"324332590498826916293339512195297924922","length":8472},"id":"CVE-2026-53921-6bd11cb0"},{"source":"https://github.com/openwrt/odhcpd/commit/d329a15413387027453644cd363dca06ade28328","target":{"file":"src/dhcpv6-ia.c"},"deprecated":false,"digest":{"line_hashes":["78997654183143576230021370399144837976","72147466224646437144043756138600730882","118507397004435271855833497865327351337"],"threshold":0.9},"id":"CVE-2026-53921-725fa772","signature_type":"Line","signature_version":"v1"},{"target":{"function":"build_ia","file":"src/dhcpv6-ia.c"},"deprecated":false,"digest":{"function_hash":"9099185628977254717979877965896175308","length":5788},"id":"CVE-2026-53921-952824e7","signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/d168c27fb6a55a07ac4c888e09ff2f41e263d7b7"},{"source":"https://github.com/openwrt/odhcpd/commit/2a42d34c3615e2449ca273f673eee7c429d819a9","target":{"file":"src/dhcpv6-ia.c"},"deprecated":false,"digest":{"line_hashes":["114173525575912241730497237176291810885","321381012341136711339537067427161270455","318671595017656628124308017975588600452","157084480657206741476249082465221660559","170114245223615961794772753876281710903","195228864273502356054918776198694222679","28970209059077829881997553613007127544","153059113215431796412357604648898692930"],"threshold":0.9},"id":"CVE-2026-53921-c1e5df4d","signature_type":"Line","signature_version":"v1"},{"id":"CVE-2026-53921-ca485a19","signature_type":"Function","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/2a42d34c3615e2449ca273f673eee7c429d819a9","target":{"file":"src/dhcpv6-ia.c","function":"dhcpv6_ia_handle_IAs"},"deprecated":false,"digest":{"function_hash":"242559609946673135406253259097100944367","length":8620}},{"deprecated":false,"digest":{"line_hashes":["78997654183143576230021370399144837976","72147466224646437144043756138600730882","118507397004435271855833497865327351337"],"threshold":0.9},"id":"CVE-2026-53921-cafe422d","signature_type":"Line","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/d168c27fb6a55a07ac4c888e09ff2f41e263d7b7","target":{"file":"src/dhcpv6-ia.c"}},{"target":{"file":"src/dhcpv6-ia.c"},"deprecated":false,"digest":{"line_hashes":["114173525575912241730497237176291810885","321381012341136711339537067427161270455","318671595017656628124308017975588600452","157084480657206741476249082465221660559","170114245223615961794772753876281710903","195228864273502356054918776198694222679","28970209059077829881997553613007127544","153059113215431796412357604648898692930"],"threshold":0.9},"id":"CVE-2026-53921-f750c661","signature_type":"Line","signature_version":"v1","source":"https://github.com/openwrt/odhcpd/commit/03dacc23356b5789842b9d1bba0200fd005e35f3"}],"vanir_signatures_modified":"2026-10-31T07:04:49Z"}}],"schema_version":"1.9.2","severity":[{"type":"CVSS_V3","score":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"}]}