# CVE-2026-74257: sockmap: Fix use-after-free in udp\_bpf\_recvmsg()

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

- **Severity:** HIGH 7.8
- **CVSS:** 7.8 (v3.1, CNA) `CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Local; Attack complexity: Low; Privileges required: Low; User interaction: None; Scope: Unchanged; Confidentiality impact: High; Integrity impact: High; 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.17% (percentile 4, 2026-11-28)
- **Published:** 2026-08-15T05:57:35.604Z
- **Modified:** 2026-10-30T13:19:53.540Z

## Who should check

- Anyone running Linux \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6ea94949a5afe457647def276cd6958721481abd; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6b59007d95aeef6619a72f5ea51f58752c47c198; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 05c29e7d42926170f0595c7188d60d8ecb665593; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 81567d2b3f4dc4fc32f8b61433738bce2cafd4a1; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 39d44ed6904bfa9a1c6d0538672dd50c7b85520e; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< c010995b29c8939c6aa69e3cb26f8dbee163d156
- Anyone running Linux 5.14

## Description

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

sockmap: Fix use-after-free in udp\_bpf\_recvmsg()

syzbot reported use-after-free of struct sk\_msg in sk\_msg\_recvmsg(). \[0\]

sk\_msg\_recvmsg() peeks sk\_msg from psock-\>ingress\_msg under a lock,
but its processing is lockless.

Thus, sk\_msg\_recvmsg() must be serialised by callers, otherwise
multiple threads could touch the same sk\_msg.

For example, TCP uses lock\_sock(), and AF\_UNIX uses unix\_sk(sk)-\>iolock.

Initially, udp\_bpf\_recvmsg() had used lock\_sock(), but the cited
commit removed it.

Let's serialise sk\_msg\_recvmsg() with lock\_sock() in udp\_bpf\_recvmsg().

Note that holding spin\_lock\_bh(&sk-\>sk\_receive\_queue.lock) is not
an option due to copy\_page\_to\_iter() in sk\_msg\_recvmsg().

\[0\]:
BUG: KASAN: slab-use-after-free in sk\_msg\_recvmsg+0xb54/0xc30 net/core/skmsg.c:428
Read of size 4 at addr ffff88814cdcf000 by task syz.0.24/6020

CPU: 1 UID: 0 PID: 6020 Comm: syz.0.24 Not tainted syzkaller \#0 PREEMPT(full)
Hardware name: Google Compute Engine/Google Compute Engine, BIOS Google 01/13/2026
Call Trace:
 \<TASK\>
 dump\_stack\_lvl+0xe8/0x150 lib/dump\_stack.c:120
 print\_address\_description mm/kasan/report.c:378 \[inline\]
 print\_report+0xba/0x230 mm/kasan/report.c:482
 kasan\_report+0x117/0x150 mm/kasan/report.c:595
 sk\_msg\_recvmsg+0xb54/0xc30 net/core/skmsg.c:428
 udp\_bpf\_recvmsg+0x4bd/0xe00 net/ipv4/udp\_bpf.c:84
 inet\_recvmsg+0x260/0x270 net/ipv4/af\_inet.c:891
 sock\_recvmsg\_nosec net/socket.c:1078 \[inline\]
 sock\_recvmsg+0x1a8/0x270 net/socket.c:1100
 \_\_\_\_sys\_recvmsg+0x1e6/0x4a0 net/socket.c:2812
 \_\_\_sys\_recvmsg+0x215/0x590 net/socket.c:2854
 do\_recvmmsg+0x334/0x800 net/socket.c:2949
 \_\_sys\_recvmmsg net/socket.c:3023 \[inline\]
 \_\_do\_sys\_recvmmsg net/socket.c:3046 \[inline\]
 \_\_se\_sys\_recvmmsg net/socket.c:3039 \[inline\]
 \_\_x64\_sys\_recvmmsg+0x198/0x250 net/socket.c:3039
 do\_syscall\_x64 arch/x86/entry/syscall\_64.c:63 \[inline\]
 do\_syscall\_64+0xe2/0xf80 arch/x86/entry/syscall\_64.c:94
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7fb319f9aeb9
Code: ff c3 66 2e 0f 1f 84 00 00 00 00 00 0f 1f 44 00 00 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 e8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fb31ad97028 EFLAGS: 00000246 ORIG\_RAX: 000000000000012b
RAX: ffffffffffffffda RBX: 00007fb31a216090 RCX: 00007fb319f9aeb9
RDX: 0000000000000001 RSI: 0000200000000400 RDI: 0000000000000004
RBP: 00007fb31a008c1f R08: 0000000000000000 R09: 0000000000000000
R10: 0000000040000021 R11: 0000000000000246 R12: 0000000000000000
R13: 00007fb31a216128 R14: 00007fb31a216090 R15: 00007ffe21dd0a98
 \</TASK\>

Allocated by task 6019:
 kasan\_save\_stack mm/kasan/common.c:57 \[inline\]
 kasan\_save\_track+0x3e/0x80 mm/kasan/common.c:78
 poison\_kmalloc\_redzone mm/kasan/common.c:398 \[inline\]
 \_\_kasan\_kmalloc+0x93/0xb0 mm/kasan/common.c:415
 kasan\_kmalloc include/linux/kasan.h:263 \[inline\]
 \_\_kmalloc\_cache\_noprof+0x3d1/0x6e0 mm/slub.c:5780
 kmalloc\_noprof include/linux/slab.h:957 \[inline\]
 kzalloc\_noprof include/linux/slab.h:1094 \[inline\]
 alloc\_sk\_msg net/core/skmsg.c:510 \[inline\]
 sk\_psock\_skb\_ingress\_self+0x60/0x350 net/core/skmsg.c:612
 sk\_psock\_verdict\_apply net/core/skmsg.c:1038 \[inline\]
 sk\_psock\_verdict\_recv+0x7d9/0x8d0 net/core/skmsg.c:1236
 udp\_read\_skb+0x73e/0x7e0 net/ipv4/udp.c:2045
 sk\_psock\_verdict\_data\_ready+0x12d/0x550 net/core/skmsg.c:1257
 \_\_udp\_enqueue\_schedule\_skb+0xc54/0x10b0 net/ipv4/udp.c:1789
 \_\_udp\_queue\_rcv\_skb net/ipv4/udp.c:2346 \[inline\]
 udp\_queue\_rcv\_one\_skb+0xac5/0x19c0 net/ipv4/udp.c:2475
 \_\_udp4\_lib\_mcast\_deliver+0xc06/0xcf0 net/ipv4/udp.c:2585
 \_\_udp4\_lib\_rcv+0x10f6/0x2620 net/ipv4/udp.c:2724
 ip\_protocol\_deliver\_rcu+0x282/0x440 net/ipv4/ip\_input.c:207
 ip\_local\_deliver\_finish+0x3bb/0x6f0 net/ipv4/ip\_input.c:241
 NF\_HOOK+0x336/0x3c0 include/linux/netfilter.h:318
 dst\_input include/net/dst.h:474 \[inline\]
 ip\_sublist\_rcv\_finish+0x221/0x2a0 net/ipv4/ip\_input.c:584
 ip\_list\_rcv\_finish net/ipv4/ip\_inp
---truncated---

## Affected and fixed versions

- Linux: \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6ea94949a5afe457647def276cd6958721481abd; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6b59007d95aeef6619a72f5ea51f58752c47c198; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 05c29e7d42926170f0595c7188d60d8ecb665593; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 81567d2b3f4dc4fc32f8b61433738bce2cafd4a1; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 39d44ed6904bfa9a1c6d0538672dd50c7b85520e; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< c010995b29c8939c6aa69e3cb26f8dbee163d156 (cvelist)
- Linux: 5.14 (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-2026-74257. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2026-74257.md
Affected: Linux >= 9f2470fbc4cb4583c080bb729a998933ba61aca4, < 6ea94949a5afe457647def276cd6958721481abd; >= 9f2470fbc4cb4583c080bb729a998933ba61aca4, < 6b59007d95aeef6619a72f5ea51f58752c47c198; >= 9f2470fbc4cb4583c080bb729a998933ba61aca4, < 05c29e7d42926170f0595c7188d60d8ecb665593; >= 9f2470fbc4cb4583c080bb7…
Fixed in: Linux 6ea94949a5afe457647def276cd6958721481abd, Linux 6b59007d95aeef6619a72f5ea51f58752c47c198, Linux 05c29e7d42926170f0595c7188d60d8ecb665593, Linux 81567d2b3f4dc4fc32f8b61433738bce2cafd4a1, Linux 39d44ed6904bfa9a1c6d0538672dd50c7b85520e

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-2026-74257 being exploited?

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

### How serious is CVE-2026-74257?

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

### Which versions are affected by CVE-2026-74257?

Linux \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6ea94949a5afe457647def276cd6958721481abd; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 6b59007d95aeef6619a72f5ea51f58752c47c198; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 05c29e7d42926170f0595c7188d60d8ecb665593; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 81567d2b3f4dc4fc32f8b61433738bce2cafd4a1; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< 39d44ed6904bfa9a1c6d0538672dd50c7b85520e; \>= 9f2470fbc4cb4583c080bb729a998933ba61aca4, \< c010995b29c8939c6aa69e3cb26f8dbee163d156; Linux 5.14.

### Is there a fix for CVE-2026-74257?

Yes. Fixed in Linux 6ea94949a5afe457647def276cd6958721481abd, Linux 6b59007d95aeef6619a72f5ea51f58752c47c198, Linux 05c29e7d42926170f0595c7188d60d8ecb665593, Linux 81567d2b3f4dc4fc32f8b61433738bce2cafd4a1, Linux 39d44ed6904bfa9a1c6d0538672dd50c7b85520e. No fix listed yet: follow the vendor advisory.

### How do I check if I'm affected by CVE-2026-74257?

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

- other: <https://git.kernel.org/stable/c/6ea94949a5afe457647def276cd6958721481abd>
- other: <https://git.kernel.org/stable/c/6b59007d95aeef6619a72f5ea51f58752c47c198>
- other: <https://git.kernel.org/stable/c/05c29e7d42926170f0595c7188d60d8ecb665593>
- other: <https://git.kernel.org/stable/c/81567d2b3f4dc4fc32f8b61433738bce2cafd4a1>
- other: <https://git.kernel.org/stable/c/39d44ed6904bfa9a1c6d0538672dd50c7b85520e>
- other: <https://git.kernel.org/stable/c/c010995b29c8939c6aa69e3cb26f8dbee163d156>

## 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-2026-74257>

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