# CVE-2022-48689: tcp: TX zerocopy should not sense pfmemalloc status

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

- **Severity:** MEDIUM 5.3
- **CVSS:** 5.3 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:L/I:L/A:L`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: Low; Integrity impact: Low; Availability impact: Low
- **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.26% (percentile 11, 2026-11-26)
- **CWE:** CWE-362
- **Published:** 2024-05-03T15:00:02.083Z
- **Modified:** 2026-06-17T05:15:55.720Z

## Who should check

- Anyone running Linux \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 3261400639463a853ba2b3be8bd009c2a8089775
- Anyone running Linux 5.14

## Description

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

tcp: TX zerocopy should not sense pfmemalloc status

We got a recent syzbot report \[1\] showing a possible misuse
of pfmemalloc page status in TCP zerocopy paths.

Indeed, for pages coming from user space or other layers,
using page\_is\_pfmemalloc() is moot, and possibly could give
false positives.

There has been attempts to make page\_is\_pfmemalloc() more robust,
but not using it in the first place in this context is probably better,
removing cpu cycles.

Note to stable teams :

You need to backport 84ce071e38a6 ("net: introduce
\_\_skb\_fill\_page\_desc\_noacc") as a prereq.

Race is more probable after commit c07aea3ef4d4
("mm: add a signature in struct page") because page\_is\_pfmemalloc()
is now using low order bit from page-\>lru.next, which can change
more often than page-\>index.

Low order bit should never be set for lru.next (when used as an anchor
in LRU list), so KCSAN report is mostly a false positive.

Backporting to older kernel versions seems not necessary.

\[1\]
BUG: KCSAN: data-race in lru\_add\_fn / tcp\_build\_frag

write to 0xffffea0004a1d2c8 of 8 bytes by task 18600 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:105 \[inline\]
lru\_add\_fn+0x440/0x520 mm/swap.c:228
folio\_batch\_move\_lru+0x1e1/0x2a0 mm/swap.c:246
folio\_batch\_add\_and\_move mm/swap.c:263 \[inline\]
folio\_add\_lru+0xf1/0x140 mm/swap.c:490
filemap\_add\_folio+0xf8/0x150 mm/filemap.c:948
\_\_filemap\_get\_folio+0x510/0x6d0 mm/filemap.c:1981
pagecache\_get\_page+0x26/0x190 mm/folio-compat.c:104
grab\_cache\_page\_write\_begin+0x2a/0x30 mm/folio-compat.c:116
ext4\_da\_write\_begin+0x2dd/0x5f0 fs/ext4/inode.c:2988
generic\_perform\_write+0x1d4/0x3f0 mm/filemap.c:3738
ext4\_buffered\_write\_iter+0x235/0x3e0 fs/ext4/file.c:270
ext4\_file\_write\_iter+0x2e3/0x1210
call\_write\_iter include/linux/fs.h:2187 \[inline\]
new\_sync\_write fs/read\_write.c:491 \[inline\]
vfs\_write+0x468/0x760 fs/read\_write.c:578
ksys\_write+0xe8/0x1a0 fs/read\_write.c:631
\_\_do\_sys\_write fs/read\_write.c:643 \[inline\]
\_\_se\_sys\_write fs/read\_write.c:640 \[inline\]
\_\_x64\_sys\_write+0x3e/0x50 fs/read\_write.c:640
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 0xffffea0004a1d2c8 of 8 bytes by task 18611 on cpu 1:
page\_is\_pfmemalloc include/linux/mm.h:1740 \[inline\]
\_\_skb\_fill\_page\_desc include/linux/skbuff.h:2422 \[inline\]
skb\_fill\_page\_desc include/linux/skbuff.h:2443 \[inline\]
tcp\_build\_frag+0x613/0xb20 net/ipv4/tcp.c:1018
do\_tcp\_sendpages+0x3e8/0xaf0 net/ipv4/tcp.c:1075
tcp\_sendpage\_locked net/ipv4/tcp.c:1140 \[inline\]
tcp\_sendpage+0x89/0xb0 net/ipv4/tcp.c:1150
inet\_sendpage+0x7f/0xc0 net/ipv4/af\_inet.c:833
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:1249
\_\_do\_sys\_sendfile64 fs/read\_write.c:1317 \[inline\]
\_\_se\_sys\_sendfile64 fs/read\_write.c:1303 \[inline\]
\_\_x64\_sys\_sendfile64+0x10c/0x150 fs/read\_write.c:1303
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 -\> 0xffffea0004a1d288

Reported by Kernel Concurrency Sanitizer on:
CPU: 1 PID: 18611 Comm: syz-executor.4 Not tainted 6.0.0-rc2-syzkaller-00248-ge022620b5d05-dirty \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 07/22/2022

## Affected and fixed versions

- Linux: \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 3261400639463a853ba2b3be8bd009c2a8089775 (cvelist)
- Linux: 5.14 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2022-48689.md
Affected: Linux >= c07aea3ef4d4076f18f567b98ed01e082e02ed51, < 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915; >= c07aea3ef4d4076f18f567b98ed01e082e02ed51, < 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; >= c07aea3ef4d4076f18f567b98ed01e082e02ed51, < 3261400639463a853ba2b3be8bd009c2a8089775; Linux 5.14
Fixed in: Linux 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, Linux 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83, Linux 3261400639463a853ba2b3be8bd009c2a8089775

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

There is no confirmed exploitation: CVE-2022-48689 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-48689?

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

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

Linux \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83; \>= c07aea3ef4d4076f18f567b98ed01e082e02ed51, \< 3261400639463a853ba2b3be8bd009c2a8089775; Linux 5.14.

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

Yes. Fixed in Linux 8527c9a6bf8e54fef0a8d3d7d8874a48c725c915, Linux 6730c48ed6b0cd939fc9b30b2d621ce0b89bea83, Linux 3261400639463a853ba2b3be8bd009c2a8089775. Upgrade Linux to 3261400639463a853ba2b3be8bd009c2a8089775 or later.

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

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/8527c9a6bf8e54fef0a8d3d7d8874a48c725c915>
- patch: <https://git.kernel.org/stable/c/6730c48ed6b0cd939fc9b30b2d621ce0b89bea83>
- patch: <https://git.kernel.org/stable/c/3261400639463a853ba2b3be8bd009c2a8089775>

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

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