# CVE-2024-36933: nsh: Restore skb-\>{protocol,data,mac\_header} for outer header in nsh\_gso\_segment().

> Archived entry. Full-text search covers entries since 2026-11-10; exact IDs work for all years.

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; Availability impact: High
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Not remotely exploitable (local or adjacent access needed)
- **EPSS:** 0.39% (percentile 25, 2026-11-26)
- **CWE:** CWE-908
- **Published:** 2024-05-30T15:29:23.764Z
- **Modified:** 2026-08-05T11:32:09.348Z

## Who should check

- Anyone running Linux \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< a7c2c3c1caabcb4a3d6c47284c397507aaf54fe9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 46134031c20fd313d03b90169d64b2e05ca6b65c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< bbccf0caef2fa917d6d0692385a06ce3c262a216; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 5a4603fbc285752d19e4b415466db18ef3617e4a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 37ed6f244ec5bda2e90b085084e322ea55d0aaa2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 696d18bb59727a2e0526c0802a812620be1c9340; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 29a07f2ee4d273760c2acbfc756e29eccd82470a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 4b911a9690d72641879ea6d13cce1de31d346d79
- Anyone running Linux 4.14

## Description

In the Linux kernel, the following vulnerability has been resolved:

nsh: Restore skb-\>{protocol,data,mac\_header} for outer header in nsh\_gso\_segment().

syzbot triggered various splats (see \[0\] and links) by a crafted GSO
packet of VIRTIO\_NET\_HDR\_GSO\_UDP layering the following protocols:

  ETH\_P\_8021AD + ETH\_P\_NSH + ETH\_P\_IPV6 + IPPROTO\_UDP

NSH can encapsulate IPv4, IPv6, Ethernet, NSH, and MPLS.  As the inner
protocol can be Ethernet, NSH GSO handler, nsh\_gso\_segment(), calls
skb\_mac\_gso\_segment() to invoke inner protocol GSO handlers.

nsh\_gso\_segment() does the following for the original skb before
calling skb\_mac\_gso\_segment()

  1. reset skb-\>network\_header
  2. save the original skb-\>{mac\_heaeder,mac\_len} in a local variable
  3. pull the NSH header
  4. resets skb-\>mac\_header
  5. set up skb-\>mac\_len and skb-\>protocol for the inner protocol.

and does the following for the segmented skb

  6. set ntohs(ETH\_P\_NSH) to skb-\>protocol
  7. push the NSH header
  8. restore skb-\>mac\_header
  9. set skb-\>mac\_header + mac\_len to skb-\>network\_header
 10. restore skb-\>mac\_len

There are two problems in 6-7 and 8-9.

  (a)
  After 6 & 7, skb-\>data points to the NSH header, so the outer header
  (ETH\_P\_8021AD in this case) is stripped when skb is sent out of netdev.

  Also, if NSH is encapsulated by NSH + Ethernet (so NSH-Ethernet-NSH),
  skb\_pull() in the first nsh\_gso\_segment() will make skb-\>data point
  to the middle of the outer NSH or Ethernet header because the Ethernet
  header is not pulled by the second nsh\_gso\_segment().

  (b)
  While restoring skb-\>{mac\_header,network\_header} in 8 & 9,
  nsh\_gso\_segment() does not assume that the data in the linear
  buffer is shifted.

  However, udp6\_ufo\_fragment() could shift the data and change
  skb-\>mac\_header accordingly as demonstrated by syzbot.

  If this happens, even the restored skb-\>mac\_header points to
  the middle of the outer header.

It seems nsh\_gso\_segment() has never worked with outer headers so far.

At the end of nsh\_gso\_segment(), the outer header must be restored for
the segmented skb, instead of the NSH header.

To do that, let's calculate the outer header position relatively from
the inner header and set skb-\>{data,mac\_header,protocol} properly.

\[0\]:
BUG: KMSAN: uninit-value in ipvlan\_process\_outbound drivers/net/ipvlan/ipvlan\_core.c:524 \[inline\]
BUG: KMSAN: uninit-value in ipvlan\_xmit\_mode\_l3 drivers/net/ipvlan/ipvlan\_core.c:602 \[inline\]
BUG: KMSAN: uninit-value in ipvlan\_queue\_xmit+0xf44/0x16b0 drivers/net/ipvlan/ipvlan\_core.c:668
 ipvlan\_process\_outbound drivers/net/ipvlan/ipvlan\_core.c:524 \[inline\]
 ipvlan\_xmit\_mode\_l3 drivers/net/ipvlan/ipvlan\_core.c:602 \[inline\]
 ipvlan\_queue\_xmit+0xf44/0x16b0 drivers/net/ipvlan/ipvlan\_core.c:668
 ipvlan\_start\_xmit+0x5c/0x1a0 drivers/net/ipvlan/ipvlan\_main.c:222
 \_\_netdev\_start\_xmit include/linux/netdevice.h:4989 \[inline\]
 netdev\_start\_xmit include/linux/netdevice.h:5003 \[inline\]
 xmit\_one net/core/dev.c:3547 \[inline\]
 dev\_hard\_start\_xmit+0x244/0xa10 net/core/dev.c:3563
 \_\_dev\_queue\_xmit+0x33ed/0x51c0 net/core/dev.c:4351
 dev\_queue\_xmit include/linux/netdevice.h:3171 \[inline\]
 packet\_xmit+0x9c/0x6b0 net/packet/af\_packet.c:276
 packet\_snd net/packet/af\_packet.c:3081 \[inline\]
 packet\_sendmsg+0x8aef/0x9f10 net/packet/af\_packet.c:3113
 sock\_sendmsg\_nosec net/socket.c:730 \[inline\]
 \_\_sock\_sendmsg net/socket.c:745 \[inline\]
 \_\_sys\_sendto+0x735/0xa10 net/socket.c:2191
 \_\_do\_sys\_sendto net/socket.c:2203 \[inline\]
 \_\_se\_sys\_sendto net/socket.c:2199 \[inline\]
 \_\_x64\_sys\_sendto+0x125/0x1c0 net/socket.c:2199
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xcf/0x1e0 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x63/0x6b

Uninit was created at:
 slab\_post\_alloc\_hook mm/slub.c:3819 \[inline\]
 slab\_alloc\_node mm/slub.c:3860 \[inline\]
 \_\_do\_kmalloc\_node mm/slub.c:3980 \[inline\]
 \_\_kmalloc\_node\_track\_caller+0x705/0x1000 mm/slub.c:4001
 kmalloc\_reserve+0x249/0x4a0 net/core/skbuff.c:582
 \_\_
---truncated---

## Affected and fixed versions

- Linux: \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< a7c2c3c1caabcb4a3d6c47284c397507aaf54fe9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 46134031c20fd313d03b90169d64b2e05ca6b65c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< bbccf0caef2fa917d6d0692385a06ce3c262a216; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 5a4603fbc285752d19e4b415466db18ef3617e4a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 37ed6f244ec5bda2e90b085084e322ea55d0aaa2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 696d18bb59727a2e0526c0802a812620be1c9340; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 29a07f2ee4d273760c2acbfc756e29eccd82470a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 4b911a9690d72641879ea6d13cce1de31d346d79 (cvelist)
- Linux: 4.14 (cvelist)

## Mitigation

- Upgrade Linux to 4b911a9690d72641879ea6d13cce1de31d346d79 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2024-36933. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2024-36933.md
Affected: Linux >= c411ed854584a71b0e86ac3019b60e4789d88086, < a7c2c3c1caabcb4a3d6c47284c397507aaf54fe9; >= c411ed854584a71b0e86ac3019b60e4789d88086, < 46134031c20fd313d03b90169d64b2e05ca6b65c; >= c411ed854584a71b0e86ac3019b60e4789d88086, < bbccf0caef2fa917d6d0692385a06ce3c262a216; >= c411ed854584a71b0e86ac3…
Fixed in: Linux 46134031c20fd313d03b90169d64b2e05ca6b65c, Linux 5a4603fbc285752d19e4b415466db18ef3617e4a, Linux 37ed6f244ec5bda2e90b085084e322ea55d0aaa2, Linux 696d18bb59727a2e0526c0802a812620be1c9340, Linux 29a07f2ee4d273760c2acbfc756e29eccd82470a, Linux 4b911a9690d72641879ea6d13cce1de31d346d79

Steps:
1. Search this machine and project for Linux: dependency manifests and lockfiles, installed packages, container images and running services.
2. For each match, note the installed version and whether it is inside the affected range.
3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
```

## FAQ

### Is CVE-2024-36933 being exploited?

There is no confirmed exploitation: CVE-2024-36933 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.39% chance of exploitation in the next 30 days (as of 2026-11-26).

### How serious is CVE-2024-36933?

High: CVSS 7.8 (v3.1, scored by CNA). Not remotely exploitable (local or adjacent access needed).

### Which versions are affected by CVE-2024-36933?

Linux \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< a7c2c3c1caabcb4a3d6c47284c397507aaf54fe9; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 46134031c20fd313d03b90169d64b2e05ca6b65c; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< bbccf0caef2fa917d6d0692385a06ce3c262a216; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 5a4603fbc285752d19e4b415466db18ef3617e4a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 37ed6f244ec5bda2e90b085084e322ea55d0aaa2; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 696d18bb59727a2e0526c0802a812620be1c9340; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 29a07f2ee4d273760c2acbfc756e29eccd82470a; \>= c411ed854584a71b0e86ac3019b60e4789d88086, \< 4b911a9690d72641879ea6d13cce1de31d346d79; Linux 4.14.

### Is there a fix for CVE-2024-36933?

Yes. Fixed in Linux 46134031c20fd313d03b90169d64b2e05ca6b65c, Linux 5a4603fbc285752d19e4b415466db18ef3617e4a, Linux 37ed6f244ec5bda2e90b085084e322ea55d0aaa2, Linux 696d18bb59727a2e0526c0802a812620be1c9340, Linux 29a07f2ee4d273760c2acbfc756e29eccd82470a, Linux 4b911a9690d72641879ea6d13cce1de31d346d79. Upgrade Linux to 4b911a9690d72641879ea6d13cce1de31d346d79 or later.

### How do I check if I'm affected by CVE-2024-36933?

Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.

## References

- patch: <https://git.kernel.org/stable/c/a7c2c3c1caabcb4a3d6c47284c397507aaf54fe9>
- patch: <https://git.kernel.org/stable/c/46134031c20fd313d03b90169d64b2e05ca6b65c>
- patch: <https://git.kernel.org/stable/c/bbccf0caef2fa917d6d0692385a06ce3c262a216>
- patch: <https://git.kernel.org/stable/c/5a4603fbc285752d19e4b415466db18ef3617e4a>
- patch: <https://git.kernel.org/stable/c/37ed6f244ec5bda2e90b085084e322ea55d0aaa2>
- patch: <https://git.kernel.org/stable/c/696d18bb59727a2e0526c0802a812620be1c9340>
- patch: <https://git.kernel.org/stable/c/29a07f2ee4d273760c2acbfc756e29eccd82470a>
- patch: <https://git.kernel.org/stable/c/4b911a9690d72641879ea6d13cce1de31d346d79>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00020.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00019.html>
- other: <https://security.netapp.com/advisory/ntap-20240912-0006/>

## Attribution

- CVE Program: CVE® is a registered trademark of The MITRE Corporation. CVE records © 1999–2026 The MITRE Corporation. <https://www.cve.org/Legal/TermsOfUse>
- NVD: This product uses data from the NVD API but is not endorsed or certified by the NVD. <https://nvd.nist.gov/vuln/detail/CVE-2024-36933>

HTML: <https://flawdb.com/CVE-2024-36933> · JSON: <https://flawdb.com/api/v1/entries/CVE-2024-36933>
