{"schemaVersion":4,"id":"CVE-2026-93667","aliases":[],"status":"published","duplicateOf":null,"title":"Function pointer type confusion in Zephyr Virtual L2 when a VLAN-tagged frame finds no handling virtual interface","description":"The Virtual L2 receive handler virtual_recv() in subsys/net/l2/virtual/virtual.c ends with a fall-through path meant for a virtual interface that has nothing attached below it: it takes net_if_get_device(iface)->api, treats it as a struct virtual_interface_api, and calls api->recv(iface, pkt). That handler is however also invoked with a non-virtual interface: ethernet_recv() in subsys/net/l2/ethernet/ethernet.c deliberately passes the Ethernet interface so that a tagged frame can be dispatched over the VLAN interfaces attached to it. For an Ethernet interface dev->api is a struct ethernet_api, whose layout only shares the leading struct net_if_api, so the slot read as recv is actually get_config() (default) or get_capabilities() (when CONFIG_NET_STATISTICS_ETHERNET is enabled).\n\nThe fall-through is reached whenever no attached virtual interface claims the frame - most simply when the VLAN interface owning the frame's tag exists but is administratively down, since net_eth_get_vlan_iface() resolves the tag without checking link state while virtual_recv() skips interfaces that are not up. Any host able to place an 802.1Q-tagged Ethernet frame on the same link can then trigger the mistyped indirect call; no authentication, IP reachability or user interaction is required, because the frame is consumed at L2 before any address check.\n\nThe resulting call passes a struct net_if  where the driver expects a struct device  and a struct net_pkt  where it expects a struct net_if , with the callee's remaining parameters left as whatever the call site happens to leave in the argument registers. Driver implementations dereference these values: get_capabilities() typically reads dev->config/dev->data (a wild read through a non-pointer field of struct net_if), and get_config() implementations write through the uninitialized struct ethernet_config * argument. The practical impact is undefined behaviour in the network RX path - crashes and uncontrolled memory corruption - plus mis-handling of the packet when a capability bitmask is returned as a net_verdict. The attacker controls neither the corrupted address nor the value written, so this is a denial-of-service and memory-corruption issue rather than a controllable write primitive.\n\nThe same defective fall-through is reachable through any_recv() in subsys/net/l2/dummy/any/any.c, which passes a dummy interface whose struct dummy_api is shorter than the offset read, producing an out-of-bounds read of the driver's API object followed by an indirect call. The fix drops any packet whose interface is not a Virtual L2 interface, closing both entry points.","dates":{"published":"2026-11-16T21:19:13.856Z","modified":"2026-11-17T11:25:28.875Z","reserved":null,"kevAdded":[],"kevDue":[]},"cvss":{"headline":{"score":5.9,"severity":"medium","version":"3.1","versionLabel":"v3.1","source":"CVE.org","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","computed":false,"selection":"backend-summary"},"metrics":[{"version":"3.1","versionLabel":"v3.1","source":"CVE.org","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false},{"version":"3.1","versionLabel":"v3.1","source":"NVD","score":5.9,"severity":"medium","vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","exploitability":null,"impact":null,"computed":false}]},"epss":{"probability":0.00214,"percentile":0.12419,"severity":"low","asOf":"2026-12-04T00:00:00.000Z","change":{"pp":null,"baselineDate":null,"baselineScore":null},"history":[{"date":"2026-11-17T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00214,"percentile":0.12419}],"last30":[{"date":"2026-11-17T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-18T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-19T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-20T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-21T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-22T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-23T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-24T00:00:00.000Z","score":0.00181,"percentile":null},{"date":"2026-11-25T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-26T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-27T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-28T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-29T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-11-30T00:00:00.000Z","score":0.00277,"percentile":null},{"date":"2026-12-01T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-02T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-03T00:00:00.000Z","score":0.00214,"percentile":null},{"date":"2026-12-04T00:00:00.000Z","score":0.00214,"percentile":0.12419}]},"kev":{"state":"not-listed","entries":[],"listedCount":0,"totalCatalogs":3,"catalogs":[{"source":"cisa","label":"CISA","listed":false,"entry":null},{"source":"enisa","label":"ENISA","listed":false,"entry":null},{"source":"circl","label":"CIRCL","listed":false,"entry":null}]},"ransomware":{"state":"none-recorded","sources":[]},"exploits":[],"exploitCount":0,"weaknesses":[{"id":"CWE-686","name":"Function Call With Incorrect Argument Type","description":"The product calls a function, procedure, or routine, but the caller specifies an argument that is the wrong data type, which may lead to resultant weaknesses.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/686.html"},{"id":"CWE-688","name":"Function Call With Incorrect Variable or Reference as Argument","description":"The product calls a function, procedure, or routine, but the caller specifies the wrong variable or reference as one of the arguments, which may lead to undefined behavior and resultant weaknesses.","type":"weakness","status":"Draft","abstraction":"Variant","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/688.html"},{"id":"CWE-843","name":"Access of Resource Using Incompatible Type","description":"The product allocates or initializes a resource such as a pointer, object, or variable using one type, but it later accesses that resource using a type that is incompatible with the original type.","type":"weakness","status":"Incomplete","abstraction":"Base","likelihoodOfExploit":null,"url":"https://cwe.mitre.org/data/definitions/843.html"}],"affected":[{"vendor":"zephyrproject","product":"zephyr","name":"zephyr","label":"zephyr","ecosystem":null,"cpePart":"a","purl":null,"purlType":null,"versions":[{"text":"≥ 4.2.0, < 4.3.2","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.2.0","startInclusive":true,"end":"4.3.2","endInclusive":false}},{"text":"≥ 4.4.0, < 4.5.0","noFixRecorded":false,"fixedIn":null,"bounds":{"kind":"range","start":"4.4.0","startInclusive":true,"end":"4.5.0","endInclusive":false}}],"versionsText":"≥ 4.2.0, < 4.3.2 | ≥ 4.4.0, < 4.5.0","eol":null,"hubHref":"/vendor/zephyrproject/zephyr"}],"affectedCount":1,"eol":{"hasEol":false,"count":0},"references":[{"url":"https://github.com/zephyrproject-rtos/zephyr/commit/226e821d8587aaae955b9682234b0b44722c8a4e","label":"github.com/zephyrproject-rtos/zephyr/commit/226e821d8587aaae955b9682234b0b44722c8a4e","hostname":"github.com","tags":["Patch"]},{"url":"https://github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-5q52-q965-fwp8","label":"github.com/zephyrproject-rtos/zephyr/security/advisories/GHSA-5q52-q965-fwp8","hostname":"github.com","tags":[]}],"lineage":{"upstream":[],"downstream":[],"duplicates":[],"related":[]},"timeline":[{"kind":"published","date":"2026-11-16T21:19:13.856Z","label":"Published","detail":"Vulnerability first disclosed.","source":null},{"kind":"modified","date":"2026-11-17T11:25:28.875Z","label":"Last modified","detail":"Vulnerability information updated.","source":null}],"priority":{"label":"routine","tag":null,"reason":"Not severe (CVSS 5.9, adjacent network); no exploitation reported by the 5 checked sources","nextStep":"Fix in the normal cadence","rank":[0,0,0,0,0,59],"checkedSources":["cisa","enisa","circl","shadowserver","cisa-adp"],"evidence":[{"type":"epss","source":"FIRST","date":"2026-12-04T00:00:00.000Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"value":0.00214,"stale":false,"promoted":null},{"type":"cvss","source":"cve.org","date":"2026-11-17T11:25:28.875Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1","headline":true},{"type":"cvss","source":"nvd","date":"2026-11-17T11:25:28.875Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"score":5.9,"vector":"CVSS:3.1/AV:A/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H","version":"3.1"},{"type":"adp","source":"cisa-adp","date":"2026-11-17T11:22:29.714Z","status":"valid","statusDate":null,"statusSource":null,"disputes":[],"exploitation":"none"}],"epss":{"value":0.00214,"date":"2026-12-04T00:00:00.000Z","stale":false,"promoted":null},"sources":[{"id":"cisa","lastSuccessfulSync":"2026-12-05T12:01:28.220Z","state":"fresh"},{"id":"enisa","lastSuccessfulSync":"2026-12-05T12:01:28.725Z","state":"fresh"},{"id":"circl","lastSuccessfulSync":"2026-12-05T12:01:28.919Z","state":"fresh"},{"id":"shadowserver","lastSuccessfulSync":null,"state":"unavailable"},{"id":"cisa-adp","lastSuccessfulSync":"2026-12-05T12:01:03.802Z","state":"fresh"},{"id":"epss","lastSuccessfulSync":"2026-12-05T12:01:26.562Z","state":"fresh"},{"id":"osv","lastSuccessfulSync":"2026-12-05T12:01:25.560Z","state":"fresh"}],"feedEvent":null},"meta":{"dataAsOf":"2026-12-05T13:03:07.404Z","stale":false,"partial":false}}