# CVE-2022-50405: net/tunnel: wait until all sk\_user\_data reader finish before releasing the sock

> 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.25% (percentile 10, 2026-11-26)
- **CWE:** CWE-476
- **Published:** 2025-09-18T16:03:50.362Z
- **Modified:** 2026-08-05T08:58:36.034Z

## Who should check

- Anyone running Linux \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< e8316584b0a6c61c9c407631040c22712b26e38c; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 84e566d157cc22ad2da8bdd970495855fbf13d92; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< be34e79e0ae6adbf6e7e75ddaee9ad84795ab933; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 303000c793f705d07b551eb7c1c27001c5b33c8d; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 91f09a776ae335ca836ed864b8f2a9461882a280; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 9a6544343bba7da929d6d4a2dc44ec0f15970081; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< b38aa7465411795e9e744b8d94633910497fec2a; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 588d0b8462f5ffed3e677e65639825b2678117ab; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 3cf7203ca620682165706f70a1b12b5194607dce
- Anyone running Linux 3.18

## Description

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

net/tunnel: wait until all sk\_user\_data reader finish before releasing the sock

There is a race condition in vxlan that when deleting a vxlan device
during receiving packets, there is a possibility that the sock is
released after getting vxlan\_sock vs from sk\_user\_data. Then in
later vxlan\_ecn\_decapsulate(), vxlan\_get\_sk\_family() we will got
NULL pointer dereference. e.g.

   \#0 \[ffffa25ec6978a38\] machine\_kexec at ffffffff8c669757
   \#1 \[ffffa25ec6978a90\] \_\_crash\_kexec at ffffffff8c7c0a4d
   \#2 \[ffffa25ec6978b58\] crash\_kexec at ffffffff8c7c1c48
   \#3 \[ffffa25ec6978b60\] oops\_end at ffffffff8c627f2b
   \#4 \[ffffa25ec6978b80\] page\_fault\_oops at ffffffff8c678fcb
   \#5 \[ffffa25ec6978bd8\] exc\_page\_fault at ffffffff8d109542
   \#6 \[ffffa25ec6978c00\] asm\_exc\_page\_fault at ffffffff8d200b62
      \[exception RIP: vxlan\_ecn\_decapsulate+0x3b\]
      RIP: ffffffffc1014e7b  RSP: ffffa25ec6978cb0  RFLAGS: 00010246
      RAX: 0000000000000008  RBX: ffff8aa000888000  RCX: 0000000000000000
      RDX: 000000000000000e  RSI: ffff8a9fc7ab803e  RDI: ffff8a9fd1168700
      RBP: ffff8a9fc7ab803e   R8: 0000000000700000   R9: 00000000000010ae
      R10: ffff8a9fcb748980  R11: 0000000000000000  R12: ffff8a9fd1168700
      R13: ffff8aa000888000  R14: 00000000002a0000  R15: 00000000000010ae
      ORIG\_RAX: ffffffffffffffff  CS: 0010  SS: 0018
   \#7 \[ffffa25ec6978ce8\] vxlan\_rcv at ffffffffc10189cd \[vxlan\]
   \#8 \[ffffa25ec6978d90\] udp\_queue\_rcv\_one\_skb at ffffffff8cfb6507
   \#9 \[ffffa25ec6978dc0\] udp\_unicast\_rcv\_skb at ffffffff8cfb6e45
  \#10 \[ffffa25ec6978dc8\] \_\_udp4\_lib\_rcv at ffffffff8cfb8807
  \#11 \[ffffa25ec6978e20\] ip\_protocol\_deliver\_rcu at ffffffff8cf76951
  \#12 \[ffffa25ec6978e48\] ip\_local\_deliver at ffffffff8cf76bde
  \#13 \[ffffa25ec6978ea0\] \_\_netif\_receive\_skb\_one\_core at ffffffff8cecde9b
  \#14 \[ffffa25ec6978ec8\] process\_backlog at ffffffff8cece139
  \#15 \[ffffa25ec6978f00\] \_\_napi\_poll at ffffffff8ceced1a
  \#16 \[ffffa25ec6978f28\] net\_rx\_action at ffffffff8cecf1f3
  \#17 \[ffffa25ec6978fa0\] \_\_softirqentry\_text\_start at ffffffff8d4000ca
  \#18 \[ffffa25ec6978ff0\] do\_softirq at ffffffff8c6fbdc3

Reproducer: https://github.com/Mellanox/ovs-tests/blob/master/test-ovs-vxlan-remove-tunnel-during-traffic.sh

Fix this by waiting for all sk\_user\_data reader to finish before
releasing the sock.

## Affected and fixed versions

- Linux: \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< e8316584b0a6c61c9c407631040c22712b26e38c; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 84e566d157cc22ad2da8bdd970495855fbf13d92; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< be34e79e0ae6adbf6e7e75ddaee9ad84795ab933; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 303000c793f705d07b551eb7c1c27001c5b33c8d; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 91f09a776ae335ca836ed864b8f2a9461882a280; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 9a6544343bba7da929d6d4a2dc44ec0f15970081; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< b38aa7465411795e9e744b8d94633910497fec2a; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 588d0b8462f5ffed3e677e65639825b2678117ab; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 3cf7203ca620682165706f70a1b12b5194607dce (cvelist)
- Linux: 3.18 (cvelist)

## Mitigation

- Upgrade Linux to 3cf7203ca620682165706f70a1b12b5194607dce or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50405.md
Affected: Linux >= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, < e8316584b0a6c61c9c407631040c22712b26e38c; >= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, < 84e566d157cc22ad2da8bdd970495855fbf13d92; >= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, < be34e79e0ae6adbf6e7e75ddaee9ad84795ab933; >= 6a93cc9052748c6355ec9d5…
Fixed in: Linux 84e566d157cc22ad2da8bdd970495855fbf13d92, Linux 303000c793f705d07b551eb7c1c27001c5b33c8d, Linux 91f09a776ae335ca836ed864b8f2a9461882a280, Linux 9a6544343bba7da929d6d4a2dc44ec0f15970081, Linux 588d0b8462f5ffed3e677e65639825b2678117ab, Linux 3cf7203ca620682165706f70a1b12b5194607dce

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-2022-50405 being exploited?

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

### How serious is CVE-2022-50405?

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

### Which versions are affected by CVE-2022-50405?

Linux \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< e8316584b0a6c61c9c407631040c22712b26e38c; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 84e566d157cc22ad2da8bdd970495855fbf13d92; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< be34e79e0ae6adbf6e7e75ddaee9ad84795ab933; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 303000c793f705d07b551eb7c1c27001c5b33c8d; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 91f09a776ae335ca836ed864b8f2a9461882a280; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 9a6544343bba7da929d6d4a2dc44ec0f15970081; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< b38aa7465411795e9e744b8d94633910497fec2a; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 588d0b8462f5ffed3e677e65639825b2678117ab; \>= 6a93cc9052748c6355ec9d5b6c38b77f85f1cb0d, \< 3cf7203ca620682165706f70a1b12b5194607dce; Linux 3.18.

### Is there a fix for CVE-2022-50405?

Yes. Fixed in Linux 84e566d157cc22ad2da8bdd970495855fbf13d92, Linux 303000c793f705d07b551eb7c1c27001c5b33c8d, Linux 91f09a776ae335ca836ed864b8f2a9461882a280, Linux 9a6544343bba7da929d6d4a2dc44ec0f15970081, Linux 588d0b8462f5ffed3e677e65639825b2678117ab, Linux 3cf7203ca620682165706f70a1b12b5194607dce. Upgrade Linux to 3cf7203ca620682165706f70a1b12b5194607dce or later.

### How do I check if I'm affected by CVE-2022-50405?

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/e8316584b0a6c61c9c407631040c22712b26e38c>
- patch: <https://git.kernel.org/stable/c/84e566d157cc22ad2da8bdd970495855fbf13d92>
- patch: <https://git.kernel.org/stable/c/be34e79e0ae6adbf6e7e75ddaee9ad84795ab933>
- patch: <https://git.kernel.org/stable/c/303000c793f705d07b551eb7c1c27001c5b33c8d>
- patch: <https://git.kernel.org/stable/c/91f09a776ae335ca836ed864b8f2a9461882a280>
- patch: <https://git.kernel.org/stable/c/9a6544343bba7da929d6d4a2dc44ec0f15970081>
- patch: <https://git.kernel.org/stable/c/b38aa7465411795e9e744b8d94633910497fec2a>
- patch: <https://git.kernel.org/stable/c/588d0b8462f5ffed3e677e65639825b2678117ab>
- patch: <https://git.kernel.org/stable/c/3cf7203ca620682165706f70a1b12b5194607dce>

## 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-2022-50405>

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