CVE-2024-36889 mptcp: ensure snd_nxt is properly initialized on connect
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: partial
- Technology
- Linux KernelUbuntuDebian
Description
In the Linux kernel, the following vulnerability has been resolved:
mptcp: ensure snd_nxt is properly initialized on connect
Christoph reported a splat hinting at a corrupted snd_una:
WARNING: CPU: 1 PID: 38 at net/mptcp/protocol.c:1005 __mptcp_clean_una+0x4b3/0x620 net/mptcp/protocol.c:1005
Modules linked in:
CPU: 1 PID: 38 Comm: kworker/1:1 Not tainted 6.9.0-rc1-gbbeac67456c9 #59
Hardware name: QEMU Standard PC (i440FX + PIIX, 1996), BIOS 1.11.0-2.el7 04/01/2014
Workqueue: events mptcp_worker
RIP: 0010:__mptcp_clean_una+0x4b3/0x620 net/mptcp/protocol.c:1005
Code: be 06 01 00 00 bf 06 01 00 00 e8 a8 12 e7 fe e9 00 fe ff ff e8
8e 1a e7 fe 0f b7 ab 3e 02 00 00 e9 d3 fd ff ff e8 7d 1a e7 fe
<0f> 0b 4c 8b bb e0 05 00 00 e9 74 fc ff ff e8 6a 1a e7 fe 0f 0b e9
RSP: 0018:ffffc9000013fd48 EFLAGS: 00010293
RAX: 0000000000000000 RBX: ffff8881029bd280 RCX: ffffffff82382fe4
RDX: ffff8881003cbd00 RSI: ffffffff823833c3 RDI: 0000000000000001
RBP: 0000000000000000 R08: 0000000000000001 R09: 0000000000000000
R10: 0000000000000000 R11: fefefefefefefeff R12: ffff888138ba8000
R13: 0000000000000106 R14: ffff8881029bd908 R15: ffff888126560000
FS: 0000000000000000(0000) GS:ffff88813bd00000(0000) knlGS:0000000000000000
CS: 0010 DS: 0000 ES: 0000 CR0: 0000000080050033
CR2: 00007f604a5dae38 CR3: 0000000101dac002 CR4: 0000000000170ef0
Call Trace:
<TASK>
__mptcp_clean_una_wakeup net/mptcp/protocol.c:1055 [inline]
mptcp_clean_una_wakeup net/mptcp/protocol.c:1062 [inline]
__mptcp_retrans+0x7f/0x7e0 net/mptcp/protocol.c:2615
mptcp_worker+0x434/0x740 net/mptcp/protocol.c:2767
process_one_work+0x1e0/0x560 kernel/workqueue.c:3254
process_scheduled_works kernel/workqueue.c:3335 [inline]
worker_thread+0x3c7/0x640 kernel/workqueue.c:3416
kthread+0x121/0x170 kernel/kthread.c:388
ret_from_fork+0x44/0x50 arch/x86/kernel/process.c:147
ret_from_fork_asm+0x1a/0x30 arch/x86/entry/entry_64.S:243
</TASK>
When fallback to TCP happens early on a client socket, snd_nxt
is not yet initialized and any incoming ack will copy such value
into snd_una. If the mptcp worker (dumbly) tries mptcp-level
re-injection after such ack, that would unconditionally trigger a send
buffer cleanup using 'bad' snd_una values.
We could easily disable re-injection for fallback sockets, but such
dumb behavior already helped catching a few subtle issues and a very
low to zero impact in practice.
Instead address the issue always initializing snd_nxt (and write_seq,
for consistency) at connect time.
Upgrade path
10 packages: 9 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| debian/linux(Debian 12) | < 6.1.94-1; = 6.1.27-1; = 6.1.37-1; = 6.1.38-1 +20 more | 6.1.94-1 | Fixed |
| debian/linux(Debian 13) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| debian/linux(Debian 14) | < 6.8.11-1 | 6.8.11-1 | Fixed |
| Linux kernel | < 5.10.218; < 5.15.159; < 6.1.91; < 6.6.31 +20 more | 5.10.218, 5.15.159, 6.1.91, 6.6.31, 6.8.10, 6.9, 39ca83ed73db9edcc6d70c0dc7a73085a4725012, 592f69b41766d366dbb8ff4ef5a67c4396527bbe, 99951b62bf20cec9247f633a3bea898338b9e5b4, aa0c07c1f20e05b30019bff083ec43665536f06f, dc941fec0719d0471a5902424d6b2a17df233193, fb7a0d334894206ae35f023a82cad5a290fd7386 | Fixed |
| ubuntu/linux(Ubuntu 22.04) | < 5.15.0-118.128 | 5.15.0-118.128 | Fixed |
| ubuntu/linux(Ubuntu 24.04) | < 6.8.0-40.40 | 6.8.0-40.40 | Fixed |
| ubuntu/linux-kvm(Ubuntu 22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 | Fixed |
| ubuntu/linux-raspi(Ubuntu 22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 | Fixed |
| ubuntu/linux-raspi(Ubuntu 24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 | Fixed |
| debian linux | = 10.0 | No fix listed | Versions listed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:12) | < 6.1.94-1 | 6.1.94-1 |
| debian/linux(Debian:12) | = 6.1.27-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.37-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-2~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-3 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4 | No fix listed |
| debian/linux(Debian:12) | = 6.1.38-4~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.52-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.55-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.64-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.66-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.67-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.69-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.76-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.82-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.85-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.90-1~bpo11+1 | No fix listed |
| debian/linux(Debian:12) | = 6.1.94-1~bpo11+1 | No fix listed |
| debian/linux(Debian:13) | < 6.8.11-1 | 6.8.11-1 |
Show 31 more
| Product | Affected versions | Fixed in |
|---|---|---|
| debian/linux(Debian:14) | < 6.8.11-1 | 6.8.11-1 |
| ubuntu/linux(Ubuntu:22.04) | < 5.15.0-118.128 | 5.15.0-118.128 |
| ubuntu/linux-kvm(Ubuntu:22.04) | < 5.15.0-1064.69 | 5.15.0-1064.69 |
| ubuntu/linux-raspi(Ubuntu:22.04) | < 5.15.0-1060.63 | 5.15.0-1060.63 |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < 99951b62bf20cec9247f633a3bea898338b9e5b4 | 99951b62bf20cec9247f633a3bea898338b9e5b4 |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < dc941fec0719d0471a5902424d6b2a17df233193 | dc941fec0719d0471a5902424d6b2a17df233193 |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < 39ca83ed73db9edcc6d70c0dc7a73085a4725012 | 39ca83ed73db9edcc6d70c0dc7a73085a4725012 |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < aa0c07c1f20e05b30019bff083ec43665536f06f | aa0c07c1f20e05b30019bff083ec43665536f06f |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < 592f69b41766d366dbb8ff4ef5a67c4396527bbe | 592f69b41766d366dbb8ff4ef5a67c4396527bbe |
| Linux kernel | >= 8fd738049ac3d67a937d36577763b47180aae1ad, < fb7a0d334894206ae35f023a82cad5a290fd7386 | fb7a0d334894206ae35f023a82cad5a290fd7386 |
| Linux kernel | = 5.9 | No fix listed |
| Linux kernel | < 5.10.218 | 5.10.218 |
| Linux kernel | < 5.15.159 | 5.15.159 |
| Linux kernel | < 6.1.91 | 6.1.91 |
| Linux kernel | < 6.6.31 | 6.6.31 |
| Linux kernel | < 6.8.10 | 6.8.10 |
| Linux kernel | < 6.9 | 6.9 |
| ubuntu/linux(Ubuntu:24.04) | < 6.8.0-40.40 | 6.8.0-40.40 |
| ubuntu/linux-raspi(Ubuntu:24.04) | < 6.8.0-1009.10 | 6.8.0-1009.10 |
| Linux kernel | >= 5.9, < 5.10.218 | 5.10.218 |
| Linux kernel | >= 5.11, < 5.15.159 | 5.15.159 |
| Linux kernel | >= 5.16, < 6.1.91 | 6.1.91 |
| Linux kernel | >= 6.2, < 6.6.31 | 6.6.31 |
| Linux kernel | >= 6.7, < 6.8.10 | 6.8.10 |
| Linux kernel | = 6.9-rc1 | No fix listed |
| Linux kernel | = 6.9-rc2 | No fix listed |
| Linux kernel | = 6.9-rc3 | No fix listed |
| Linux kernel | = 6.9-rc4 | No fix listed |
| Linux kernel | = 6.9-rc5 | No fix listed |
| Linux kernel | = 6.9-rc6 | No fix listed |
| debian linux | = 10.0 | No fix listed |
References
- Debian Security Tracker CVE-2024-36889 vendor-advisory
- Ubuntu CVE tracker vendor-advisory
- USN-6949-1 vendor-advisory
- USN-6950-1 vendor-advisory
- USN-6952-1 vendor-advisory
- USN-6955-1 vendor-advisory
- USN-6956-1 vendor-advisory
- USN-6957-1 vendor-advisory
- USN-6950-2 vendor-advisory
- USN-6950-3 vendor-advisory
- USN-6949-2 vendor-advisory
- USN-6952-2 vendor-advisory
- USN-6950-4 vendor-advisory
- USN-7019-1 vendor-advisory
- www.cve.org
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- git.kernel.org patch
- lists.debian.org mailing-list third-party-advisory