{"id":"CVE-2026-143123","summary":"openvswitch: advance by the real header length in get_ipv6_ext_hdrs()","details":"In the Linux kernel, the following vulnerability has been resolved:\n\nopenvswitch: advance by the real header length in get_ipv6_ext_hdrs()\n\nget_ipv6_ext_hdrs() walks the IPv6 extension header chain to fill\nkey-\u003eipv6.exthdrs, but advances to the next header with ipv6_optlen()\nwhatever the current header is.  That is only right for Hop-by-Hop,\nDestination Options and Routing headers:\n\n - an Authentication Header is ((hdrlen + 2) \u003c\u003c 2) bytes long\n   (ipv6_authlen()), so with hdrlen = 4 the walk skips 40 bytes instead\n   of 24 and reads the next \"header\" from the ICV and payload;\n\n - a Fragment header is always 8 bytes, and the byte read as hdrlen is\n   its Reserved field, which the sender controls and receivers ignore,\n   so a non-zero value makes the walk skip up to 2048 bytes and miss\n   the headers that follow;\n\n - in a non-first fragment nothing after the Fragment header is a\n   header at all, it is the middle of the fragmentable part, yet the\n   walk keeps parsing it as an extension header chain.\n\nIn all cases the OFPIEH12_* bits stored in key-\u003eipv6.exthdrs depend on\nbytes chosen by the sender rather than on the headers that are actually\npresent: payload bytes that look like another AH or a Hop-by-Hop header\nadd OFPIEH12_UNREP/OFPIEH12_UNSEQ, and real headers after a Fragment\nheader can go unreported.  Flows that match on OVS_KEY_ATTR_IPV6_EXTHDRS\nthen classify such packets wrongly.  There is no memory safety issue,\nskb_header_pointer() bounds every read.\n\nAdvance by sizeof(struct frag_hdr) for Fragment headers and by\nipv6_authlen() for AH, and stop at the Fragment header if its offset is\nnon-zero, as ipv6_find_hdr() does.","modified":"2026-12-03T11:01:23.279571444Z","published":"2026-12-03T09:19:34.098Z","database_specific":{"cna_assigner":"Linux","osv_generated_from":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143123.json"},"references":[{"type":"PACKAGE","url":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git"},{"type":"WEB","url":"https://git.kernel.org/stable/c/60694e0f8940ae0213a53074f7a3d8def55badc0"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dbce972650ed6348e3d3856e49308aa5603e02a7"},{"type":"WEB","url":"https://git.kernel.org/stable/c/dc87d875e6e91c9d45d8de99c8540a2c448f5fd6"},{"type":"WEB","url":"https://git.kernel.org/stable/c/f450bd834aa073debedc15bdc6505d935ae2a3c1"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/143xxx/CVE-2026-143123.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-143123"}],"affected":[{"ranges":[{"type":"GIT","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","events":[{"introduced":"28a3f0601727d521a1c6cce62ecbcb7402a9e4f5"},{"fixed":"dc87d875e6e91c9d45d8de99c8540a2c448f5fd6"},{"fixed":"60694e0f8940ae0213a53074f7a3d8def55badc0"},{"fixed":"f450bd834aa073debedc15bdc6505d935ae2a3c1"},{"fixed":"dbce972650ed6348e3d3856e49308aa5603e02a7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143123.json"}},{"package":{"name":"Kernel","ecosystem":"Linux"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"5.18.0"},{"fixed":"6.12.120"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.13.0"},{"fixed":"6.18.66"}]},{"type":"ECOSYSTEM","events":[{"introduced":"6.19.0"},{"fixed":"7.3.7"}]}],"database_specific":{"source":"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2026-143123.json"}}],"schema_version":"1.9.2"}