# CVE-2023-52701: net: use a bounce buffer for copying skb-\>mark

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

- **Severity:** HIGH 7.1
- **CVSS:** 7.1 (v3.1, NVD) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:N/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; 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.29% (percentile 15, 2026-11-26)
- **Published:** 2024-05-21T15:22:51.354Z
- **Modified:** 2026-06-17T06:43:22.823Z

## Who should check

- Anyone running Linux \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 863a7de987f02a901bf215509276a7de0370e0f9; \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 2558b8039d059342197610498c8749ad294adee5
- Anyone running Linux 5.19

## Description

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

net: use a bounce buffer for copying skb-\>mark

syzbot found arm64 builds would crash in sock\_recv\_mark()
when CONFIG\_HARDENED\_USERCOPY=y

x86 and powerpc are not detecting the issue because
they define user\_access\_begin.
This will be handled in a different patch,
because a check\_object\_size() is missing.

Only data from skb-\>cb\[\] can be copied directly to/from user space,
as explained in commit 79a8a642bf05 ("net: Whitelist
the skbuff\_head\_cache "cb" field")

syzbot report was:
usercopy: Kernel memory exposure attempt detected from SLUB object 'skbuff\_head\_cache' (offset 168, size 4)!
------------\[ cut here \]------------
kernel BUG at mm/usercopy.c:102 !
Internal error: Oops - BUG: 00000000f2000800 \[\#1\] PREEMPT SMP
Modules linked in:
CPU: 0 PID: 4410 Comm: syz-executor533 Not tainted 6.2.0-rc7-syzkaller-17907-g2d3827b3f393 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/21/2023
pstate: 60400005 (nZCv daif +PAN -UAO -TCO -DIT -SSBS BTYPE=--)
pc : usercopy\_abort+0x90/0x94 mm/usercopy.c:90
lr : usercopy\_abort+0x90/0x94 mm/usercopy.c:90
sp : ffff80000fb9b9a0
x29: ffff80000fb9b9b0 x28: ffff0000c6073400 x27: 0000000020001a00
x26: 0000000000000014 x25: ffff80000cf52000 x24: fffffc0000000000
x23: 05ffc00000000200 x22: fffffc000324bf80 x21: ffff0000c92fe1a8
x20: 0000000000000001 x19: 0000000000000004 x18: 0000000000000000
x17: 656a626f2042554c x16: ffff0000c6073dd0 x15: ffff80000dbd2118
x14: ffff0000c6073400 x13: 00000000ffffffff x12: ffff0000c6073400
x11: ff808000081bbb4c x10: 0000000000000000 x9 : 7b0572d7cc0ccf00
x8 : 7b0572d7cc0ccf00 x7 : ffff80000bf650d4 x6 : 0000000000000000
x5 : 0000000000000001 x4 : 0000000000000001 x3 : 0000000000000000
x2 : ffff0001fefbff08 x1 : 0000000100000000 x0 : 000000000000006c
Call trace:
usercopy\_abort+0x90/0x94 mm/usercopy.c:90
\_\_check\_heap\_object+0xa8/0x100 mm/slub.c:4761
check\_heap\_object mm/usercopy.c:196 \[inline\]
\_\_check\_object\_size+0x208/0x6b8 mm/usercopy.c:251
check\_object\_size include/linux/thread\_info.h:199 \[inline\]
\_\_copy\_to\_user include/linux/uaccess.h:115 \[inline\]
put\_cmsg+0x408/0x464 net/core/scm.c:238
sock\_recv\_mark net/socket.c:975 \[inline\]
\_\_sock\_recv\_cmsgs+0x1fc/0x248 net/socket.c:984
sock\_recv\_cmsgs include/net/sock.h:2728 \[inline\]
packet\_recvmsg+0x2d8/0x678 net/packet/af\_packet.c:3482
\_\_\_\_sys\_recvmsg+0x110/0x3a0
\_\_\_sys\_recvmsg net/socket.c:2737 \[inline\]
\_\_sys\_recvmsg+0x194/0x210 net/socket.c:2767
\_\_do\_sys\_recvmsg net/socket.c:2777 \[inline\]
\_\_se\_sys\_recvmsg net/socket.c:2774 \[inline\]
\_\_arm64\_sys\_recvmsg+0x2c/0x3c net/socket.c:2774
\_\_invoke\_syscall arch/arm64/kernel/syscall.c:38 \[inline\]
invoke\_syscall+0x64/0x178 arch/arm64/kernel/syscall.c:52
el0\_svc\_common+0xbc/0x180 arch/arm64/kernel/syscall.c:142
do\_el0\_svc+0x48/0x110 arch/arm64/kernel/syscall.c:193
el0\_svc+0x58/0x14c arch/arm64/kernel/entry-common.c:637
el0t\_64\_sync\_handler+0x84/0xf0 arch/arm64/kernel/entry-common.c:655
el0t\_64\_sync+0x190/0x194 arch/arm64/kernel/entry.S:591
Code: 91388800 aa0903e1 f90003e8 94e6d752 (d4210000)

## Affected and fixed versions

- Linux: \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 863a7de987f02a901bf215509276a7de0370e0f9; \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 2558b8039d059342197610498c8749ad294adee5 (cvelist)
- Linux: 5.19 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2023-52701.md
Affected: Linux >= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, < 863a7de987f02a901bf215509276a7de0370e0f9; >= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, < 2558b8039d059342197610498c8749ad294adee5; Linux 5.19
Fixed in: Linux 863a7de987f02a901bf215509276a7de0370e0f9, Linux 2558b8039d059342197610498c8749ad294adee5

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

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

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

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

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

Linux \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 863a7de987f02a901bf215509276a7de0370e0f9; \>= 6fd1d51cfa253b5ee7dae18d7cf1df830e9b6137, \< 2558b8039d059342197610498c8749ad294adee5; Linux 5.19.

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

Yes. Fixed in Linux 863a7de987f02a901bf215509276a7de0370e0f9, Linux 2558b8039d059342197610498c8749ad294adee5. Upgrade Linux to 2558b8039d059342197610498c8749ad294adee5 or later.

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

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/863a7de987f02a901bf215509276a7de0370e0f9>
- patch: <https://git.kernel.org/stable/c/2558b8039d059342197610498c8749ad294adee5>

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

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