{"id":"CVE-2026-90160","aliases":["CVE-2026-90160"],"related":[],"kind":"vulnerability","state":"published","title":"lwt_bpf: Restore reserved headroom after xmit program","summary":"In the Linux kernel, the following vulnerability has been resolved:\n\nlwt_bpf: Restore reserved headroom after xmit program\n\nip_finish_output2() expands an skb to LL_RESERVED_SPACE(dev) before LWT\nxmit. An LWT_XMIT BPF program can then modify the skb head and still\nreturn BPF_OK, so bpf_xmit() rechecks the remaining headroom before the\nskb continues to neighbour output.\n\nThat recheck uses dst->dev->hard_header_len. This is not enough for the\nneighbour cached-header path: neigh_hh_output() copies the cached hardware\nheader using the aligned hh_cache size, HH_DATA_MOD for short headers or\nHH_DATA_ALIGN(hh_len) otherwise.\n\nOn Ethernet, hard_header_len is 14 but the cached copy needs 16 bytes. If\nan LWT_XMIT BPF program calls bpf_skb_change_head(skb, 1, 0), the skb can\nstill have 15 bytes of headroom after the program. The existing check\naccepts that, after which neigh_hh_output() hits its headroom warning and\ndrops the skb.\n\nUse LL_RESERVED_SPACE(dst->dev) in the post-BPF headroom check to match\nthe reservation made before LWT xmit.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"In the Linux kernel, the following vulnerability has been resolved:\n\nlwt_bpf: Restore reserved headroom after xmit program\n\nip_finish_output2() expands an skb to LL_RESERVED_SPACE(dev) before LWT\nxmit. An LWT_XMIT BPF program can then modify the skb head and still\nreturn BPF_OK, so bpf_xmit() rechecks the remaining headroom before the\nskb continues to neighbour output.\n\nThat recheck uses dst->dev->hard_header_len. This is not enough for the\nneighbour cached-header path: neigh_hh_output() copies the cached hardware\nheader using the aligned hh_cache size, HH_DATA_MOD for short headers or\nHH_DATA_ALIGN(hh_len) otherwise.\n\nOn Ethernet, hard_header_len is 14 but the cached copy needs 16 bytes. If\nan LWT_XMIT BPF program calls bpf_skb_change_head(skb, 1, 0), the skb can\nstill have 15 bytes of headroom after the program. The existing check\naccepts that, after which neigh_hh_output() hits its headroom warning and\ndrops the skb.\n\nUse LL_RESERVED_SPACE(dst->dev) in the post-BPF headroom check to match\nthe reservation made before LWT xmit.","source":"cvelist"}],"published":"2026-09-17T16:06:51.806Z","modified":"2026-10-19T09:19:05.990Z","severities":[],"cwes":[],"affected":[{"ranges":[{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"753e5cdcca5474d230d62bb3489e5168ab27c272","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"c488071c3441fa34f5a87cd6c12ce2cc6304f20e","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"a38c0eb447e2dd0120a2ebcdba470f9505ac8907","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"de2b2004e16f2930eb689175e2c1998b0a68d499","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"7d043e24520a273c362be5dd7d9c82796879a49b","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"7cf561843ed0ad57501892a65abb77957e6c800f","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"179a5b2171573d94a25c9aa8e1c9f9ac352ad316","status":"affected"},{"type":"git","introduced":"3a0af8fd61f90920f6fa04e4f1e9a6a73c1b4fd2","fixed":"5fe7007aed9ad069b2bd77e5d0c875c64f5c0269","status":"affected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"},{"ranges":[{"version":"4.10","status":"affected"},{"type":"semver","introduced":"0","fixed":"4.10","status":"unaffected"},{"type":"semver","introduced":"5.10.270","lastAffected":"5.10.*","status":"unaffected"},{"type":"semver","introduced":"5.15.221","lastAffected":"5.15.*","status":"unaffected"},{"type":"semver","introduced":"6.1.188","lastAffected":"6.1.*","status":"unaffected"},{"type":"semver","introduced":"6.6.157","lastAffected":"6.6.*","status":"unaffected"},{"type":"semver","introduced":"6.12.110","lastAffected":"6.12.*","status":"unaffected"},{"type":"semver","introduced":"6.18.52","lastAffected":"6.18.*","status":"unaffected"},{"type":"semver","introduced":"7.2.6","lastAffected":"7.2.*","status":"unaffected"},{"type":"original_commit_for_fix","introduced":"7.3","lastAffected":"*","status":"unaffected"}],"vendor":"Linux","product":"Linux","repo":"https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git","source":"cvelist"}],"references":[{"url":"https://git.kernel.org/stable/c/753e5cdcca5474d230d62bb3489e5168ab27c272","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/c488071c3441fa34f5a87cd6c12ce2cc6304f20e","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/a38c0eb447e2dd0120a2ebcdba470f9505ac8907","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/de2b2004e16f2930eb689175e2c1998b0a68d499","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7d043e24520a273c362be5dd7d9c82796879a49b","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/7cf561843ed0ad57501892a65abb77957e6c800f","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/179a5b2171573d94a25c9aa8e1c9f9ac352ad316","tags":[],"sources":["cvelist","nvd"]},{"url":"https://git.kernel.org/stable/c/5fe7007aed9ad069b2bd77e5d0c875c64f5c0269","tags":[],"sources":["cvelist","nvd"]}],"credits":[],"assigner":"Linux","sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2026-90160","url":"https://www.cve.org/CVERecord?id=CVE-2026-90160","licence":"CVE Terms of Use","modified":"2026-10-19T08:58:58.842Z"},{"source":"nvd","name":"NVD","id":"CVE-2026-90160","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-90160","licence":"Public domain","modified":"2026-10-19T09:19:05.990Z"}],"updatedAt":"2026-11-25T22:59:39.322Z","epss":{"score":0.0022,"percentile":0.07251,"date":"2026-11-30T12:00:22.000Z"}}