# CVE-2024-47711: af\_unix: Don't return OOB skb in manage\_oob().

> 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.30% (percentile 15, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-10-21T11:53:44.102Z
- **Modified:** 2026-08-05T11:39:38.251Z

## Who should check

- Anyone running Linux \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c; \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 5aa57d9f2d5311f19434d95b2a81610aa263e23b; 71f8d9a4f6e094bae951765d1d18b44827013001; \>= 6.9.8, \< 6.10
- Anyone running Linux 6.10

## Description

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

af\_unix: Don't return OOB skb in manage\_oob().

syzbot reported use-after-free in unix\_stream\_recv\_urg(). \[0\]

The scenario is

  1. send(MSG\_OOB)
  2. recv(MSG\_OOB)
     -\> The consumed OOB remains in recv queue
  3. send(MSG\_OOB)
  4. recv()
     -\> manage\_oob() returns the next skb of the consumed OOB
     -\> This is also OOB, but unix\_sk(sk)-\>oob\_skb is not cleared
  5. recv(MSG\_OOB)
     -\> unix\_sk(sk)-\>oob\_skb is used but already freed

The recent commit 8594d9b85c07 ("af\_unix: Don't call skb\_get() for OOB
skb.") uncovered the issue.

If the OOB skb is consumed and the next skb is peeked in manage\_oob(),
we still need to check if the skb is OOB.

Let's do so by falling back to the following checks in manage\_oob()
and add the test case in selftest.

Note that we need to add a similar check for SIOCATMARK.

\[0\]:
BUG: KASAN: slab-use-after-free in unix\_stream\_read\_actor+0xa6/0xb0 net/unix/af\_unix.c:2959
Read of size 4 at addr ffff8880326abcc4 by task syz-executor178/5235

CPU: 0 UID: 0 PID: 5235 Comm: syz-executor178 Not tainted 6.11.0-rc5-syzkaller-00742-gfbdaffe41adc \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 08/06/2024
Call Trace:
 \<TASK\>
 \_\_dump\_stack lib/dump\_stack.c:93 \[inline\]
 dump\_stack\_lvl+0x241/0x360 lib/dump\_stack.c:119
 print\_address\_description mm/kasan/report.c:377 \[inline\]
 print\_report+0x169/0x550 mm/kasan/report.c:488
 kasan\_report+0x143/0x180 mm/kasan/report.c:601
 unix\_stream\_read\_actor+0xa6/0xb0 net/unix/af\_unix.c:2959
 unix\_stream\_recv\_urg+0x1df/0x320 net/unix/af\_unix.c:2640
 unix\_stream\_read\_generic+0x2456/0x2520 net/unix/af\_unix.c:2778
 unix\_stream\_recvmsg+0x22b/0x2c0 net/unix/af\_unix.c:2996
 sock\_recvmsg\_nosec net/socket.c:1046 \[inline\]
 sock\_recvmsg+0x22f/0x280 net/socket.c:1068
 \_\_\_\_sys\_recvmsg+0x1db/0x470 net/socket.c:2816
 \_\_\_sys\_recvmsg net/socket.c:2858 \[inline\]
 \_\_sys\_recvmsg+0x2f0/0x3e0 net/socket.c:2888
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f
RIP: 0033:0x7f5360d6b4e9
Code: 48 83 c4 28 c3 e8 37 17 00 00 0f 1f 80 00 00 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 b8 ff ff ff f7 d8 64 89 01 48
RSP: 002b:00007fff29b3a458 EFLAGS: 00000246 ORIG\_RAX: 000000000000002f
RAX: ffffffffffffffda RBX: 00007fff29b3a638 RCX: 00007f5360d6b4e9
RDX: 0000000000002001 RSI: 0000000020000640 RDI: 0000000000000003
RBP: 00007f5360dde610 R08: 0000000000000000 R09: 0000000000000000
R10: 0000000000000000 R11: 0000000000000246 R12: 0000000000000001
R13: 00007fff29b3a628 R14: 0000000000000001 R15: 0000000000000001
 \</TASK\>

Allocated by task 5235:
 kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
 kasan\_save\_track+0x3f/0x80 mm/kasan/common.c:68
 unpoison\_slab\_object mm/kasan/common.c:312 \[inline\]
 \_\_kasan\_slab\_alloc+0x66/0x80 mm/kasan/common.c:338
 kasan\_slab\_alloc include/linux/kasan.h:201 \[inline\]
 slab\_post\_alloc\_hook mm/slub.c:3988 \[inline\]
 slab\_alloc\_node mm/slub.c:4037 \[inline\]
 kmem\_cache\_alloc\_node\_noprof+0x16b/0x320 mm/slub.c:4080
 \_\_alloc\_skb+0x1c3/0x440 net/core/skbuff.c:667
 alloc\_skb include/linux/skbuff.h:1320 \[inline\]
 alloc\_skb\_with\_frags+0xc3/0x770 net/core/skbuff.c:6528
 sock\_alloc\_send\_pskb+0x91a/0xa60 net/core/sock.c:2815
 sock\_alloc\_send\_skb include/net/sock.h:1778 \[inline\]
 queue\_oob+0x108/0x680 net/unix/af\_unix.c:2198
 unix\_stream\_sendmsg+0xd24/0xf80 net/unix/af\_unix.c:2351
 sock\_sendmsg\_nosec net/socket.c:730 \[inline\]
 \_\_sock\_sendmsg+0x221/0x270 net/socket.c:745
 \_\_\_\_sys\_sendmsg+0x525/0x7d0 net/socket.c:2597
 \_\_\_sys\_sendmsg net/socket.c:2651 \[inline\]
 \_\_sys\_sendmsg+0x2b0/0x3a0 net/socket.c:2680
 do\_syscall\_x64 arch/x86/entry/common.c:52 \[inline\]
 do\_syscall\_64+0xf3/0x230 arch/x86/entry/common.c:83
 entry\_SYSCALL\_64\_after\_hwframe+0x77/0x7f

Freed by task 5235:
 kasan\_save\_stack mm/kasan/common.c:47
---truncated---

## Affected and fixed versions

- Linux: \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c; \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 5aa57d9f2d5311f19434d95b2a81610aa263e23b; 71f8d9a4f6e094bae951765d1d18b44827013001; \>= 6.9.8, \< 6.10 (cvelist)
- Linux: 6.10 (cvelist)

## Mitigation

- Upgrade Linux to 6.10 or later.

## Check your systems with an agent

Paste this into a coding agent:

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

Details: https://flawdb.com/CVE-2024-47711.md
Affected: Linux >= 93c99f21db360957d49853e5666b5c147f593bda, < 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c; >= 93c99f21db360957d49853e5666b5c147f593bda, < 5aa57d9f2d5311f19434d95b2a81610aa263e23b; 71f8d9a4f6e094bae951765d1d18b44827013001; >= 6.9.8, < 6.10; Linux 6.10
Fixed in: Linux 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c, Linux 5aa57d9f2d5311f19434d95b2a81610aa263e23b, Linux 6.10

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-2024-47711 being exploited?

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

### How serious is CVE-2024-47711?

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

### Which versions are affected by CVE-2024-47711?

Linux \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c; \>= 93c99f21db360957d49853e5666b5c147f593bda, \< 5aa57d9f2d5311f19434d95b2a81610aa263e23b; 71f8d9a4f6e094bae951765d1d18b44827013001; \>= 6.9.8, \< 6.10; Linux 6.10.

### Is there a fix for CVE-2024-47711?

Yes. Fixed in Linux 4a7f9a2591a923bdde4bd7eac33490b6ae3b257c, Linux 5aa57d9f2d5311f19434d95b2a81610aa263e23b, Linux 6.10. Upgrade Linux to 6.10 or later.

### How do I check if I'm affected by CVE-2024-47711?

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/4a7f9a2591a923bdde4bd7eac33490b6ae3b257c>
- patch: <https://git.kernel.org/stable/c/5aa57d9f2d5311f19434d95b2a81610aa263e23b>

## 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-2024-47711>

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