# CVE-2023-52435: net: prevent mss overflow in skb\_segment()

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-119
- **Published:** 2024-02-20T18:27:27.245Z
- **Modified:** 2026-06-17T06:42:41.263Z

## Who should check

- Anyone running Linux \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 0d3ffbbf8631d6db0552f46250015648991c856f; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< cd1022eaf87be8e6151435bd4df4c242c347e083; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 8f8f185643747fbb448de6aab0efa51c679909a3; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 6c53e8547687d9c767c139cd4b50af566f58c29a; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 989b0ff35fe5fc9652ee5bafbe8483db6f27b137; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 95b3904a261a9f810205da560e802cc326f50d77; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 23d05d563b7e7b0314e65c8e882bc27eac2da8e7
- Anyone running Linux 4.8

## Description

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

net: prevent mss overflow in skb\_segment()

Once again syzbot is able to crash the kernel in skb\_segment() \[1\]

GSO\_BY\_FRAGS is a forbidden value, but unfortunately the following
computation in skb\_segment() can reach it quite easily :

	mss = mss \* partial\_segs;

65535 = 3 \* 5 \* 17 \* 257, so many initial values of mss can lead to
a bad final result.

Make sure to limit segmentation so that the new mss value is smaller
than GSO\_BY\_FRAGS.

\[1\]

general protection fault, probably for non-canonical address 0xdffffc000000000e: 0000 \[\#1\] PREEMPT SMP KASAN
KASAN: null-ptr-deref in range \[0x0000000000000070-0x0000000000000077\]
CPU: 1 PID: 5079 Comm: syz-executor993 Not tainted 6.7.0-rc4-syzkaller-00141-g1ae4cd3cbdd0 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 11/10/2023
RIP: 0010:skb\_segment+0x181d/0x3f30 net/core/skbuff.c:4551
Code: 83 e3 02 e9 fb ed ff ff e8 90 68 1c f9 48 8b 84 24 f8 00 00 00 48 8d 78 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<0f\> b6 04 02 84 c0 74 08 3c 03 0f 8e 8a 21 00 00 48 8b 84 24 f8 00
RSP: 0018:ffffc900043473d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000010046 RCX: ffffffff886b1597
RDX: 000000000000000e RSI: ffffffff886b2520 RDI: 0000000000000070
RBP: ffffc90004347578 R08: 0000000000000005 R09: 000000000000ffff
R10: 000000000000ffff R11: 0000000000000002 R12: ffff888063202ac0
R13: 0000000000010000 R14: 000000000000ffff R15: 0000000000000046
FS: 0000555556e7e380(0000) GS:ffff8880b9900000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 0000000020010000 CR3: 0000000027ee2000 CR4: 00000000003506f0
DR0: 0000000000000000 DR1: 0000000000000000 DR2: 0000000000000000
DR3: 0000000000000000 DR6: 00000000fffe0ff0 DR7: 0000000000000400
Call Trace:
\<TASK\>
udp6\_ufo\_fragment+0xa0e/0xd00 net/ipv6/udp\_offload.c:109
ipv6\_gso\_segment+0x534/0x17e0 net/ipv6/ip6\_offload.c:120
skb\_mac\_gso\_segment+0x290/0x610 net/core/gso.c:53
\_\_skb\_gso\_segment+0x339/0x710 net/core/gso.c:124
skb\_gso\_segment include/net/gso.h:83 \[inline\]
validate\_xmit\_skb+0x36c/0xeb0 net/core/dev.c:3626
\_\_dev\_queue\_xmit+0x6f3/0x3d60 net/core/dev.c:4338
dev\_queue\_xmit include/linux/netdevice.h:3134 \[inline\]
packet\_xmit+0x257/0x380 net/packet/af\_packet.c:276
packet\_snd net/packet/af\_packet.c:3087 \[inline\]
packet\_sendmsg+0x24c6/0x5220 net/packet/af\_packet.c:3119
sock\_sendmsg\_nosec net/socket.c:730 \[inline\]
\_\_sock\_sendmsg+0xd5/0x180 net/socket.c:745
\_\_sys\_sendto+0x255/0x340 net/socket.c:2190
\_\_do\_sys\_sendto net/socket.c:2202 \[inline\]
\_\_se\_sys\_sendto net/socket.c:2198 \[inline\]
\_\_x64\_sys\_sendto+0xe0/0x1b0 net/socket.c:2198
do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
do\_syscall\_64+0x40/0x110 arch/x86/entry/common.c:83
entry\_SYSCALL\_64\_after\_hwframe+0x63/0x6b
RIP: 0033:0x7f8692032aa9
Code: 28 00 00 00 75 05 48 83 c4 28 c3 e8 d1 19 00 00 90 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff8d685418 EFLAGS: 00000246 ORIG\_RAX: 000000000000002c
RAX: ffffffffffffffda RBX: 0000000000000003 RCX: 00007f8692032aa9
RDX: 0000000000010048 RSI: 00000000200000c0 RDI: 0000000000000003
RBP: 00000000000f4240 R08: 0000000020000540 R09: 0000000000000014
R10: 0000000000000000 R11: 0000000000000246 R12: 00007fff8d685480
R13: 0000000000000001 R14: 00007fff8d685480 R15: 0000000000000003
\</TASK\>
Modules linked in:
---\[ end trace 0000000000000000 \]---
RIP: 0010:skb\_segment+0x181d/0x3f30 net/core/skbuff.c:4551
Code: 83 e3 02 e9 fb ed ff ff e8 90 68 1c f9 48 8b 84 24 f8 00 00 00 48 8d 78 70 48 b8 00 00 00 00 00 fc ff df 48 89 fa 48 c1 ea 03 \<0f\> b6 04 02 84 c0 74 08 3c 03 0f 8e 8a 21 00 00 48 8b 84 24 f8 00
RSP: 0018:ffffc900043473d0 EFLAGS: 00010202
RAX: dffffc0000000000 RBX: 0000000000010046 RCX: ffffffff886b1597
RDX: 000000000000000e RSI: ffffffff886b2520 RDI: 0000000000000070
RBP: ffffc90004347578 R0
---truncated---

## Affected and fixed versions

- Linux: \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 0d3ffbbf8631d6db0552f46250015648991c856f; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< cd1022eaf87be8e6151435bd4df4c242c347e083; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 8f8f185643747fbb448de6aab0efa51c679909a3; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 6c53e8547687d9c767c139cd4b50af566f58c29a; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 989b0ff35fe5fc9652ee5bafbe8483db6f27b137; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 95b3904a261a9f810205da560e802cc326f50d77; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 23d05d563b7e7b0314e65c8e882bc27eac2da8e7 (cvelist)
- Linux: 4.8 (cvelist)

## Mitigation

- Upgrade Linux to 23d05d563b7e7b0314e65c8e882bc27eac2da8e7 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2023-52435. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2023-52435.md
Affected: Linux >= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, < 0d3ffbbf8631d6db0552f46250015648991c856f; >= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, < cd1022eaf87be8e6151435bd4df4c242c347e083; >= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, < 8f8f185643747fbb448de6aab0efa51c679909a3; >= 3953c46c3ac7eef31a99354…
Fixed in: Linux 0d3ffbbf8631d6db0552f46250015648991c856f, Linux 8f8f185643747fbb448de6aab0efa51c679909a3, Linux 6c53e8547687d9c767c139cd4b50af566f58c29a, Linux 989b0ff35fe5fc9652ee5bafbe8483db6f27b137, Linux 95b3904a261a9f810205da560e802cc326f50d77, Linux 23d05d563b7e7b0314e65c8e882bc27eac2da8e7

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-2023-52435 being exploited?

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

### How serious is CVE-2023-52435?

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

### Which versions are affected by CVE-2023-52435?

Linux \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 0d3ffbbf8631d6db0552f46250015648991c856f; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< cd1022eaf87be8e6151435bd4df4c242c347e083; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 8f8f185643747fbb448de6aab0efa51c679909a3; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 6c53e8547687d9c767c139cd4b50af566f58c29a; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 989b0ff35fe5fc9652ee5bafbe8483db6f27b137; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 95b3904a261a9f810205da560e802cc326f50d77; \>= 3953c46c3ac7eef31a9935427371c6f54a22f1ba, \< 23d05d563b7e7b0314e65c8e882bc27eac2da8e7; Linux 4.8.

### Is there a fix for CVE-2023-52435?

Yes. Fixed in Linux 0d3ffbbf8631d6db0552f46250015648991c856f, Linux 8f8f185643747fbb448de6aab0efa51c679909a3, Linux 6c53e8547687d9c767c139cd4b50af566f58c29a, Linux 989b0ff35fe5fc9652ee5bafbe8483db6f27b137, Linux 95b3904a261a9f810205da560e802cc326f50d77, Linux 23d05d563b7e7b0314e65c8e882bc27eac2da8e7. Upgrade Linux to 23d05d563b7e7b0314e65c8e882bc27eac2da8e7 or later.

### How do I check if I'm affected by CVE-2023-52435?

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/cd1022eaf87be8e6151435bd4df4c242c347e083>
- patch: <https://git.kernel.org/stable/c/8f8f185643747fbb448de6aab0efa51c679909a3>
- patch: <https://git.kernel.org/stable/c/6c53e8547687d9c767c139cd4b50af566f58c29a>
- patch: <https://git.kernel.org/stable/c/989b0ff35fe5fc9652ee5bafbe8483db6f27b137>
- patch: <https://git.kernel.org/stable/c/95b3904a261a9f810205da560e802cc326f50d77>
- patch: <https://git.kernel.org/stable/c/23d05d563b7e7b0314e65c8e882bc27eac2da8e7>
- other: <https://git.kernel.org/stable/c/0d3ffbbf8631d6db0552f46250015648991c856f>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.html>

## 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-2023-52435>

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