# CVE-2022-49775: tcp: cdg: allow tcp\_cdg\_release() to be called multiple times

> 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.31% (percentile 16, 2026-11-26)
- **CWE:** CWE-415
- **Published:** 2025-05-01T14:09:11.827Z
- **Modified:** 2026-08-05T08:56:18.822Z

## Who should check

- Anyone running Linux \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 0b19171439016a8e4c97eafe543670ac86e2b8fe; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 4026033907cc6186d86b48daa4a252c860db2536; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 9e481d87349d2282f400ee1d010a169c99f766b8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 78be2ee0112409ae4e9ee9e326151e0559b3d239; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 35309be06b6feded2ab2cafbc2bca8534c2fa41e; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< b49026d9c86f35a4c5bfb8d7345c9c4379828c6b; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 1b639be27cbf428a5ca01dcf8b5d654194c956f8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 72e560cb8c6f80fc2b4afc5d3634a32465e13a51
- Anyone running Linux 4.2

## Description

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

tcp: cdg: allow tcp\_cdg\_release() to be called multiple times

Apparently, mptcp is able to call tcp\_disconnect() on an already
disconnected flow. This is generally fine, unless current congestion
control is CDG, because it might trigger a double-free \[1\]

Instead of fixing MPTCP, and future bugs, we can make tcp\_disconnect()
more resilient.

\[1\]
BUG: KASAN: double-free in slab\_free mm/slub.c:3539 \[inline\]
BUG: KASAN: double-free in kfree+0xe2/0x580 mm/slub.c:4567

CPU: 0 PID: 3645 Comm: kworker/0:7 Not tainted 6.0.0-syzkaller-02734-g0326074ff465 \#0
Hardware name: Google Google Compute Engine/Google Compute Engine, BIOS Google 09/22/2022
Workqueue: events mptcp\_worker
Call Trace:
\<TASK\>
\_\_dump\_stack lib/dump\_stack.c:88 \[inline\]
dump\_stack\_lvl+0xcd/0x134 lib/dump\_stack.c:106
print\_address\_description mm/kasan/report.c:317 \[inline\]
print\_report.cold+0x2ba/0x719 mm/kasan/report.c:433
kasan\_report\_invalid\_free+0x81/0x190 mm/kasan/report.c:462
\_\_\_\_kasan\_slab\_free+0x18b/0x1c0 mm/kasan/common.c:356
kasan\_slab\_free include/linux/kasan.h:200 \[inline\]
slab\_free\_hook mm/slub.c:1759 \[inline\]
slab\_free\_freelist\_hook+0x8b/0x1c0 mm/slub.c:1785
slab\_free mm/slub.c:3539 \[inline\]
kfree+0xe2/0x580 mm/slub.c:4567
tcp\_disconnect+0x980/0x1e20 net/ipv4/tcp.c:3145
\_\_mptcp\_close\_ssk+0x5ca/0x7e0 net/mptcp/protocol.c:2327
mptcp\_do\_fastclose net/mptcp/protocol.c:2592 \[inline\]
mptcp\_worker+0x78c/0xff0 net/mptcp/protocol.c:2627
process\_one\_work+0x991/0x1610 kernel/workqueue.c:2289
worker\_thread+0x665/0x1080 kernel/workqueue.c:2436
kthread+0x2e4/0x3a0 kernel/kthread.c:376
ret\_from\_fork+0x1f/0x30 arch/x86/entry/entry\_64.S:306
\</TASK\>

Allocated by task 3671:
kasan\_save\_stack+0x1e/0x40 mm/kasan/common.c:38
kasan\_set\_track mm/kasan/common.c:45 \[inline\]
set\_alloc\_info mm/kasan/common.c:437 \[inline\]
\_\_\_\_kasan\_kmalloc mm/kasan/common.c:516 \[inline\]
\_\_\_\_kasan\_kmalloc mm/kasan/common.c:475 \[inline\]
\_\_kasan\_kmalloc+0xa9/0xd0 mm/kasan/common.c:525
kmalloc\_array include/linux/slab.h:640 \[inline\]
kcalloc include/linux/slab.h:671 \[inline\]
tcp\_cdg\_init+0x10d/0x170 net/ipv4/tcp\_cdg.c:380
tcp\_init\_congestion\_control+0xab/0x550 net/ipv4/tcp\_cong.c:193
tcp\_reinit\_congestion\_control net/ipv4/tcp\_cong.c:217 \[inline\]
tcp\_set\_congestion\_control+0x96c/0xaa0 net/ipv4/tcp\_cong.c:391
do\_tcp\_setsockopt+0x505/0x2320 net/ipv4/tcp.c:3513
tcp\_setsockopt+0xd4/0x100 net/ipv4/tcp.c:3801
mptcp\_setsockopt+0x35f/0x2570 net/mptcp/sockopt.c:844
\_\_sys\_setsockopt+0x2d6/0x690 net/socket.c:2252
\_\_do\_sys\_setsockopt net/socket.c:2263 \[inline\]
\_\_se\_sys\_setsockopt net/socket.c:2260 \[inline\]
\_\_x64\_sys\_setsockopt+0xba/0x150 net/socket.c:2260
do\_syscall\_x64 arch/x86/entry/common.c:50 \[inline\]
do\_syscall\_64+0x35/0xb0 arch/x86/entry/common.c:80
entry\_SYSCALL\_64\_after\_hwframe+0x63/0xcd

Freed by task 16:
kasan\_save\_stack+0x1e/0x40 mm/kasan/common.c:38
kasan\_set\_track+0x21/0x30 mm/kasan/common.c:45
kasan\_set\_free\_info+0x20/0x30 mm/kasan/generic.c:370
\_\_\_\_kasan\_slab\_free mm/kasan/common.c:367 \[inline\]
\_\_\_\_kasan\_slab\_free+0x166/0x1c0 mm/kasan/common.c:329
kasan\_slab\_free include/linux/kasan.h:200 \[inline\]
slab\_free\_hook mm/slub.c:1759 \[inline\]
slab\_free\_freelist\_hook+0x8b/0x1c0 mm/slub.c:1785
slab\_free mm/slub.c:3539 \[inline\]
kfree+0xe2/0x580 mm/slub.c:4567
tcp\_cleanup\_congestion\_control+0x70/0x120 net/ipv4/tcp\_cong.c:226
tcp\_v4\_destroy\_sock+0xdd/0x750 net/ipv4/tcp\_ipv4.c:2254
tcp\_v6\_destroy\_sock+0x11/0x20 net/ipv6/tcp\_ipv6.c:1969
inet\_csk\_destroy\_sock+0x196/0x440 net/ipv4/inet\_connection\_sock.c:1157
tcp\_done+0x23b/0x340 net/ipv4/tcp.c:4649
tcp\_rcv\_state\_process+0x40e7/0x4990 net/ipv4/tcp\_input.c:6624
tcp\_v6\_do\_rcv+0x3fc/0x13c0 net/ipv6/tcp\_ipv6.c:1525
tcp\_v6\_rcv+0x2e8e/0x3830 net/ipv6/tcp\_ipv6.c:1759
ip6\_protocol\_deliver\_rcu+0x2db/0x1950 net/ipv6/ip6\_input.c:439
ip6\_input\_finish+0x14c/0x2c0 net/ipv6/ip6\_input.c:484
NF\_HOOK include/linux/netfilter.h:302 \[inline\]
NF\_HOOK include/linux/netfilter.h:296 \[inline\]
ip6\_input+0x9c/0xd
---truncated---

## Affected and fixed versions

- Linux: \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 0b19171439016a8e4c97eafe543670ac86e2b8fe; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 4026033907cc6186d86b48daa4a252c860db2536; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 9e481d87349d2282f400ee1d010a169c99f766b8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 78be2ee0112409ae4e9ee9e326151e0559b3d239; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 35309be06b6feded2ab2cafbc2bca8534c2fa41e; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< b49026d9c86f35a4c5bfb8d7345c9c4379828c6b; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 1b639be27cbf428a5ca01dcf8b5d654194c956f8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 72e560cb8c6f80fc2b4afc5d3634a32465e13a51 (cvelist)
- Linux: 4.2 (cvelist)

## Mitigation

- Upgrade Linux to 72e560cb8c6f80fc2b4afc5d3634a32465e13a51 or later.

## Check your systems with an agent

Paste this into a coding agent:

```text
Check whether anything I run is affected by CVE-2022-49775. Work read-only: do not install, upgrade, delete or change anything.

Details: https://flawdb.com/CVE-2022-49775.md
Affected: Linux >= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, < 0b19171439016a8e4c97eafe543670ac86e2b8fe; >= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, < 4026033907cc6186d86b48daa4a252c860db2536; >= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, < 9e481d87349d2282f400ee1d010a169c99f766b8; >= 2b0a8c9eee81882fc0001cc…
Fixed in: Linux 0b19171439016a8e4c97eafe543670ac86e2b8fe, Linux 4026033907cc6186d86b48daa4a252c860db2536, Linux 9e481d87349d2282f400ee1d010a169c99f766b8, Linux 78be2ee0112409ae4e9ee9e326151e0559b3d239, Linux 35309be06b6feded2ab2cafbc2bca8534c2fa41e, Linux 1b639be27cbf428a5ca01dcf8b5d654194c956f8, Linux 72e56…

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-2022-49775 being exploited?

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

### How serious is CVE-2022-49775?

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

### Which versions are affected by CVE-2022-49775?

Linux \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 0b19171439016a8e4c97eafe543670ac86e2b8fe; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 4026033907cc6186d86b48daa4a252c860db2536; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 9e481d87349d2282f400ee1d010a169c99f766b8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 78be2ee0112409ae4e9ee9e326151e0559b3d239; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 35309be06b6feded2ab2cafbc2bca8534c2fa41e; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< b49026d9c86f35a4c5bfb8d7345c9c4379828c6b; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 1b639be27cbf428a5ca01dcf8b5d654194c956f8; \>= 2b0a8c9eee81882fc0001ccf6d9af62cdc682f9e, \< 72e560cb8c6f80fc2b4afc5d3634a32465e13a51; Linux 4.2.

### Is there a fix for CVE-2022-49775?

Yes. Fixed in Linux 0b19171439016a8e4c97eafe543670ac86e2b8fe, Linux 4026033907cc6186d86b48daa4a252c860db2536, Linux 9e481d87349d2282f400ee1d010a169c99f766b8, Linux 78be2ee0112409ae4e9ee9e326151e0559b3d239, Linux 35309be06b6feded2ab2cafbc2bca8534c2fa41e, Linux 1b639be27cbf428a5ca01dcf8b5d654194c956f8, Linux 72e560cb8c6f80fc2b4afc5d3634a32465e13a51. Upgrade Linux to 72e560cb8c6f80fc2b4afc5d3634a32465e13a51 or later.

### How do I check if I'm affected by CVE-2022-49775?

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/0b19171439016a8e4c97eafe543670ac86e2b8fe>
- patch: <https://git.kernel.org/stable/c/4026033907cc6186d86b48daa4a252c860db2536>
- patch: <https://git.kernel.org/stable/c/9e481d87349d2282f400ee1d010a169c99f766b8>
- patch: <https://git.kernel.org/stable/c/78be2ee0112409ae4e9ee9e326151e0559b3d239>
- patch: <https://git.kernel.org/stable/c/35309be06b6feded2ab2cafbc2bca8534c2fa41e>
- patch: <https://git.kernel.org/stable/c/b49026d9c86f35a4c5bfb8d7345c9c4379828c6b>
- patch: <https://git.kernel.org/stable/c/1b639be27cbf428a5ca01dcf8b5d654194c956f8>
- patch: <https://git.kernel.org/stable/c/72e560cb8c6f80fc2b4afc5d3634a32465e13a51>

## 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-2022-49775>

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