# CVE-2024-44946: kcm: Serialise kcm\_sendmsg() for the same socket.

> 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.67% (percentile 47, 2026-11-26)
- **CWE:** CWE-416
- **Published:** 2024-08-31T13:22:47.250Z
- **Modified:** 2026-08-05T11:37:13.816Z

## Who should check

- Anyone running Linux \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 8c9cdbf600143bd6835c8b8351e5ac956da79aec; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 6633b17840bf828921254d788ccd15602843fe9b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< eb06c8d3022ce6738711191c89f9b3e9cfb91914; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< fa6c23fe6dcac8c8bd63920ee8681292a2bd544e; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 72da240aafb142630cf16adc803ccdacb3780849; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 00425508f30baa5ab6449a1f478480ca7cffa6da; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 9c8d544ed619f704e2b70e63e08ab75630c2ea23; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 807067bf014d4a3ae2cc55bd3de16f22a01eb580
- Anyone running Linux 4.6

## Description

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/skbuff.h:3175 \[inline\]
 \_\_skb\_queue\_purge include/linux/skbuff.h:3181 \[inline\]
 kcm\_release+0x170/0x4c8 net/kcm/kcmsock.c:1691
 \_\_sock\_release net/socket.c:659 \[inline\]
 sock\_close+0xa4/0x1e8 net/socket.c:1421
 \_\_fput+0x30c/0x738 fs/file\_table.c:376
 \_\_\_\_fput+0x20/0x30 fs/file\_table.c:404
 task\_work\_run+0x230/0x2e0 kernel/task\_work.c:180
 exit\_task\_work include/linux/task\_work.h:38 \[inline\]
 do\_exit+0x618/0x1f64 kernel/exit.c:871
 do\_group\_exit+0x194/0x22c kernel/exit.c:1020
 get\_signal+0x1500/0x15ec kernel/signal.c:2893
 do\_signal+0x23c/0x3b44 arch/arm64/kernel/signal.c:1249
 do\_notify\_resume+0x74/0x1f4 arch/arm64/kernel/entry-common.c:148
 exit\_to\_user\_mode\_prepare arch/arm64/kernel/entry-common.c:169 \[inline\]
 exit\_to\_user\_mode arch/arm64/kernel/entry-common.c:178 \[inline\]
 el0\_svc+0xac/0x168 arch/arm64/kernel/entry-common.c:713
 el0t\_64\_sync\_handler+0x84/0xfc arch/arm64/kernel/entry-common.c:730
 el0t\_64\_sync+0x190/0x194 arch/arm64/kernel/entry.S:598

Allocated by task 6166:
 kasan\_save\_stack mm/kasan/common.c:47 \[inline\]
 kasan\_save\_track+0x40/0x78 mm/kasan/common.c:68
 kasan\_save\_alloc\_info+0x70/0x84 mm/kasan/generic.c:626
 unpoison\_slab\_object mm/kasan/common.c:314 \[inline\]
 \_\_kasan\_slab\_alloc+0x74/0x8c mm/kasan/common.c:340
 kasan\_slab\_alloc include/linux/kasan.h:201 \[inline\]
 slab\_post\_alloc\_hook mm/slub.c:3813 \[inline\]
 slab\_alloc\_node mm/slub.c:3860 \[inline\]
 kmem\_cache\_alloc\_node+0x204/0x4c0 mm/slub.c:3903
 \_\_alloc\_skb+0x19c/0x3d8 net/core/skbuff.c:641
 alloc\_skb include/linux/skbuff.h:1296 \[inline\]
 kcm\_sendmsg+0x1d3c/0x2124 net/kcm/kcmsock.c:783
 sock\_sendmsg\_nosec net/socket.c:730 \[inline\]
 \_\_sock\_sendmsg net/socket.c:745 \[inline\]
 sock\_sendmsg+0x220/0x2c0 net/socket.c:768
 splice\_to\_socket+0x7cc/0xd58 fs/splice.c:889
 do\_splice\_from fs/splice.c:941 \[inline\]
 direct\_splice\_actor+0xec/0x1d8 fs/splice.c:1164
 splice\_direct\_to\_actor+0x438/0xa0c fs/splice.c:1108
 do\_splice\_direct\_actor 
---truncated---

## Affected and fixed versions

- Linux: \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 8c9cdbf600143bd6835c8b8351e5ac956da79aec; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 6633b17840bf828921254d788ccd15602843fe9b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< eb06c8d3022ce6738711191c89f9b3e9cfb91914; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< fa6c23fe6dcac8c8bd63920ee8681292a2bd544e; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 72da240aafb142630cf16adc803ccdacb3780849; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 00425508f30baa5ab6449a1f478480ca7cffa6da; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 9c8d544ed619f704e2b70e63e08ab75630c2ea23; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 807067bf014d4a3ae2cc55bd3de16f22a01eb580 (cvelist)
- Linux: 4.6 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-44946.md
Affected: Linux >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < 8c9cdbf600143bd6835c8b8351e5ac956da79aec; >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < 6633b17840bf828921254d788ccd15602843fe9b; >= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, < eb06c8d3022ce6738711191c89f9b3e9cfb91914; >= ab7ac4eb9832e32a09f4e80…
Fixed in: Linux 8c9cdbf600143bd6835c8b8351e5ac956da79aec, Linux 6633b17840bf828921254d788ccd15602843fe9b, Linux 72da240aafb142630cf16adc803ccdacb3780849, Linux 00425508f30baa5ab6449a1f478480ca7cffa6da, Linux 9c8d544ed619f704e2b70e63e08ab75630c2ea23, Linux 807067bf014d4a3ae2cc55bd3de16f22a01eb580

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

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

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

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

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

Linux \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 8c9cdbf600143bd6835c8b8351e5ac956da79aec; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 6633b17840bf828921254d788ccd15602843fe9b; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< eb06c8d3022ce6738711191c89f9b3e9cfb91914; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< fa6c23fe6dcac8c8bd63920ee8681292a2bd544e; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 72da240aafb142630cf16adc803ccdacb3780849; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 00425508f30baa5ab6449a1f478480ca7cffa6da; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 9c8d544ed619f704e2b70e63e08ab75630c2ea23; \>= ab7ac4eb9832e32a09f4e8042705484d2fb0aad3, \< 807067bf014d4a3ae2cc55bd3de16f22a01eb580; Linux 4.6.

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

Yes. Fixed in Linux 8c9cdbf600143bd6835c8b8351e5ac956da79aec, Linux 6633b17840bf828921254d788ccd15602843fe9b, Linux 72da240aafb142630cf16adc803ccdacb3780849, Linux 00425508f30baa5ab6449a1f478480ca7cffa6da, Linux 9c8d544ed619f704e2b70e63e08ab75630c2ea23, Linux 807067bf014d4a3ae2cc55bd3de16f22a01eb580. Upgrade Linux to 807067bf014d4a3ae2cc55bd3de16f22a01eb580 or later.

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

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/72da240aafb142630cf16adc803ccdacb3780849>
- patch: <https://git.kernel.org/stable/c/00425508f30baa5ab6449a1f478480ca7cffa6da>
- patch: <https://git.kernel.org/stable/c/9c8d544ed619f704e2b70e63e08ab75630c2ea23>
- patch: <https://git.kernel.org/stable/c/807067bf014d4a3ae2cc55bd3de16f22a01eb580>
- other: <https://git.kernel.org/stable/c/8c9cdbf600143bd6835c8b8351e5ac956da79aec>
- other: <https://git.kernel.org/stable/c/6633b17840bf828921254d788ccd15602843fe9b>
- other: <https://git.kernel.org/stable/c/eb06c8d3022ce6738711191c89f9b3e9cfb91914>
- other: <https://git.kernel.org/stable/c/fa6c23fe6dcac8c8bd63920ee8681292a2bd544e>
- other: <https://lists.debian.org/debian-lts-announce/2025/01/msg00001.html>
- other: <https://lists.debian.org/debian-lts-announce/2024/10/msg00003.html>

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

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