{
  "cveId": "CVE-2024-47711",
  "url": "https://patchblox.com/security/cve/CVE-2024-47711",
  "summary": "CVE-2024-47711 is fixed in linux on 1 platform, first by DEBIAN-CVE-2024-47711, released October 21, 2024. It is not reported as exploited. Patch Radar priority: High.",
  "title": "linux: In the Linux kernel, the following vulnerability has been resolved:  af_unix: Don\u0027t return OOB skb in manage_oob()",
  "description": "In the Linux kernel, the following vulnerability has been resolved:  af_unix: Don\u0027t 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)      -\u003E The consumed OOB remains in recv queue   3. send(MSG_OOB)   4. recv()      -\u003E manage_oob() returns the next skb of the consumed OOB      -\u003E This is also OOB, but unix_sk(sk)-\u003Eoob_skb is not cleared   5. recv(MSG_OOB)      -\u003E unix_sk(sk)-\u003Eoob_skb is used but already freed  The recent commit 8594d9b85c07 (\u0022af_unix: Don\u0027t call skb_get() for OOB skb.\u0022) 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\u0027s 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\u002B0xa6/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:  \u003CTASK\u003E  __dump_stack lib/dump_stack.c:93 [inline]  dump_stack_lvl\u002B0x241/0x360 lib/dump_stack.c:119  print_address_description mm/kasan/report.c:377 [inline]  print_report\u002B0x169/0x550 mm/kasan/report.c:488  kasan_report\u002B0x143/0x180 mm/kasan/report.c:601  unix_stream_read_actor\u002B0xa6/0xb0 net/unix/af_unix.c:2959  unix_stream_recv_urg\u002B0x1df/0x320 net/unix/af_unix.c:2640  unix_stream_read_generic\u002B0x2456/0x2520 net/unix/af_unix.c:2778  unix_stream_recvmsg\u002B0x22b/0x2c0 net/unix/af_unix.c:2996  sock_recvmsg_nosec net/socket.c:1046 [inline]  sock_recvmsg\u002B0x22f/0x280 net/socket.c:1068  ____sys_recvmsg\u002B0x1db/0x470 net/socket.c:2816  ___sys_recvmsg net/socket.c:2858 [inline]  __sys_recvmsg\u002B0x2f0/0x3e0 net/socket.c:2888  do_syscall_x64 arch/x86/entry/common.c:52 [inline]  do_syscall_64\u002B0xf3/0x230 arch/x86/entry/common.c:83  entry_SYSCALL_64_after_hwframe\u002B0x77/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 \u003C48\u003E 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  \u003C/TASK\u003E  Allocated by task 5235:  kasan_save_stack mm/kasan/common.c:47 [inline]  kasan_save_track\u002B0x3f/0x80 mm/kasan/common.c:68  unpoison_slab_object mm/kasan/common.c:312 [inline]  __kasan_slab_alloc\u002B0x66/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\u002B0x16b/0x320 mm/slub.c:4080  __alloc_skb\u002B0x1c3/0x440 net/core/skbuff.c:667  alloc_skb include/linux/skbuff.h:1320 [inline]  alloc_skb_with_frags\u002B0xc3/0x770 net/core/skbuff.c:6528  sock_alloc_send_pskb\u002B0x91a/0xa60 net/core/sock.c:2815  sock_alloc_send_skb include/net/sock.h:1778 [inline]  queue_oob\u002B0x108/0x680 net/unix/af_unix.c:2198  unix_stream_sendmsg\u002B0xd24/0xf80 net/unix/af_unix.c:2351  sock_sendmsg_nosec net/socket.c:730 [inline]  __sock_sendmsg\u002B0x221/0x270 net/socket.c:745  ____sys_sendmsg\u002B0x525/0x7d0 net/socket.c:2597  ___sys_sendmsg net/socket.c:2651 [inline]  __sys_sendmsg\u002B0x2b0/0x3a0 net/socket.c:2680  do_syscall_x64 arch/x86/entry/common.c:52 [inline]  do_syscall_64\u002B0xf3/0x230 arch/x86/entry/common.c:83  entry_SYSCALL_64_after_hwframe\u002B0x77/0x7f  Freed by task 5235:  kasan_save_stack mm/kasan/common.c:47 ---truncated---",
  "published": "2024-10-21T12:15:07Z",
  "severity": "high",
  "cvss": 7.8,
  "cvssVector": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H",
  "epss": 0.00205,
  "epssPercentile": 0.1056,
  "priority": "High",
  "priorityTier": 3,
  "exploited": false,
  "vendorExploited": false,
  "disclosed": false,
  "fixes": [
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 13.5 (trixie)",
      "fixedVersion": "6.11.2-1",
      "fix": "DEBIAN-CVE-2024-47711",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-47711",
      "released": "2024-10-21T12:15:07Z"
    },
    {
      "platform": "linux",
      "product": "linux",
      "release": "Debian 14",
      "fixedVersion": "6.11.2-1",
      "fix": "DEBIAN-CVE-2024-47711",
      "url": "https://patchblox.com/security/fix/linux/debian-cve-2024-47711",
      "released": "2024-10-21T12:15:07Z"
    }
  ],
  "noFixYet": [],
  "dataAsOf": "2026-11-08T13:06:02Z",
  "attribution": {
    "text": "Data: Patchblox Patch Radar",
    "url": "https://patchblox.com/security/patch-radar",
    "terms": "https://patchblox.com/security/patch-radar/use-the-data"
  }
}