# CVE-2022-50363: skmsg: pass gfp argument to alloc\_sk\_msg()

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.46% (percentile 32, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2025-09-17T14:56:15.047Z
- **Modified:** 2026-08-05T08:58:23.954Z

## Who should check

- Anyone running Linux \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 693ddd6ffc05b228ea1638f9d757c5d3541f9446; \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08
- Anyone running Linux 6.0

## Description

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

skmsg: pass gfp argument to alloc\_sk\_msg()

syzbot found that alloc\_sk\_msg() could be called from a
non sleepable context. sk\_psock\_verdict\_recv() uses
rcu\_read\_lock() protection.

We need the callers to pass a gfp\_t argument to avoid issues.

syzbot report was:

BUG: sleeping function called from invalid context at include/linux/sched/mm.h:274
in\_atomic(): 0, irqs\_disabled(): 0, non\_block: 0, pid: 3613, name: syz-executor414
preempt\_count: 0, expected: 0
RCU nest depth: 1, expected: 0
INFO: lockdep is turned off.
CPU: 0 PID: 3613 Comm: syz-executor414 Not tainted 6.0.0-syzkaller-09589-g55be6084c8e0 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Call Trace:
\<TASK\>
\_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
dump\_stack\_lvl+0x1e3/0x2cb lib/dump\_stack.c:106
\_\_might\_resched+0x538/0x6a0 kernel/sched/core.c:9877
might\_alloc include/linux/sched/mm.h:274 \[inline\]
slab\_pre\_alloc\_hook mm/slab.h:700 \[inline\]
slab\_alloc\_node mm/slub.c:3162 \[inline\]
slab\_alloc mm/slub.c:3256 \[inline\]
kmem\_cache\_alloc\_trace+0x59/0x310 mm/slub.c:3287
kmalloc include/linux/slab.h:600 \[inline\]
kzalloc include/linux/slab.h:733 \[inline\]
alloc\_sk\_msg net/core/skmsg.c:507 \[inline\]
sk\_psock\_skb\_ingress\_self+0x5c/0x330 net/core/skmsg.c:600
sk\_psock\_verdict\_apply+0x395/0x440 net/core/skmsg.c:1014
sk\_psock\_verdict\_recv+0x34d/0x560 net/core/skmsg.c:1201
tcp\_read\_skb+0x4a1/0x790 net/ipv4/tcp.c:1770
tcp\_rcv\_established+0x129d/0x1a10 net/ipv4/tcp\_input.c:5971
tcp\_v4\_do\_rcv+0x479/0xac0 net/ipv4/tcp\_ipv4.c:1681
sk\_backlog\_rcv include/net/sock.h:1109 \[inline\]
\_\_release\_sock+0x1d8/0x4c0 net/core/sock.c:2906
release\_sock+0x5d/0x1c0 net/core/sock.c:3462
tcp\_sendmsg+0x36/0x40 net/ipv4/tcp.c:1483
sock\_sendmsg\_nosec net/socket.c:714 \[inline\]
sock\_sendmsg net/socket.c:734 \[inline\]
\_\_sys\_sendto+0x46d/0x5f0 net/socket.c:2117
\_\_do\_sys\_sendto net/socket.c:2129 \[inline\]
\_\_se\_sys\_sendto net/socket.c:2125 \[inline\]
\_\_x64\_sys\_sendto+0xda/0xf0 net/socket.c:2125
do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
do\_syscall\_64+0x2b/0x70 arch/x86/entry/common.c:80
entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

## Affected and fixed versions

- Linux: \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 693ddd6ffc05b228ea1638f9d757c5d3541f9446; \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

- Upgrade Linux to 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08 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-50363. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-50363.md
Affected: Linux >= 43312915b5ba20741617dd2119e835205fa8580c, < 693ddd6ffc05b228ea1638f9d757c5d3541f9446; >= 43312915b5ba20741617dd2119e835205fa8580c, < 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08; Linux 6.0
Fixed in: Linux 693ddd6ffc05b228ea1638f9d757c5d3541f9446, Linux 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 693ddd6ffc05b228ea1638f9d757c5d3541f9446; \>= 43312915b5ba20741617dd2119e835205fa8580c, \< 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08; Linux 6.0.

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

Yes. Fixed in Linux 693ddd6ffc05b228ea1638f9d757c5d3541f9446, Linux 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08. Upgrade Linux to 2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08 or later.

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

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/693ddd6ffc05b228ea1638f9d757c5d3541f9446>
- patch: <https://git.kernel.org/stable/c/2d1f274b95c6e4ba6a813b3b8e7a1a38d54a0a08>

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

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