# CVE-2022-50817: net: hsr: avoid possible NULL deref in skb\_clone()

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

- **Severity:** UNSCORED
- **Exploited in the wild:** Not in CISA KEV
- **Public exploit / PoC:** None known
- **Remote exploitation:** Unknown
- **EPSS:** 0.26% (percentile 11, 2026-11-26)
- **Published:** 2025-12-30T12:08:32.866Z
- **Modified:** 2026-06-17T05:24:14.413Z

## Who should check

- Anyone running Linux \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< ff7ba766758313129794f150bbc4d351b5e17a53; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< 35ece858660eae13ee0242496a1956c39d29418e; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< d8b57135fd9ffe9a5b445350a686442a531c5339
- Anyone running Linux 3.17

## Description

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

net: hsr: avoid possible NULL deref in skb\_clone()

syzbot got a crash \[1\] in skb\_clone(), caused by a bug
in hsr\_get\_untagged\_frame().

When/if create\_stripped\_skb\_hsr() returns NULL, we must
not attempt to call skb\_clone().

While we are at it, replace a WARN\_ONCE() by netdev\_warn\_once().

\[1\]
general protection fault, probably for non-canonical address 0xdffffc000000000f: 0000 \[\#1\] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000078-0x000000000000007f\]
CPU: 1 PID: 754 Comm: syz-executor.0 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
RIP: 0010:skb\_clone+0x108/0x3c0 net/core/skbuff.c:1641
Code: 93 02 00 00 49 83 7c 24 28 00 0f 85 e9 00 00 00 e8 5d 4a 29 fa 4c 8d 75 7e 48 b8 00 00 00 00 00 fc ff df 4c 89 f2 48 c1 ea 03 \<0f\> b6 04 02 4c 89 f2 83 e2 07 38 d0 7f 08 84 c0 0f 85 9e 01 00 00
RSP: 0018:ffffc90003ccf4e0 EFLAGS: 00010207

RAX: dffffc0000000000 RBX: ffffc90003ccf5f8 RCX: ffffc9000c24b000
RDX: 000000000000000f RSI: ffffffff8751cb13 RDI: 0000000000000000
RBP: 0000000000000000 R08: 00000000000000f0 R09: 0000000000000140
R10: fffffbfff181d972 R11: 0000000000000000 R12: ffff888161fc3640
R13: 0000000000000a20 R14: 000000000000007e R15: ffffffff8dc5f620
FS: 00007feb621e4700(0000) GS:ffff8880b9b00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007feb621e3ff8 CR3: 00000001643a9000 CR4: 00000000003506e0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
\<TASK\>
hsr\_get\_untagged\_frame+0x4e/0x610 net/hsr/hsr\_forward.c:164
hsr\_forward\_do net/hsr/hsr\_forward.c:461 \[inline\]
hsr\_forward\_skb+0xcca/0x1d50 net/hsr/hsr\_forward.c:623
hsr\_handle\_frame+0x588/0x7c0 net/hsr/hsr\_slave.c:69
\_\_netif\_receive\_skb\_core+0x9fe/0x38f0 net/core/dev.c:5379
\_\_netif\_receive\_skb\_one\_core+0xae/0x180 net/core/dev.c:5483
\_\_netif\_receive\_skb+0x1f/0x1c0 net/core/dev.c:5599
netif\_receive\_skb\_internal net/core/dev.c:5685 \[inline\]
netif\_receive\_skb+0x12f/0x8d0 net/core/dev.c:5744
tun\_rx\_batched+0x4ab/0x7a0 drivers/net/tun.c:1544
tun\_get\_user+0x2686/0x3a00 drivers/net/tun.c:1995
tun\_chr\_write\_iter+0xdb/0x200 drivers/net/tun.c:2025
call\_write\_iter include/linux/fs.h:2187 \[inline\]
new\_sync\_write fs/read\_write.c:491 \[inline\]
vfs\_write+0x9e9/0xdd0 fs/read\_write.c:584
ksys\_write+0x127/0x250 fs/read\_write.c:637
do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< ff7ba766758313129794f150bbc4d351b5e17a53; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< 35ece858660eae13ee0242496a1956c39d29418e; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< d8b57135fd9ffe9a5b445350a686442a531c5339 (cvelist)
- Linux: 3.17 (cvelist)

## Mitigation

- No fix listed yet: follow the vendor advisory.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2022-50817.md
Affected: Linux >= f266a683a4804dc499efc6c2206ef68efed029d0, < ff7ba766758313129794f150bbc4d351b5e17a53; >= f266a683a4804dc499efc6c2206ef68efed029d0, < 35ece858660eae13ee0242496a1956c39d29418e; >= f266a683a4804dc499efc6c2206ef68efed029d0, < c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4; >= f266a683a4804dc499efc6c…
Fixed in: Linux 35ece858660eae13ee0242496a1956c39d29418e

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-50817 being exploited?

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< ff7ba766758313129794f150bbc4d351b5e17a53; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< 35ece858660eae13ee0242496a1956c39d29418e; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4; \>= f266a683a4804dc499efc6c2206ef68efed029d0, \< d8b57135fd9ffe9a5b445350a686442a531c5339; Linux 3.17.

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

Yes. Fixed in Linux 35ece858660eae13ee0242496a1956c39d29418e. No fix listed yet: follow the vendor advisory.

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

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

- other: <https://git.kernel.org/stable/c/ff7ba766758313129794f150bbc4d351b5e17a53>
- other: <https://git.kernel.org/stable/c/35ece858660eae13ee0242496a1956c39d29418e>
- other: <https://git.kernel.org/stable/c/c46f2e0fcd1ecfc6046e5cf785ff89f0572f94e4>
- other: <https://git.kernel.org/stable/c/d8b57135fd9ffe9a5b445350a686442a531c5339>

## 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-50817>

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