# CVE-2022-50862: bpf: prevent decl\_tag from being referenced in func\_proto

> 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.24% (percentile 9, 2026-11-26)
- **Published:** 2025-12-30T12:15:35.177Z
- **Modified:** 2026-06-17T05:24:18.860Z

## Who should check

- Anyone running Linux \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< e9dbb4c539d058852b76937dcd7347d3f38054f2; \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< ea68376c8bed5cd156900852aada20c3a0874d17
- Anyone running Linux 5.16

## Description

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

bpf: prevent decl\_tag from being referenced in func\_proto

Syzkaller was able to hit the following issue:

------------\[ cut here \]------------
WARNING: CPU: 0 PID: 3609 at kernel/bpf/btf.c:1946
btf\_type\_id\_size+0x2d5/0x9d0 kernel/bpf/btf.c:1946
Modules linked in:
CPU: 0 PID: 3609 Comm: syz-executor361 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:btf\_type\_id\_size+0x2d5/0x9d0 kernel/bpf/btf.c:1946
Code: ef e8 7f 8e e4 ff 41 83 ff 0b 77 28 f6 44 24 10 18 75 3f e8 6d 91
e4 ff 44 89 fe bf 0e 00 00 00 e8 20 8e e4 ff e8 5b 91 e4 ff \<0f\> 0b 45
31 f6 e9 98 02 00 00 41 83 ff 12 74 18 e8 46 91 e4 ff 44
RSP: 0018:ffffc90003cefb40 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 0000000000000002 RCX: 0000000000000000
RDX: ffff8880259c0000 RSI: ffffffff81968415 RDI: 0000000000000005
RBP: ffff88801270ca00 R08: 0000000000000005 R09: 000000000000000e
R10: 0000000000000011 R11: 0000000000000000 R12: 0000000000000000
R13: 0000000000000011 R14: ffff888026ee6424 R15: 0000000000000011
FS:  000055555641b300(0000) GS:ffff8880b9a00000(0000)
knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000000f2e258 CR3: 000000007110e000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 btf\_func\_proto\_check kernel/bpf/btf.c:4447 \[inline\]
 btf\_check\_all\_types kernel/bpf/btf.c:4723 \[inline\]
 btf\_parse\_type\_sec kernel/bpf/btf.c:4752 \[inline\]
 btf\_parse kernel/bpf/btf.c:5026 \[inline\]
 btf\_new\_fd+0x1926/0x1e70 kernel/bpf/btf.c:6892
 bpf\_btf\_load kernel/bpf/syscall.c:4324 \[inline\]
 \_\_sys\_bpf+0xb7d/0x4cf0 kernel/bpf/syscall.c:5010
 \_\_do\_sys\_bpf kernel/bpf/syscall.c:5069 \[inline\]
 \_\_se\_sys\_bpf kernel/bpf/syscall.c:5067 \[inline\]
 \_\_x64\_sys\_bpf+0x75/0xb0 kernel/bpf/syscall.c:5067
 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
RIP: 0033:0x7f0fbae41c69
Code: 28 c3 e8 2a 14 00 00 66 2e 0f 1f 84 00 00 00 00 00 48 89 f8 48 89
f7 48 89 d6 48 89 ca 4d 89 c2 4d 89 c8 4c 8b 4c 24 08 0f 05 \<48\> 3d 01
f0 ff ff 73 01 c3 48 c7 c1 c0 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007ffc8aeb6228 EFLAGS: 00000246 ORIG\_RAX: 0000000000000141
RAX: ffffffffffffffda RBX: 0000000000000000 RCX: 00007f0fbae41c69
RDX: 0000000000000020 RSI: 0000000020000140 RDI: 0000000000000012
RBP: 00007f0fbae05e10 R08: 0000000000000000 R09: 0000000000000000
R10: 00000000ffffffff R11: 0000000000000246 R12: 00007f0fbae05ea0
R13: 0000000000000000 R14: 0000000000000000 R15: 0000000000000000
 \</TASK\>

Looks like it tries to create a func\_proto which return type is
decl\_tag. For the details, see Martin's spot on analysis in \[0\].

0: https://lore.kernel.org/bpf/CAKH8qBuQDLva\_hHxxBuZzyAcYNO4ejhovz6TQeVSk8HY-2SO6g@mail.gmail.com/T/\#mea6524b3fcd6298347432226e81b1e6155efc62c

## Affected and fixed versions

- Linux: \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< e9dbb4c539d058852b76937dcd7347d3f38054f2; \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< ea68376c8bed5cd156900852aada20c3a0874d17 (cvelist)
- Linux: 5.16 (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-50862. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50862.md
Affected: Linux >= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, < e9dbb4c539d058852b76937dcd7347d3f38054f2; >= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, < ea68376c8bed5cd156900852aada20c3a0874d17; Linux 5.16
Fixed in: no fixed version listed yet

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

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

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

It has no CVSS score yet. Unknown.

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

Linux \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< e9dbb4c539d058852b76937dcd7347d3f38054f2; \>= bd16dee66ae4de3f1726c69ac901d2b7a53b0c86, \< ea68376c8bed5cd156900852aada20c3a0874d17; Linux 5.16.

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

No fixed version is listed in the sources yet. No fix listed yet: follow the vendor advisory.

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

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/e9dbb4c539d058852b76937dcd7347d3f38054f2>
- other: <https://git.kernel.org/stable/c/ea68376c8bed5cd156900852aada20c3a0874d17>

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

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