# CVE-2022-49142: net: preserve skb\_end\_offset() in skb\_unclone\_keeptruesize()

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

- **Severity:** HIGH 7.5
- **CVSS:** 7.5 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 0.69% (percentile 48, 2026-11-26)
- **Published:** 2025-02-26T01:55:12.823Z
- **Modified:** 2026-10-03T11:17:26.413Z

## Who should check

- Anyone running Linux \>= 35ca1748ebf8d3a1025d55c85f4b96add952ed20, \< 91c118727432a5d776d5fe86e0cf8eb1289ac1fc; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 23629b673b780d967b88a850b1518cf0f0ffc6aa; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a9a6d30264327d8ff7f23da33e7a77ffb793fa3f; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a903e516f5df44b46d526b403d93e7be1a425538; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01; 7118945cdf0d4b5a76eb4f5f330ac6f48d372025; ec697f7f3f6a89d4dd1af113587d0330b5a033e8; 7582edf28f5d1f0a4d2f7abdb7d9560d09fd41b5; 5d55a6a46a7f70bc1d270c50200edd3096cb380c; e6af7cb64b7b37b8a371acdbe33a636496ffb5a4; …
- Anyone running Linux 5.12

## Description

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

net: preserve skb\_end\_offset() in skb\_unclone\_keeptruesize()

syzbot found another way to trigger the infamous WARN\_ON\_ONCE(delta \< len)
in skb\_try\_coalesce() \[1\]

I was able to root cause the issue to kfence.

When kfence is in action, the following assertion is no longer true:

int size = xxxx;
void \*ptr1 = kmalloc(size, gfp);
void \*ptr2 = kmalloc(size, gfp);

if (ptr1 && ptr2)
	ASSERT(ksize(ptr1) == ksize(ptr2));

We attempted to fix these issues in the blamed commits, but forgot
that TCP was possibly shifting data after skb\_unclone\_keeptruesize()
has been used, notably from tcp\_retrans\_try\_collapse().

So we not only need to keep same skb-\>truesize value,
we also need to make sure TCP wont fill new tailroom
that pskb\_expand\_head() was able to get from a
addr = kmalloc(...) followed by ksize(addr)

Split skb\_unclone\_keeptruesize() into two parts:

1) Inline skb\_unclone\_keeptruesize() for the common case,
   when skb is not cloned.

2) Out of line \_\_skb\_unclone\_keeptruesize() for the 'slow path'.

WARNING: CPU: 1 PID: 6490 at net/core/skbuff.c:5295 skb\_try\_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Modules linked in:
CPU: 1 PID: 6490 Comm: syz-executor161 Not tainted 5.17.0-rc4-syzkaller-00229-g4f12b742eb2b \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/01/2011
RIP: 0010:skb\_try\_coalesce+0x1235/0x1560 net/core/skbuff.c:5295
Code: bf 01 00 00 00 0f b7 c0 89 c6 89 44 24 20 e8 62 24 4e fa 8b 44 24 20 83 e8 01 0f 85 e5 f0 ff ff e9 87 f4 ff ff e8 cb 20 4e fa \<0f\> 0b e9 06 f9 ff ff e8 af b2 95 fa e9 69 f0 ff ff e8 95 b2 95 fa
RSP: 0018:ffffc900063af268 EFLAGS: 00010293
RAX: 0000000000000000 RBX: 00000000ffffffd5 RCX: 0000000000000000
RDX: ffff88806fc05700 RSI: ffffffff872abd55 RDI: 0000000000000003
RBP: ffff88806e675500 R08: 00000000ffffffd5 R09: 0000000000000000
R10: ffffffff872ab659 R11: 0000000000000000 R12: ffff88806dd554e8
R13: ffff88806dd9bac0 R14: ffff88806dd9a2c0 R15: 0000000000000155
FS:  00007f18014f9700(0000) GS:ffff8880b9c00000(0000) knlGS:0000000000000000
CS:  0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020002000 CR3: 000000006be7a000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
 \<TASK\>
 tcp\_try\_coalesce net/ipv4/tcp\_input.c:4651 \[inline\]
 tcp\_try\_coalesce+0x393/0x920 net/ipv4/tcp\_input.c:4630
 tcp\_queue\_rcv+0x8a/0x6e0 net/ipv4/tcp\_input.c:4914
 tcp\_data\_queue+0x11fd/0x4bb0 net/ipv4/tcp\_input.c:5025
 tcp\_rcv\_established+0x81e/0x1ff0 net/ipv4/tcp\_input.c:5947
 tcp\_v4\_do\_rcv+0x65e/0x980 net/ipv4/tcp\_ipv4.c:1719
 sk\_backlog\_rcv include/net/sock.h:1037 \[inline\]
 \_\_release\_sock+0x134/0x3b0 net/core/sock.c:2779
 release\_sock+0x54/0x1b0 net/core/sock.c:3311
 sk\_wait\_data+0x177/0x450 net/core/sock.c:2821
 tcp\_recvmsg\_locked+0xe28/0x1fd0 net/ipv4/tcp.c:2457
 tcp\_recvmsg+0x137/0x610 net/ipv4/tcp.c:2572
 inet\_recvmsg+0x11b/0x5e0 net/ipv4/af\_inet.c:850
 sock\_recvmsg\_nosec net/socket.c:948 \[inline\]
 sock\_recvmsg net/socket.c:966 \[inline\]
 sock\_recvmsg net/socket.c:962 \[inline\]
 \_\_\_\_sys\_recvmsg+0x2c4/0x600 net/socket.c:2632
 \_\_\_sys\_recvmsg+0x127/0x200 net/socket.c:2674
 \_\_sys\_recvmsg+0xe2/0x1a0 net/socket.c:2704
 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+0x44/0xae

## Affected and fixed versions

- Linux: \>= 35ca1748ebf8d3a1025d55c85f4b96add952ed20, \< 91c118727432a5d776d5fe86e0cf8eb1289ac1fc; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 23629b673b780d967b88a850b1518cf0f0ffc6aa; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a9a6d30264327d8ff7f23da33e7a77ffb793fa3f; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a903e516f5df44b46d526b403d93e7be1a425538; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01; 7118945cdf0d4b5a76eb4f5f330ac6f48d372025; ec697f7f3f6a89d4dd1af113587d0330b5a033e8; 7582edf28f5d1f0a4d2f7abdb7d9560d09fd41b5; 5d55a6a46a7f70bc1d270c50200edd3096cb380c; e6af7cb64b7b37b8a371acdbe33a636496ffb5a4; … (cvelist)
- Linux: 5.12 (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-49142. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49142.md
Affected: Linux >= 35ca1748ebf8d3a1025d55c85f4b96add952ed20, < 91c118727432a5d776d5fe86e0cf8eb1289ac1fc; >= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, < 23629b673b780d967b88a850b1518cf0f0ffc6aa; >= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, < a9a6d30264327d8ff7f23da33e7a77ffb793fa3f; >= 097b9146c0e26aabaa6ff3e…
Fixed in: Linux 91c118727432a5d776d5fe86e0cf8eb1289ac1fc, Linux 23629b673b780d967b88a850b1518cf0f0ffc6aa, Linux 2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01

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

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

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

High: CVSS 7.5 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= 35ca1748ebf8d3a1025d55c85f4b96add952ed20, \< 91c118727432a5d776d5fe86e0cf8eb1289ac1fc; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 23629b673b780d967b88a850b1518cf0f0ffc6aa; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a9a6d30264327d8ff7f23da33e7a77ffb793fa3f; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< a903e516f5df44b46d526b403d93e7be1a425538; \>= 097b9146c0e26aabaa6ff3e5ea536a53f5254a79, \< 2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01; 7118945cdf0d4b5a76eb4f5f330ac6f48d372025; ec697f7f3f6a89d4dd1af113587d0330b5a033e8; 7582edf28f5d1f0a4d2f7abdb7d9560d09fd41b5; 5d55a6a46a7f70bc1d270c50200edd3096cb380c; e6af7cb64b7b37b8a371acdbe33a636496ffb5a4; …; Linux 5.12.

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

Yes. Fixed in Linux 91c118727432a5d776d5fe86e0cf8eb1289ac1fc, Linux 23629b673b780d967b88a850b1518cf0f0ffc6aa, Linux 2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01. No fix listed yet: follow the vendor advisory.

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

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/23629b673b780d967b88a850b1518cf0f0ffc6aa>
- patch: <https://git.kernel.org/stable/c/a9a6d30264327d8ff7f23da33e7a77ffb793fa3f>
- patch: <https://git.kernel.org/stable/c/a903e516f5df44b46d526b403d93e7be1a425538>
- patch: <https://git.kernel.org/stable/c/2b88cba55883eaafbc9b7cbff0b2c7cdba71ed01>
- other: <https://git.kernel.org/stable/c/91c118727432a5d776d5fe86e0cf8eb1289ac1fc>

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

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