# CVE-2024-26782: mptcp: fix double-free on socket dismantle

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

- **Severity:** CRITICAL 9.8
- **CVSS:** 9.8 (v3.1, CNA) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- **CVSS metrics:** Attack vector: Network; Attack complexity: Low; Privileges required: None; 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:** Remote, no login needed
- **EPSS:** 1.02% (percentile 62, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2024-04-04T08:20:16.472Z
- **Modified:** 2026-08-05T11:27:13.047Z

## Who should check

- Anyone running Linux \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< f74362a004225df935863dea6eb7d82daaa5b16e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< d93fd40c62397326046902a2c5cb75af50882a85; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< ce0809ada38dca8d6d41bb57ab40494855c30582; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 85933e80d077c9ae2227226beb86c22f464059cc; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 10048689def7e40a4405acda16fdc6477d4ecc5c
- Anyone running Linux 5.6

## Description

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

mptcp: fix double-free on socket dismantle

when MPTCP server accepts an incoming connection, it clones its listener
socket. However, the pointer to 'inet\_opt' for the new socket has the same
value as the original one: as a consequence, on program exit it's possible
to observe the following splat:

  BUG: KASAN: double-free in inet\_sock\_destruct+0x54f/0x8b0
  Free of addr ffff888485950880 by task swapper/25/0

  CPU: 25 PID: 0 Comm: swapper/25 Kdump: loaded Not tainted 6.8.0-rc1+ \#609
  Hardware name: Supermicro SYS-6027R-72RF/X9DRH-7TF/7F/iTF/iF, BIOS 3.0  07/26/2013
  Call Trace:
   \<IRQ\>
   dump\_stack\_lvl+0x32/0x50
   print\_report+0xca/0x620
   kasan\_report\_invalid\_free+0x64/0x90
   \_\_kasan\_slab\_free+0x1aa/0x1f0
   kfree+0xed/0x2e0
   inet\_sock\_destruct+0x54f/0x8b0
   \_\_sk\_destruct+0x48/0x5b0
   rcu\_do\_batch+0x34e/0xd90
   rcu\_core+0x559/0xac0
   \_\_do\_softirq+0x183/0x5a4
   irq\_exit\_rcu+0x12d/0x170
   sysvec\_apic\_timer\_interrupt+0x6b/0x80
   \</IRQ\>
   \<TASK\>
   asm\_sysvec\_apic\_timer\_interrupt+0x16/0x20
  RIP: 0010:cpuidle\_enter\_state+0x175/0x300
  Code: 30 00 0f 84 1f 01 00 00 83 e8 01 83 f8 ff 75 e5 48 83 c4 18 44 89 e8 5b 5d 41 5c 41 5d 41 5e 41 5f c3 cc cc cc cc fb 45 85 ed \<0f\> 89 60 ff ff ff 48 c1 e5 06 48 c7 43 18 00 00 00 00 48 83 44 2b
  RSP: 0018:ffff888481cf7d90 EFLAGS: 00000202
  RAX: 0000000000000000 RBX: ffff88887facddc8 RCX: 0000000000000000
  RDX: 1ffff1110ff588b1 RSI: 0000000000000019 RDI: ffff88887fac4588
  RBP: 0000000000000004 R08: 0000000000000002 R09: 0000000000043080
  R10: 0009b02ea273363f R11: ffff88887fabf42b R12: ffffffff932592e0
  R13: 0000000000000004 R14: 0000000000000000 R15: 00000022c880ec80
   cpuidle\_enter+0x4a/0xa0
   do\_idle+0x310/0x410
   cpu\_startup\_entry+0x51/0x60
   start\_secondary+0x211/0x270
   secondary\_startup\_64\_no\_verify+0x184/0x18b
   \</TASK\>

  Allocated by task 6853:
   kasan\_save\_stack+0x1c/0x40
   kasan\_save\_track+0x10/0x30
   \_\_kasan\_kmalloc+0xa6/0xb0
   \_\_kmalloc+0x1eb/0x450
   cipso\_v4\_sock\_setattr+0x96/0x360
   netlbl\_sock\_setattr+0x132/0x1f0
   selinux\_netlbl\_socket\_post\_create+0x6c/0x110
   selinux\_socket\_post\_create+0x37b/0x7f0
   security\_socket\_post\_create+0x63/0xb0
   \_\_sock\_create+0x305/0x450
   \_\_sys\_socket\_create.part.23+0xbd/0x130
   \_\_sys\_socket+0x37/0xb0
   \_\_x64\_sys\_socket+0x6f/0xb0
   do\_syscall\_64+0x83/0x160
   entry\_SYSCALL\_64\_after\_hwframe+0x6e/0x76

  Freed by task 6858:
   kasan\_save\_stack+0x1c/0x40
   kasan\_save\_track+0x10/0x30
   kasan\_save\_free\_info+0x3b/0x60
   \_\_kasan\_slab\_free+0x12c/0x1f0
   kfree+0xed/0x2e0
   inet\_sock\_destruct+0x54f/0x8b0
   \_\_sk\_destruct+0x48/0x5b0
   subflow\_ulp\_release+0x1f0/0x250
   tcp\_cleanup\_ulp+0x6e/0x110
   tcp\_v4\_destroy\_sock+0x5a/0x3a0
   inet\_csk\_destroy\_sock+0x135/0x390
   tcp\_fin+0x416/0x5c0
   tcp\_data\_queue+0x1bc8/0x4310
   tcp\_rcv\_state\_process+0x15a3/0x47b0
   tcp\_v4\_do\_rcv+0x2c1/0x990
   tcp\_v4\_rcv+0x41fb/0x5ed0
   ip\_protocol\_deliver\_rcu+0x6d/0x9f0
   ip\_local\_deliver\_finish+0x278/0x360
   ip\_local\_deliver+0x182/0x2c0
   ip\_rcv+0xb5/0x1c0
   \_\_netif\_receive\_skb\_one\_core+0x16e/0x1b0
   process\_backlog+0x1e3/0x650
   \_\_napi\_poll+0xa6/0x500
   net\_rx\_action+0x740/0xbb0
   \_\_do\_softirq+0x183/0x5a4

  The buggy address belongs to the object at ffff888485950880
   which belongs to the cache kmalloc-64 of size 64
  The buggy address is located 0 bytes inside of
   64-byte region \[ffff888485950880, ffff8884859508c0)

  The buggy address belongs to the physical page:
  page:0000000056d1e95e refcount:1 mapcount:0 mapping:0000000000000000 index:0xffff888485950700 pfn:0x485950
  flags: 0x57ffffc0000800(slab\|node=1\|zone=2\|lastcpupid=0x1fffff)
  page\_type: 0xffffffff()
  raw: 0057ffffc0000800 ffff88810004c640 ffffea00121b8ac0 dead000000000006
  raw: ffff888485950700 0000000000200019 00000001ffffffff 0000000000000000
  page dumped because: kasan: bad access detected

  Memory state around the buggy address:
   ffff888485950780: fa fb fb
---truncated---

## Affected and fixed versions

- Linux: \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< f74362a004225df935863dea6eb7d82daaa5b16e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< d93fd40c62397326046902a2c5cb75af50882a85; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< ce0809ada38dca8d6d41bb57ab40494855c30582; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 85933e80d077c9ae2227226beb86c22f464059cc; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 10048689def7e40a4405acda16fdc6477d4ecc5c (cvelist)
- Linux: 5.6 (cvelist)

## Mitigation

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

Details: https://flawdb.com/CVE-2024-26782.md
Affected: Linux >= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, < f74362a004225df935863dea6eb7d82daaa5b16e; >= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, < 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e; >= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, < d93fd40c62397326046902a2c5cb75af50882a85; >= cf7da0d66cc1a2a19fc5930…
Fixed in: Linux 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e, Linux 85933e80d077c9ae2227226beb86c22f464059cc, Linux 10048689def7e40a4405acda16fdc6477d4ecc5c

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

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

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

Critical: CVSS 9.8 (v3.1, scored by CNA). Remote, no login needed.

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

Linux \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< f74362a004225df935863dea6eb7d82daaa5b16e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< d93fd40c62397326046902a2c5cb75af50882a85; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< ce0809ada38dca8d6d41bb57ab40494855c30582; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 85933e80d077c9ae2227226beb86c22f464059cc; \>= cf7da0d66cc1a2a19fc5930bb746ffbb2d4cd1be, \< 10048689def7e40a4405acda16fdc6477d4ecc5c; Linux 5.6.

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

Yes. Fixed in Linux 4a4eeb6912538c2d0b158e8d11b62d96c1dada4e, Linux 85933e80d077c9ae2227226beb86c22f464059cc, Linux 10048689def7e40a4405acda16fdc6477d4ecc5c. Upgrade Linux to 10048689def7e40a4405acda16fdc6477d4ecc5c or later.

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

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/f74362a004225df935863dea6eb7d82daaa5b16e>
- patch: <https://git.kernel.org/stable/c/4a4eeb6912538c2d0b158e8d11b62d96c1dada4e>
- patch: <https://git.kernel.org/stable/c/d93fd40c62397326046902a2c5cb75af50882a85>
- patch: <https://git.kernel.org/stable/c/ce0809ada38dca8d6d41bb57ab40494855c30582>
- patch: <https://git.kernel.org/stable/c/85933e80d077c9ae2227226beb86c22f464059cc>
- patch: <https://git.kernel.org/stable/c/10048689def7e40a4405acda16fdc6477d4ecc5c>
- other: <https://lists.debian.org/debian-lts-announce/2024/06/msg00017.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-26782>

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