cbcvebase.
CVE-2024-44946
published 2024-08-31

CVE-2024-44946: In the Linux kernel, the following vulnerability has been resolved: kcm: Serialise kcm_sendmsg() for the same socket. syzkaller reported UAF in kcm_release()…

PriorityP422medium5.5CVSS 3.1
AVLACLPRLUINSUCNINAH
EPSS
0.83%
54.0th percentile
In the Linux kernel, the following vulnerability has been resolved: kcm: Serialise kcm_sendmsg() for the same socket. syzkaller reported UAF in kcm_release(). [0] The scenario is 1. Thread A builds a skb with MSG_MORE and sets kcm->seq_skb. 2. Thread A resumes building skb from kcm->seq_skb but is blocked by sk_stream_wait_memory() 3. Thread B calls sendmsg() concurrently, finishes building kcm->seq_skb and puts the skb to the write queue 4. Thread A faces an error and finally frees skb that is already in the write queue 5. kcm_release() does double-free the skb in the write queue When a thread is building a MSG_MORE skb, another thread must not touch it. Let's add a per-sk mutex and serialise kcm_sendmsg(). [0]: BUG: KASAN: slab-use-after-free in __skb_unlink include/linux/skbuff.h:2366 [inline] BUG: KASAN: slab-use-after-free in __skb_dequeue include/linux/skbuff.h:2385 [inline] BUG: KASAN: slab-use-after-free in __skb_queue_purge_reason include/linux/skbuff.h:3175 [inline] BUG: KASAN: slab-use-after-free in __skb_queue_purge include/linux/skbuff.h:3181 [inline] BUG: KASAN: slab-use-after-free in kcm_release+0x170/0x4c8 net/kcm/kcmsock.c:1691 Read of size 8 at addr ffff0000ced0fc80 by task syz-executor329/6167 CPU: 1 PID: 6167 Comm: syz-executor329 Tainted: G B 6.8.0-rc5-syzkaller-g9abbc24128bc #0 Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 01/25/2024 Call trace: dump_backtrace+0x1b8/0x1e4 arch/arm64/kernel/stacktrace.c:291 show_stack+0x2c/0x3c arch/arm64/kernel/stacktrace.c:298 __dump_stack lib/dump_stack.c:88 [inline] dump_stack_lvl+0xd0/0x124 lib/dump_stack.c:106 print_address_description mm/kasan/report.c:377 [inline] print_report+0x178/0x518 mm/kasan/report.c:488 kasan_report+0xd8/0x138 mm/kasan/report.c:601 __asan_report_load8_noabort+0x20/0x2c mm/kasan/report_generic.c:381 __skb_unlink include/linux/skbuff.h:2366 [inline] __skb_dequeue include/linux/skbuff.h:2385 [inline] __skb_queue_purge_reason include/linux/

Affected

33 ranges· showing 25
VendorProductVersion rangeFixed in
debianlinux< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
debianlinux-6.1< linux 6.1.112-1 (bookworm)linux 6.1.112-1 (bookworm)
linuxlinux
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 8c9cdbf600143bd6835c8b8351e5ac956da79aec8c9cdbf600143bd6835c8b8351e5ac956da79aec
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 6633b17840bf828921254d788ccd15602843fe9b6633b17840bf828921254d788ccd15602843fe9b
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < eb06c8d3022ce6738711191c89f9b3e9cfb91914eb06c8d3022ce6738711191c89f9b3e9cfb91914
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < fa6c23fe6dcac8c8bd63920ee8681292a2bd544efa6c23fe6dcac8c8bd63920ee8681292a2bd544e
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 72da240aafb142630cf16adc803ccdacb378084972da240aafb142630cf16adc803ccdacb3780849
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 00425508f30baa5ab6449a1f478480ca7cffa6da00425508f30baa5ab6449a1f478480ca7cffa6da
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 9c8d544ed619f704e2b70e63e08ab75630c2ea239c8d544ed619f704e2b70e63e08ab75630c2ea23
linuxlinux>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3 < 807067bf014d4a3ae2cc55bd3de16f22a01eb580807067bf014d4a3ae2cc55bd3de16f22a01eb580
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel
linuxlinux_kernel>= 0 < 5.10.226-15.10.226-1
linuxlinux_kernel>= 0 < 6.1.112-16.1.112-1
linuxlinux_kernel>= 0 < 6.10.7-16.10.7-1
linuxlinux_kernel>= 0 < 6.10.7-16.10.7-1
linuxlinux_kernel>= 0 < 5.4.0-200.2205.4.0-200.220
linuxlinux_kernel>= 0 < 5.15.0-125.1355.15.0-125.135
linuxlinux_kernel>= 0 < 6.8.0-50.516.8.0-50.51
linuxlinux_kernel>= 4.6 < 6.1.1076.1.107
linuxlinux_kernel>= 6.2 < 6.6.486.6.48
linuxlinux_kernel>= 6.7 < 6.10.76.10.7

CVSS provenance

nvdv3.15.5MEDIUMCVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
osv8.8HIGH
vendor_ubuntu8.8HIGH
vendor_debian5.5MEDIUM
vendor_msrc5.5MEDIUM
vendor_redhat5.5MEDIUM
Stop checking back — get the weekly exploitation signal.

Every Monday: what got weaponized or added to CISA KEV in the last seven days — each CVE cross-linked to its PoC, Nuclei template, and detection rule. Free, one email a week, unsubscribe in one click.