# CVE-2022-50323: net: do not sense pfmemalloc status in skb\_append\_pagefrags()

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

- **Severity:** MEDIUM 5.5
- **CVSS:** 5.5 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: None; Integrity impact: None; 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.23% (percentile 8, 2026-11-26)
- **Published:** 2025-09-15T14:48:57.418Z
- **Modified:** 2026-11-05T20:17:34.933Z

## Who should check

- Anyone running Linux \>= 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, \< 92b4c5c3fa810212da20088bcc6c0a77fc8607bd; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 847a2859814b31392340a2b16604b25afaa92dcc; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513; 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= 5.15.68, \< 5.15.77; \>= 5.19.9, \< 5.20
- Anyone running Linux 6.0

## Description

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

net: do not sense pfmemalloc status in skb\_append\_pagefrags()

skb\_append\_pagefrags() is used by af\_unix and udp sendpage()
implementation so far.

In commit 326140063946 ("tcp: TX zerocopy should not sense
pfmemalloc status") we explained why we should not sense
pfmemalloc status for pages owned by user space.

We should also use skb\_fill\_page\_desc\_noacc()
in skb\_append\_pagefrags() to avoid following KCSAN report:

BUG: KCSAN: data-race in lru\_add\_fn / skb\_append\_pagefrags

write to 0xffffea00058fc1c8 of 8 bytes by task 17319 on cpu 0:
\_\_list\_add include/linux/list.h:73 \[inline\]
list\_add include/linux/list.h:88 \[inline\]
lruvec\_add\_folio include/linux/mm\_inline.h:323 \[inline\]
lru\_add\_fn+0x327/0x410 mm/swap.c:228
folio\_batch\_move\_lru+0x1e1/0x2a0 mm/swap.c:246
lru\_add\_drain\_cpu+0x73/0x250 mm/swap.c:669
lru\_add\_drain+0x21/0x60 mm/swap.c:773
free\_pages\_and\_swap\_cache+0x16/0x70 mm/swap\_state.c:311
tlb\_batch\_pages\_flush mm/mmu\_gather.c:59 \[inline\]
tlb\_flush\_mmu\_free mm/mmu\_gather.c:256 \[inline\]
tlb\_flush\_mmu+0x5b2/0x640 mm/mmu\_gather.c:263
tlb\_finish\_mmu+0x86/0x100 mm/mmu\_gather.c:363
exit\_mmap+0x190/0x4d0 mm/mmap.c:3098
\_\_mmput+0x27/0x1b0 kernel/fork.c:1185
mmput+0x3d/0x50 kernel/fork.c:1207
copy\_process+0x19fc/0x2100 kernel/fork.c:2518
kernel\_clone+0x166/0x550 kernel/fork.c:2671
\_\_do\_sys\_clone kernel/fork.c:2812 \[inline\]
\_\_se\_sys\_clone kernel/fork.c:2796 \[inline\]
\_\_x64\_sys\_clone+0xc3/0xf0 kernel/fork.c:2796
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

read to 0xffffea00058fc1c8 of 8 bytes by task 17325 on cpu 1:
page\_is\_pfmemalloc include/linux/mm.h:1817 \[inline\]
\_\_skb\_fill\_page\_desc include/linux/skbuff.h:2432 \[inline\]
skb\_fill\_page\_desc include/linux/skbuff.h:2453 \[inline\]
skb\_append\_pagefrags+0x210/0x600 net/core/skbuff.c:3974
unix\_stream\_sendpage+0x45e/0x990 net/unix/af\_unix.c:2338
kernel\_sendpage+0x184/0x300 net/socket.c:3561
sock\_sendpage+0x5a/0x70 net/socket.c:1054
pipe\_to\_sendpage+0x128/0x160 fs/splice.c:361
splice\_from\_pipe\_feed fs/splice.c:415 \[inline\]
\_\_splice\_from\_pipe+0x222/0x4d0 fs/splice.c:559
splice\_from\_pipe fs/splice.c:594 \[inline\]
generic\_splice\_sendpage+0x89/0xc0 fs/splice.c:743
do\_splice\_from fs/splice.c:764 \[inline\]
direct\_splice\_actor+0x80/0xa0 fs/splice.c:931
splice\_direct\_to\_actor+0x305/0x620 fs/splice.c:886
do\_splice\_direct+0xfb/0x180 fs/splice.c:974
do\_sendfile+0x3bf/0x910 fs/read\_write.c:1255
\_\_do\_sys\_sendfile64 fs/read\_write.c:1323 \[inline\]
\_\_se\_sys\_sendfile64 fs/read\_write.c:1309 \[inline\]
\_\_x64\_sys\_sendfile64+0x10c/0x150 fs/read\_write.c:1309
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

value changed: 0x0000000000000000 -\> 0xffffea00058fc188

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 17325 Comm: syz-executor.0 Not tainted 6.1.0-rc1-syzkaller-00158-g440b7895c990-dirty \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 10/11/2022

## Affected and fixed versions

- Linux: \>= 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, \< 92b4c5c3fa810212da20088bcc6c0a77fc8607bd; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 847a2859814b31392340a2b16604b25afaa92dcc; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513; 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= 5.15.68, \< 5.15.77; \>= 5.19.9, \< 5.20 (cvelist)
- Linux: 6.0 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-50323.md
Affected: Linux >= 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, < 92b4c5c3fa810212da20088bcc6c0a77fc8607bd; >= 3261400639463a853ba2b3be8bd009c2a8089775, < 847a2859814b31392340a2b16604b25afaa92dcc; >= 3261400639463a853ba2b3be8bd009c2a8089775, < 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513; 6730c48ed6b0cd939fc9b30b2d…
Fixed in: Linux 92b4c5c3fa810212da20088bcc6c0a77fc8607bd, Linux 847a2859814b31392340a2b16604b25afaa92dcc, Linux 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513, Linux 5.15.77, Linux 5.20

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

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

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

Medium: CVSS 5.5 (v3.1, scored by NVD). Not remotely exploitable (local or adjacent access needed).

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

Linux \>= 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, \< 92b4c5c3fa810212da20088bcc6c0a77fc8607bd; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 847a2859814b31392340a2b16604b25afaa92dcc; \>= 3261400639463a853ba2b3be8bd009c2a8089775, \< 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513; 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= 5.15.68, \< 5.15.77; \>= 5.19.9, \< 5.20; Linux 6.0.

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

Yes. Fixed in Linux 92b4c5c3fa810212da20088bcc6c0a77fc8607bd, Linux 847a2859814b31392340a2b16604b25afaa92dcc, Linux 228ebc41dfab5b5d34cd76835ddb0ca8ee12f513, Linux 5.15.77, Linux 5.20. Upgrade Linux to 5.20 or later.

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

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/92b4c5c3fa810212da20088bcc6c0a77fc8607bd>
- patch: <https://git.kernel.org/stable/c/847a2859814b31392340a2b16604b25afaa92dcc>
- patch: <https://git.kernel.org/stable/c/228ebc41dfab5b5d34cd76835ddb0ca8ee12f513>

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

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